/* templates/assets/css/inputs.css */

/* =========================================
   1. INVOERVELDEN (SMOKED GLASS)
   ========================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea,
.form-input {
    width: 100%;
    /* Smoked Glass: Heel licht transparant donkerblauw */
    background: rgba(0, 25, 48, 0.05); 
    border: 1px solid rgba(0, 25, 48, 0.2);
    
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    color: var(--brand-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box; 
    appearance: none;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--brand-color-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

::placeholder { color: rgba(0, 25, 48, 0.4); font-style: italic; }

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23001930' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

option { background-color: #fff; color: #333; }

label, .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-color);
    font-weight: 600;
    font-size: 0.95rem;
}


/* =========================================
   2. KNOPPEN (BUTTONS)
   ========================================= */

/* A. BASIS LAYOUT (Geldt voor ALLE knoppen) */
.btn, button, input[type="submit"], input[type="button"], .btn-delete, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* B. PRIMAIRE KNOPPEN (Dit waren de donkerblauwe, nu PAARS -> GROEN) */
/* We gebruiken :not() om te zorgen dat we de delete/secondary knoppen NIET raken */
.btn:not(.btn-delete):not(.btn-secondary), 
button[type="submit"]:not(.btn-delete), 
input[type="submit"] {
    background: var(--brand-color-light); /* Paars */
    color: #fff;
}

/* HOVER: Wordt GROEN */
.btn:not(.btn-delete):not(.btn-secondary):hover, 
button[type="submit"]:not(.btn-delete):hover, 
input[type="submit"]:hover {
    background: var(--success-color); /* Groen */
    border-color: var(--success-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.4); /* Groene gloed */
}


/* C. SECUNDAIRE KNOPPEN (Vorige/Wijzigen - Grijs) */
.btn-secondary {
    background: rgba(0, 25, 48, 0.05);
    color: var(--brand-color);
    border: 1px solid rgba(0, 25, 48, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 25, 48, 0.15);
    color: var(--brand-color);
    transform: translateY(-2px);
}


/* D. VERWIJDER KNOPPEN (Rood - Blijft Rood) */
.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: var(--brand-color-light);
    color: #fff; 
    /* Specifieke afmetingen voor het vierkantje in de tabel */
    width: 35px;
    height: 35px;
    padding: 0;
    box-shadow: none; /* Platte look in tabel */
}

.btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    transform: scale(1.1); /* Iets groter bij hover */
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); /* Rode gloed */
}

/* Klein formaat */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}


/* =========================================
   3. SPECIALS (WIZARD & HEADER) - GHOST STIJL
   ========================================= */
/* Deze zijn WIT voor op de donkere achtergrond van de header/wizard */

.btn-transparent {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Layout reset (voor het geval ze .btn overerven) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-transparent:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Timer fix */
.audit-timer {
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 1px;
    min-width: 90px;
    padding:0px 10px 0px 10px;
}

/* Fallback voor als .btn-transparent toch op wit staat */
.card .btn-transparent {
    background: rgba(0, 25, 48, 0.05);
    border-color: rgba(0, 25, 48, 0.2);
    color: var(--brand-color);
}