/* =========================================================
US-31 - Hover, Focus & Disabled States
Bestand: static/css/interactions.css

Doel:
Deze stylesheet zorgt voor consistente interactieve feedback
binnen de applicatie.

Toegevoegd:
- Hover states
- Focus states
- Disabled states
- Accessibility verbeteringen
- Smooth transitions
========================================================= */

/* =========================================================
ALGEMENE TRANSITIONS
Zorgt ervoor dat interactieve elementen vloeiend reageren
op hover/focus acties.
========================================================= */
button,
a,
input,
select,
textarea,
.tab,
.btn,
.action-link,
tbody tr {
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;
}

/* =========================================================
BUTTON STYLING
Algemene styling voor alle primaire knoppen.
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

/* =========================================================
BUTTON HOVER STATE
Visuele feedback wanneer gebruiker over een knop hovert.
========================================================= */
.btn:hover {
    background: rgba(255,255,255,0.12);

    /* Kleine lift animatie */
    transform: translateY(-1px);

    /* Extra diepte-effect */
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* =========================================================
BUTTON ACTIVE STATE
Feedback tijdens klikken.
========================================================= */
.btn:active {
    transform: scale(0.98);
}

/* =========================================================
BUTTON FOCUS STATE
Belangrijk voor keyboard accessibility.
Wordt zichtbaar bij TAB navigatie.
========================================================= */
.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(125, 211, 252, 0.35),
        0 4px 12px rgba(0,0,0,0.18);
}

/* =========================================================
BUTTON DISABLED STATE
Duidelijk maken dat knop niet interactief is.
========================================================= */
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
    box-shadow: none;
    transform: none;
}

/* =========================================================
TABS
Styling voor dashboard tabs/navigation tabs.
========================================================= */
.tab {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.72);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    cursor: pointer;
}

/* Hover effect voor tabs */
.tab:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

/* Actieve tab styling */
.tab.active {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* Keyboard focus voor tabs */
.tab:focus,
.tab:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

/* =========================================================
RANGE BUTTONS
Filters zoals:
- Last 30 days
- Last 7 days
========================================================= */
.range-btn {
    border: none;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
}

/* Hover state */
.range-btn:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* Actieve filter */
.range-btn.active {
    background: rgba(255,255,255,0.16);
    color: white;
}

/* Focus state */
.range-btn:focus,
.range-btn:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

/* =========================================================
FORM ELEMENTEN
Algemene styling voor:
- input
- select
- textarea
========================================================= */
input,
select,
textarea {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: white;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

/* Hover feedback */
input:hover,
select:hover,
textarea:hover {
    border-color: rgba(255,255,255,0.22);
}

/* Focus state voor betere usability */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
    background: rgba(255,255,255,0.06);
}

/* Disabled velden */
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================================================
MINI SELECT
Kleine dropdowns in tabellen.
========================================================= */
.mini-select {
    min-width: 180px;
}

/* Hover effect */
.mini-select:hover {
    background: rgba(255,255,255,0.08);
}

/* Focus styling */
.mini-select:focus {
    border-color: #7dd3fc;
}

/* =========================================================
LINKS
Styling voor klikbare acties zoals:
- E-mail
- Bellen
========================================================= */
.action-link {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 500;
}

/* Hover feedback */
.action-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Keyboard focus */
.action-link:focus,
.action-link:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
    border-radius: 4px;
}

/* =========================================================
TABLE ROWS
Hover feedback op tabelregels zodat duidelijk is welke rij
actief bekeken wordt.
========================================================= */
tbody tr {
    border-radius: 12px;
}

/* Hover state */
tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

/* =========================================================
STATUS PILLS
Kleine status badges/pills.
========================================================= */
.pill {
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

/* Hover animatie */
.pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* =========================================================
CUSTOM CHECKBOXES
Visuele checkbox styling.
========================================================= */
.check {
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
}

/* Hover state */
.check:hover {
    border-color: #7dd3fc;
    background: rgba(125, 211, 252, 0.12);
}

/* =========================================================
SVG ICON ANIMATIES
Kleine micro-interacties op iconen.
========================================================= */
.btn svg,
.range-btn svg,
.tab svg {
    transition:
        transform 0.15s ease,
        opacity 0.2s ease;
}

/* Icoon beweegt licht mee */
.btn:hover svg,
.range-btn:hover svg {
    transform: translateX(1px);
}

/* =========================================================
ACCESSIBILITY VERBETERINGEN
========================================================= */

/* Verberg focus styles bij mouse click.
Toon focus alleen bij keyboard navigatie. */
:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Respecteer reduced motion instellingen van gebruikers. */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
EXTRA DARK MODE VERBETERINGEN
========================================================= */

/* Placeholder kleur */
::placeholder {
    color: rgba(255,255,255,0.45);
}

/* =========================================================
CUSTOM SCROLLBAR
========================================================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Achtergrond scrollbar */
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}

/* Hover effect scrollbar */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}
