/* Finishing touches op Tailwind */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Voorkom witte autofill van browsers — geldt voor ALLE inputs in de app */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #241756 inset !important;
    box-shadow: 0 0 0 1000px #241756 inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
}

/* Inputs niet wit laten worden bij focus */
input, textarea, select {
    color-scheme: dark;
}

body {
    background-image:
        linear-gradient(to right, rgba(58, 42, 130, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(58, 42, 130, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #19103D;
}
::-webkit-scrollbar-thumb {
    background: #3A2A82;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF2DD1;
}

/* File input styling */
input[type="file"] {
    color: #B8A6E5;
    font-size: 12px;
}
input[type="file"]::file-selector-button {
    background: #241756;
    color: #B8A6E5;
    border: 1px solid #3A2A82;
    padding: 6px 10px;
    margin-right: 10px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
input[type="file"]::file-selector-button:hover {
    background: #FF2DD1;
    color: #0E0723;
    border-color: #FF2DD1;
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 4px;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #241756;
    border: 1px solid #3A2A82;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    background: #FFD60A;
    margin-top: -8px;
    cursor: pointer;
}
input[type="range"]::-moz-range-track {
    height: 4px;
    background: #241756;
    border: 1px solid #3A2A82;
}
input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    background: #FFD60A;
    border: none;
    cursor: pointer;
    border-radius: 0;
}

/* Pulse animation voor live indicators */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.animate-pulse {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Disabled inputs */
input:disabled, textarea:disabled, select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Print: hide nav */
@media print {
    aside, header, .no-print { display: none !important; }
    main { padding: 0 !important; }
}
