/* Budget Manager - Minimal custom styles (Tailwind handles the rest) */

/* Custom scrollbar - dark mode */
.dark ::-webkit-scrollbar { width: 6px; }
.dark ::-webkit-scrollbar-track { background: transparent; }
.dark ::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }

/* Custom scrollbar - light mode */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.4); }

/* Chart.js container */
.chart-container { position: relative; height: 300px; }

/* Sidebar active indicator */
.nav-active-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: #6366f1;
    border-radius: 0 2px 2px 0;
}

/* Slide-in animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-in { animation: slideIn 0.2s ease; }

/* Modal animation */
@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-modal { animation: modalSlide 0.2s ease; }

/* ── DARK MODE: form input styling ── */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="date"],
.dark input[type="datetime-local"],
.dark input[type="search"],
.dark input[type="month"],
.dark select,
.dark textarea {
    background-color: #1e2540;
    border-color: #334155;
    color: #e2e8f0;
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="number"]:focus,
.dark input[type="date"]:focus,
.dark input[type="datetime-local"]:focus,
.dark input[type="search"]:focus,
.dark input[type="month"]:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #64748b;
}

.dark input[type="checkbox"] {
    border-color: #334155;
    background-color: #1e2540;
}

/* ── LIGHT MODE: form input styling ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
input[type="month"],
select,
textarea {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="search"]:focus,
input[type="month"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    cursor: pointer;
    accent-color: #6366f1;
}

textarea {
    resize: vertical;
    min-height: 100px;
}
