/* SchoolMS Custom Theme (edit colors as needed) */
body {
    background: #f8fafc;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
}
.header {
    background: #fff;
    color: #003366;
    padding: 0.7rem 2rem 0.7rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 200;
}
.header .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #003366;
}
.header .logo img {
    height: 38px;
    margin-right: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sidebar {
    background: #00509e;
    color: #fff;
    min-height: 100vh;
    padding: 2rem 1rem 1rem 1rem;
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    max-height: 100vh;
    box-shadow: 2px 0 16px rgba(0,0,0,0.08);
    border-right: 1px solid #e0e0e0;
}
.sidebar .user-info {
    text-align: center;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
}
.sidebar .user-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #00509e;
    margin-bottom: 0.5rem;
    object-fit: cover;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.3rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    gap: 0.7em;
    font-size: 1.04em;
}
.sidebar nav a.active, .sidebar nav a:hover {
    background: #ffd600;
    color: #003366;
    font-weight: 600;
}
.sidebar .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    background: none;
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}
.sidebar .dropdown-toggle.open, .sidebar .dropdown-toggle:hover {
    background: #ffd600;
    color: #003366;
}
.sidebar .dropdown-menu {
    display: none;
    flex-direction: column;
    margin-left: 1em;
    margin-bottom: 0.5em;
}
.sidebar .dropdown-menu.show {
    display: flex;
}
.sidebar .dropdown .dropdown-toggle:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.8em;
    transition: transform 0.2s;
}
.sidebar .dropdown .dropdown-toggle.open:after {
    transform: rotate(180deg);
}
.main-content {
    margin-left: 260px;
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    background: #f8fafc;
    min-height: 100vh;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    border: none;
}
.btn-primary {
    background: #00509e;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #003366;
}
.form-control, input, select, textarea {
    border-radius: 6px !important;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    width: 100%;
}
.error {
    color: #d32f2f;
    background: #ffeaea;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.success {
    color: #388e3c;
    background: #eaffea;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
#wrapper {
    overflow-x: hidden;
}
/* Dashboard Stat Cards */
.dashboard-stat-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15) !important;
}

.dashboard-stat-card .card-body {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.dashboard-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dashboard-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

/* Responsive adjustments for dashboard cards */
@media (max-width: 768px) {
    .dashboard-stat-card {
        min-height: 150px;
    }
    
    .dashboard-stat-number {
        font-size: 2rem;
    }
    
    .dashboard-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .dashboard-stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .dashboard-stat-card {
        min-height: 140px;
    }
    
    .dashboard-stat-number {
        font-size: 1.8rem;
    }
    
    .dashboard-stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 900px) {
    .sidebar { width: 100%; min-height: auto; position: static; }
    .main-content { margin-left: 0; padding: 1rem; }
}
