/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glass effect utilities */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* -- FORM ELEMENT STYLES -- */
.form-label {
    display: block;
    color: #94a3b8;
    /* slate-400 */
    font-size: 0.75rem;
    /* xs */
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.form-input,
.form-select {
    width: 100%;
    background-color: rgb(2, 6, 23);
    /* slate-950 */
    border: 1px solid #334155;
    /* slate-700 */
    border-radius: 0.75rem;
    /* rounded-xl */
    padding: 0.60rem 1rem;
    color: #e2e8f0;
    /* slate-200 */
    outline: none;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    border-color: #6366f1;
    /* indigo-500 */
    box-shadow: 0 0 0 1px #6366f1;
}

/* Checkbox Cards (for multi-select visual) */
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #cbd5e1;
    transition: all 0.2s;
}

.checkbox-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #475569;
}

.checkbox-card input:checked+span {
    color: #818cf8;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 24px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.slider {
    background-color: #6366f1;
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* Radio Label */
.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #cbd5e1;
}

/* Tab Active State - managed by JS but styled here for safety */
.tab-btn.active {
    background-color: rgb(30, 41, 59);
    color: white !important;
    border: 1px solid #475569;
}

.tab-btn.active i {
    color: #818cf8;
    /* indigo-400 */
}