/* Dashboard Specific Styles */
:root {
    --sidebar-width: 260px;
}

.dashboard-body {
    background-color: #F3F4F6;
    min-height: 100vh;
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 76, 129, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-2xl);
    text-align: center;
}

.login-logo {
    height: 60px;
    margin: 0 auto 1rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
}

.w-100 { width: 100%; }

/* Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    border-bottom: 1px solid #E5E7EB;
}

.sidebar-header img { height: 32px; }

.sidebar-nav {
    padding: 1.5rem;
    flex-grow: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-medium);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #EFF6FF;
    color: var(--primary-color);
}

.sidebar-nav .back-home {
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.user-profile {
    padding: 1.5rem;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 2rem;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: white;
    border: 1px solid #E5E7EB;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text-medium);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--brand-red);
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Student Selector */
.student-selector {
    margin-bottom: 2rem;
}

.student-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
}

.student-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: #EFF6FF; color: var(--primary-color); }
.stat-icon.green { background: #ECFDF5; color: var(--accent-color); }
.stat-icon.orange { background: #FFFBEB; color: var(--secondary-color); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .label { font-size: 0.875rem; color: var(--text-light); }
.stat-info .value { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.stat-info .sub { font-size: 0.75rem; color: var(--text-light); }
.stat-info .trend.positive { color: var(--accent-color); font-size: 0.875rem; font-weight: 600; }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-container {
    height: 300px;
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid #F3F4F6;
}

.task-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.task-icon.red { background: #FEF2F2; color: var(--brand-red); }
.task-icon.blue { background: #EFF6FF; color: var(--primary-color); }
.task-icon.green { background: #ECFDF5; color: var(--accent-color); }

.task-details h4 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.task-details p { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0; }

.status {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.status.pending { background: #FEF2F2; color: var(--brand-red); }
.status.in-progress { background: #EFF6FF; color: var(--primary-color); }
.status.done { background: #ECFDF5; color: var(--accent-color); }

@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 1rem; }
}
