/* Custom style overrides on top of Bootstrap 5.3 Dark Mode */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    min-height: 100vh;
}

/* Sidebar styling */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #0f172a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.main-content {
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

.sidebar-link {
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.sidebar-link:hover, .sidebar-link.active {
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.15);
    border-left: 4px solid #f97316;
}

/* Glassmorphism custom card */
.card-custom {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    color: #f8fafc;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

@media(max-width: 992px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* ==========================================
   Light Mode Overrides (data-bs-theme="light")
   ========================================== */
[data-bs-theme="light"] body {
    background: #f4f6f9 !important;
    background-color: #f4f6f9 !important;
    color: #0f172a !important;
}

[data-bs-theme="light"] .sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .sidebar-link {
    color: #475569;
}

[data-bs-theme="light"] .sidebar-link:hover, [data-bs-theme="light"] .sidebar-link.active {
    color: #ea580c;
    background-color: rgba(234, 88, 12, 0.08);
    border-left: 4px solid #ea580c;
}

[data-bs-theme="light"] .sidebar-brand .text-white {
    color: #0f172a !important;
}

[data-bs-theme="light"] .card-custom {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

[data-bs-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .text-white {
    color: #0f172a !important;
}

[data-bs-theme="light"] .text-secondary {
    color: #475569 !important;
}

[data-bs-theme="light"] .page-title {
    color: #0f172a !important;
}

[data-bs-theme="light"] .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

[data-bs-theme="light"] .text-secondary-emphasis {
    color: #334155 !important;
}

[data-bs-theme="light"] .border-secondary {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Hardcoded dark backgrounds & white texts overrides on forms */
[data-bs-theme="light"] .bg-dark {
    background-color: #ffffff !important;
}

[data-bs-theme="light"] .form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="light"] .form-control::placeholder {
    color: #94a3b8 !important;
}

[data-bs-theme="light"] .form-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="light"] .text-warning {
    color: #ea580c !important;
}

