/* premium-dashboard.css - 2026 Premium School ERP Theme Override */

/* Poppins Font Application */
body, .sidebar, .topbar, .card, .table-panel, .form-panel, .modal-content {
    font-family: 'Poppins', sans-serif !important;
}

/* Base Layout Modifications */
body {
    background-color: #f8fafc !important;
}

[data-bs-theme="dark"] body {
    background-color: #090d16 !important;
}

.content {
    background-color: #f8fafc !important;
    padding: 30px !important;
}

[data-bs-theme="dark"] .content {
    background-color: #090d16 !important;
}

/* Sidebar Redesign System */
.sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(15, 23, 42, 0.06) !important;
    padding: 24px 16px !important;
}

[data-bs-theme="dark"] .sidebar {
    background: #0d131f !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.brand {
    font-weight: 800 !important;
    color: #0052FF !important;
    margin-bottom: 28px !important;
}

[data-bs-theme="dark"] .brand {
    color: #3b82f6 !important;
}

.sidebar .parent-link,
.sidebar #sidebarNav > a.nav-link {
    color: #475569 !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    margin-bottom: 3px !important;
}

[data-bs-theme="dark"] .sidebar .parent-link,
[data-bs-theme="dark"] .sidebar #sidebarNav > a.nav-link {
    color: #94a3b8 !important;
}

.sidebar .parent-link:hover,
.sidebar #sidebarNav > a.nav-link:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-bs-theme="dark"] .sidebar .parent-link:hover,
[data-bs-theme="dark"] .sidebar #sidebarNav > a.nav-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}

.sidebar .parent-link.active,
.sidebar #sidebarNav > a.nav-link.active {
    background: linear-gradient(135deg, #0052FF 0%, #0077FF 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.25) !important;
}

[data-bs-theme="dark"] .sidebar .parent-link.active,
[data-bs-theme="dark"] .sidebar #sidebarNav > a.nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.sidebar .submenu-list {
    background-color: #f8fafc !important;
    border-radius: 12px !important;
    padding: 6px !important;
    border: 1px solid rgba(15, 23, 42, 0.03) !important;
}

[data-bs-theme="dark"] .sidebar .submenu-list {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.sidebar .submenu-item {
    border-radius: 8px !important;
}

.sidebar .submenu-item.active {
    background: #0052FF !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar .submenu-item.active {
    background: #3b82f6 !important;
}

/* Topbar Redesign */
.topbar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.02) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}

[data-bs-theme="dark"] .topbar {
    background: rgba(13, 19, 31, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.topbar-search {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    max-width: 320px !important;
    width: 100% !important;
    z-index: 1 !important;
}

@media (max-width: 991px) {
    .topbar-search {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
}

/* Premium Card Design (18-22px border radius, Soft Shadow) */
.card, .table-panel, .form-panel {
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 82, 255, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01) !important;
    background: #ffffff !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease !important;
}

[data-bs-theme="dark"] .card, 
[data-bs-theme="dark"] .table-panel, 
[data-bs-theme="dark"] .form-panel {
    background: #0d131f !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3) !important;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -5px rgba(0, 82, 255, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 82, 255, 0.15) !important;
}

[data-bs-theme="dark"] .card:hover {
    border-color: rgba(59, 130, 246, 0.2) !important;
}

/* Premium Hero Welcome Banner */
.premium-hero {
    background: linear-gradient(135deg, #0052FF 0%, #0077FF 100%) !important;
    border-radius: 24px !important;
    padding: 35px 40px !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.15) !important;
}

.premium-hero::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
}

.premium-hero::after {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
}

.hero-avatar {
    width: 72px;
    height: 72px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.hero-action-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
}

.hero-action-btn:hover {
    background: #ffffff !important;
    color: #0052FF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2) !important;
}

/* Statistics Cards system */
.stat-card {
    padding: 24px !important;
    position: relative;
    overflow: hidden;
}

.stat-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Stat color schemes */
.stat-blue {
    background: rgba(0, 82, 255, 0.06);
    color: #0052FF;
}
.stat-emerald {
    background: rgba(16, 185, 129, 0.06);
    color: #10B981;
}
.stat-amber {
    background: rgba(245, 158, 11, 0.06);
    color: #F59E0B;
}
.stat-rose {
    background: rgba(244, 63, 94, 0.06);
    color: #F43F5E;
}
.stat-purple {
    background: rgba(139, 92, 246, 0.06);
    color: #8B5CF6;
}
.stat-cyan {
    background: rgba(6, 182, 212, 0.06);
    color: #06B6D4;
}

[data-bs-theme="dark"] .stat-icon-box {
    filter: brightness(1.2);
    background: rgba(255, 255, 255, 0.05) !important;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Quick Access Tiles Grid */
.quick-access-tile {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01) !important;
}

[data-bs-theme="dark"] .quick-access-tile {
    background: #0d131f !important;
}

.quick-access-tile:hover {
    border-color: rgba(0, 82, 255, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.08) !important;
}

.quick-access-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

/* Activities and Notices Timeline */
.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] .timeline-item::before {
    background: rgba(255, 255, 255, 0.06);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-node {
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #0052FF;
    z-index: 2;
}

[data-bs-theme="dark"] .timeline-node {
    background: #0d131f;
    border-color: #3b82f6;
}

.timeline-node.node-success { border-color: #10B981; }
.timeline-node.node-warning { border-color: #F59E0B; }
.timeline-node.node-danger { border-color: #F43F5E; }

/* Custom Scrollbar for dashboard content */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
