@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-blue: #0284c7;
    --accent-indigo: #0369a1;
    --accent-emerald: #10b981;
    --accent-rose: #ef4444;
    --accent-amber: #f59e0b;
}

body, .content-wrapper {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    overflow-x: hidden;
}

/* Sidebar Styling - Premium 2026 Blue and White Light Look */
.app-sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}
.sidebar-brand {
    border-bottom: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
}
.sidebar-menu .nav-link {
    color: #475569 !important;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.sidebar-menu .nav-link:hover {
    background-color: #f1f5f9 !important;
    color: #1e3a8a !important;
}
.sidebar-menu .nav-link.active {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}
.sidebar-menu .nav-header {
    color: #94a3b8 !important;
    font-weight: 700;
}

/* Navbar Styling - Clean Translucent White */
.app-header {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border) !important;
}
.app-header .nav-link {
    color: var(--text-primary) !important;
}

/* Premium Card & White Panels */
.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--bg-card-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
    border-color: #cbd5e1 !important;
}
.card-header {
    background-color: #f8fafc !important;
    border-bottom: 1px solid var(--bg-card-border) !important;
    font-weight: 600;
}
.card-title {
    color: var(--text-primary) !important;
    font-weight: 700;
}

/* Mini Info Cards */
.info-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--bg-card-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Form inputs & Buttons */
.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
.btn-primary {
    background-color: var(--accent-blue) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease !important;
}
.btn-primary:hover {
    background-color: var(--accent-indigo) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2) !important;
}

/* Data Tables */
.table {
    color: var(--text-primary) !important;
}
.table th {
    border-bottom: 2px solid var(--bg-card-border) !important;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    background-color: #f8fafc;
}
.table td {
    border-bottom: 1px solid var(--bg-card-border) !important;
    vertical-align: middle;
}
.table-hover tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* Indicators */
.badge-success { background-color: #d1fae5 !important; color: #065f46 !important; border: 1px solid #a7f3d0; }
.badge-danger { background-color: #fee2e2 !important; color: #991b1b !important; border: 1px solid #fecaca; }
.badge-warning { background-color: #fef3c7 !important; color: #92400e !important; border: 1px solid #fde68a; }
.badge-info { background-color: #e0f2fe !important; color: #0369a1 !important; border: 1px solid #bae6fd; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Page titles */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}
.text-white {
    color: var(--text-primary) !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}

/* Modal Styling */
.modal-content {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    border-radius: 12px;
}
.modal-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--bg-card-border);
}
.modal-footer {
    border-top: 1px solid var(--bg-card-border);
}
.btn-close-white {
    filter: none !important;
}
