﻿/* Sidebar toggle base on Role */
.sidebar-admin {
    border-right: 4px solid #2b7fff;
}

.sidebar-teacher {
    border-right: 4px solid #2ecc71;
}

.sidebar-student {
    border-right: 4px solid #00d2ff;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

    .stat-card.admin {
        border-left: 5px solid #2b7fff;
    }

    .stat-card.teacher {
        border-left: 5px solid #2ecc71;
    }
/* Sidebar Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

.sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    transition: 0.3s;
    z-index: 2000;
}

.sidebar-nav a {
    display: block;
    padding: 15px 25px;
    color: #ecf0f1;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    .sidebar-nav a:hover {
        background: rgba(255,255,255,0.1);
    }

.theme-admin .sidebar {
    border-right: 5px solid #2b7fff;
}

.theme-teacher .sidebar {
    border-right: 5px solid #2ecc71;
}

.theme-parent .sidebar {
    border-right: 5px solid #ff9800;
}

.theme-student .sidebar {
    border-right: 5px solid #00d2ff;
}

.theme-clerk .sidebar {
    border-right: 5px solid #9b59b6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid #ddd;
}

/* Stat Card Colors Based on Theme */
.theme-student .stat-card {
    border-bottom-color: #00d2ff;
}

.theme-admin .stat-card {
    border-bottom-color: #2b7fff;
}

.stat-val {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100%;
    }

        .sidebar.open {
            left: 0;
        }

    .main-content {
        width: 100% !important;
    }

    .menu-btn {
        display: block !important;
    }
}

.top-bar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
/* Sidebar Layout Styling */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f4f7f6;
}

.sidebar {
    width: 260px;
    background: #222;
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: 0.3s;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dashboard-header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* Stats Grid  */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

    .stat-card i {
        font-size: 35px;
        margin-bottom: 15px;
    }

/* Role Based Coloring */
.theme-teacher .stat-card {
    border-bottom: 5px solid #2ecc71;
}

    .theme-teacher .stat-card i {
        color: #2ecc71;
    }

.theme-clerk .stat-card {
    border-bottom: 5px solid #9b59b6;
}

    .theme-clerk .stat-card i {
        color: #9b59b6;
    }

/* Table Section Styling */
.data-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

    .data-card h3 {
        font-size: 20px;
        margin-bottom: 20px;
        color: #333;
    }

/* Mobile View Improvements */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* Dashboard Role Themes */
.theme-admin .stat-card {
    border-bottom: 5px solid #2b7fff !important;
}

    .theme-admin .stat-card i {
        color: #2b7fff;
    }

.theme-admin .page-header {
    color: #2b7fff;
    border-left: 5px solid #2b7fff;
    padding-left: 15px;
}

.theme-student .stat-card {
    border-bottom: 5px solid #00d2ff !important;
}

    .theme-student .stat-card i {
        color: #00d2ff;
    }

.theme-student .page-header {
    color: #00d2ff;
    border-left: 5px solid #00d2ff;
    padding-left: 15px;
}

/* Global Dashboard Body Styles */
.dashboard-body {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.page-header {
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 24px;
}

/* Table and Data Card Styling */
.data-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 20px;
}

    .data-card .card-header h3 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
    }

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .table th {
        background-color: #f1f3f5;
        padding: 12px;
        text-align: left;
        font-size: 14px;
        color: #495057;
    }

    .table td {
        padding: 15px 12px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}




