/* style.css - BISC Professional Green Theme Design System */
:root {
    /* Green Color System */
    --primary: #28a745;
    --primary-dark: #218838;
    --primary-light: #34ce57;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;
    
    /* Supporting Colors */
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --light: #f8fafc;
    --dark: #1f2937;
    --white: #ffffff;
    
    /* Extended Green Palette */
    --emerald: #10b981;
    --green: #22c55e;
    --lime: #84cc16;
    --teal: #14b8a6;
    --cyan: #06b6d4;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-info: linear-gradient(135deg, #06b6d4, #0891b2);
    
    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== LAYOUT FIX ===== */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Space for fixed header */
    padding-left: 280px; /* Space for fixed sidebar */
    transition: var(--transition);
}

.dashboard {
    min-height: 100vh;
}

/* Override body padding for mobile */
@media (max-width: 1024px) {
    body {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

/* ===== ANIMATION FIXES ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Ensure period content has fade animation */
.period-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.period-content.active {
    display: block;
}

/* ===== QUICK FIXES FOR SPECIFIC ELEMENTS ===== */

/* Fix for .no-reports inside .section */
.section .no-reports {
    margin: 0;
}

/* Fix for inline color in h3 */
h3[style*="color: #1a365d"] {
    color: var(--primary-800) !important;
    margin-bottom: var(--space-4) !important;
    font-size: var(--font-size-lg) !important;
}

/* Fix button alignment in quick-actions */
.quick-actions .btn {
    flex: 0 1 auto;
}

/* Ensure subject report details are visible */
.report-details > * {
    margin-bottom: var(--space-3);
}

.report-details > *:last-child {
    margin-bottom: 0;
}

/* Fix for progress row spacing */
.progress-row + .next-steps {
    margin-top: calc(-1 * var(--space-2));
}

/* Fix for personal item colors */
.personal-item {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0c4a6e !important;
}

.personal-item:hover {
    background: #e0f2fe !important;
}

.personal-label {
    color: #0369a1 !important;
}

/* Fix for additional notes colors */
.additional-notes {
    background: #f0f9ff !important;
    color: #0c4a6e !important;
    border-left-color: var(--info) !important;
}

.additional-notes strong {
    color: #0369a1 !important;
}

/* Fix for next steps colors */
.next-steps {
    background: #fffbeb !important;
    color: #92400e !important;
    border-left-color: #f59e0b !important;
}

.next-steps strong {
    color: #92400e !important;
}


/* ===== FIXED HEADER & SIDEBAR LAYOUT ===== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Space for fixed header */
    padding-left: 280px; /* Space for fixed sidebar */
    transition: var(--transition);
}

/* Fixed Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: var(--space-4) var(--space-6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-left h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-700);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-right span {
    color: var(--dark);
    font-weight: 500;
}

/* Fixed Sidebar */
.sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 999;
    border-right: 1px solid #e2e8f0;
    transition: transform var(--transition);
}

.sidebar ul {
    list-style: none;
    padding: var(--space-4) 0;
    margin: 0;
}

.sidebar li:not(.menu-category) a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    color: var(--dark);
    transition: all var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar li:not(.menu-category) a:hover {
    background: var(--primary-50);
    border-left-color: var(--primary-300);
    color: var(--primary-700);
}

.sidebar li:not(.menu-category) a.active {
    background: var(--primary-50);
    border-left-color: var(--primary);
    color: var(--primary-700);
    font-weight: 600;
}

.sidebar li.menu-category {
    padding: var(--space-3) var(--space-5);
    margin-top: var(--space-4);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: var(--space-2);
}

.sidebar li.menu-category:first-child {
    margin-top: 0;
}

/* Main Content Area */
.main-content {
    padding: var(--space-6);
    background: #f8fafc;
    min-height: calc(100vh - 70px);
}

/* Dashboard Layout */
.dashboard {
    min-height: 100vh;
}

/* Sidebar Toggle Button (for mobile) */
.sidebar-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    font-size: var(--font-size-lg);
}

/* ===== STUDENT REPORTS SPECIFIC STYLES ===== */

/* Student Header - Green Theme */
.student-header {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
    color: white;
    padding: var(--space-5);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.student-info h2 {
    color: white;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-2xl);
}

.student-meta {
    display: flex;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--primary-200);
}

.student-meta span {
    background: rgba(255,255,255,0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
}

/* Period Tabs - Green Theme */
.period-tabs {
    display: flex;
    background: var(--primary-50);
    border-bottom: 1px solid var(--primary-200);
    overflow-x: auto;
    margin-bottom: var(--space-4);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.period-tab {
    padding: var(--space-3) var(--space-5);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition);
    color: var(--primary-700);
    font-size: var(--font-size-sm);
    border-bottom: 3px solid transparent;
}

.period-tab:hover {
    background: var(--primary-100);
}

.period-tab.active {
    background: white;
    color: var(--primary-800);
    border-bottom: 3px solid var(--primary);
    font-weight: 600;
}

.period-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.period-content.active {
    display: block;
}

/* Subject Report Cards - Green Theme */
.subject-report {
    border: 1px solid var(--primary-200);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-4);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.subject-report:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.subject-header {
    background: var(--primary-50);
    padding: var(--space-4);
    border-bottom: 1px solid var(--primary-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.subject-name {
    font-weight: 600;
    color: var(--primary-800);
    font-size: var(--font-size-lg);
}

.subject-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--primary-600);
}

.subject-meta span {
    background: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--primary-200);
    font-weight: 500;
}

.report-details {
    padding: var(--space-4);
}

/* Progress Grid - Green Theme */
.progress-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.progress-item {
    display: flex;
    flex-direction: column;
    background: var(--primary-50);
    padding: var(--space-3);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--primary-100);
}

.progress-label {
    font-weight: 600;
    color: var(--primary-700);
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-value {
    color: var(--dark);
    font-weight: 600;
    font-size: var(--font-size-lg);
}

/* Next Steps - Green Theme */
.next-steps {
    margin: var(--space-4) 0;
    padding: var(--space-3);
    background: var(--warning);
    color: #78350f;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid #f59e0b;
    font-size: var(--font-size-sm);
}

.next-steps strong {
    color: #92400e;
    font-size: var(--font-size-xs);
}

/* Habits Grid - Green Theme */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
    margin: var(--space-4) 0;
    font-size: var(--font-size-sm);
}

.habit-item {
    background: var(--primary-50);
    padding: var(--space-3);
    border-radius: var(--border-radius-sm);
    text-align: center;
    border: 1px solid var(--primary-200);
    transition: var(--transition);
}

.habit-item:hover {
    background: var(--primary-100);
    transform: translateY(-1px);
}

.habit-label {
    font-weight: 600;
    color: var(--primary-700);
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Personal Grid - Green Theme */
.personal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin: var(--space-4) 0;
    font-size: var(--font-size-sm);
}

.personal-item {
    background: var(--info);
    padding: var(--space-3);
    border-radius: var(--border-radius-sm);
    text-align: center;
    border: 1px solid #a5f3fc;
    transition: var(--transition);
}

.personal-item:hover {
    background: #67e8f9;
    transform: translateY(-1px);
}

.personal-label {
    font-weight: 600;
    color: #155e75;
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Additional Notes - Green Theme */
.additional-notes {
    margin: var(--space-4) 0;
    padding: var(--space-3);
    background: var(--info);
    color: #164e63;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--info);
    font-size: var(--font-size-sm);
}

.additional-notes strong {
    color: #155e75;
    font-size: var(--font-size-xs);
}

/* No Reports - Green Theme */
.no-reports {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    color: var(--secondary);
    background: var(--primary-50);
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-200);
    margin: var(--space-4) 0;
}

.no-reports h3 {
    color: var(--primary-700);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-xl);
}

.no-reports p {
    color: var(--secondary);
    font-size: var(--font-size-base);
}

/* Alert System - Green Theme */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.error {
    background: #fef2f2;
    color: #dc2626;
    border-left-color: var(--danger);
}

.alert.success {
    background: var(--primary-50);
    color: var(--primary-800);
    border-left-color: var(--success);
}

.alert.info {
    background: #f0f9ff;
    color: #0369a1;
    border-left-color: var(--info);
}

.alert.warning {
    background: #fffbeb;
    color: #d97706;
    border-left-color: var(--warning);
}

.alert i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

/* Button System - Green Theme */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.25);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.25);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-xs {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Section System - Green Theme */
.section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.section:hover {
    box-shadow: var(--shadow-md);
}

/* Bulk Assign Section - Green Theme */
.bulk-assign-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-left: 4px solid var(--primary);
    border: 1px solid var(--primary-200);
}

.bulk-assign-section:hover {
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

/* Form System - Green Theme */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-control:hover {
    border-color: #d1d5db;
}

/* Form Layouts */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Tabs System - Green Theme */
.tabs {
    display: flex;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    gap: 0.5rem;
}

.tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

/* Page Header - Green Theme */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-100);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-800);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats Grid - Green Theme */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.15);
}

.stat-card.teachers { border-left-color: var(--primary-500); }
.stat-card.tutors { border-left-color: var(--success); }
.stat-card.both { border-left-color: var(--teal); }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-700);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Search and Filter - Green Theme */
.search-filter-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

/* Table System - Green Theme */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--primary-50);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Role Badges - Green Theme */
.role-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-teacher {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
}

.role-tutor {
    background: linear-gradient(135deg, var(--emerald), #059669);
    color: white;
}

.role-teacher_tutor {
    background: linear-gradient(135deg, var(--teal), #0d9488);
    color: white;
}

/* Assignment Badges - Green Theme */
.assignment-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.assignment-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-subjects {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
    border: 1px solid #fed7aa;
}

.badge-tutor {
    background: rgba(34, 197, 94, 0.2);
    color: var(--primary-800);
    border: 1px solid var(--primary-200);
}

.badge-reports {
    background: rgba(6, 182, 212, 0.2);
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.badge-none {
    background: rgba(107, 114, 128, 0.2);
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* File Upload Area - Green Theme */
.file-upload-area {
    border: 2px dashed var(--primary-300);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    background: var(--primary-50);
    margin-bottom: 1.5rem;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-100);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-200);
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-500);
    margin-bottom: 1rem;
}

/* Instructions Card - Green Theme */
.instructions-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.instructions-card h3 {
    margin-top: 0;
    color: white;
}

.instructions-card pre {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 1rem;
    color: white;
    font-size: 0.85rem;
    overflow-x: auto;
}

/* Role Badges Container */
.role-badges {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.role-badge-small {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Password Strength - Green Theme */
.password-strength {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: var(--transition);
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    background: var(--danger);
    width: 33%;
}

.password-strength.medium .password-strength-bar {
    background: var(--warning);
    width: 66%;
}

.password-strength.strong .password-strength-bar {
    background: var(--success);
    width: 100%;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .loading-spinner {
    display: block;
}

.btn.loading .btn-text {
    opacity: 0.7;
}

/* Empty States - Green Theme */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary-300);
    margin-bottom: 1rem;
}

/* Coverage Badges - Green Theme */
.coverage-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-high {
    background: rgba(34, 197, 94, 0.2);
    color: var(--primary-700);
}

.badge-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.badge-low {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Progress Bars - Green Theme */
.progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 4px;
    transition: var(--transition);
}

.progress-bar.medium {
    background: var(--gradient-warning);
}

.progress-bar.low {
    background: var(--gradient-danger);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Legend - Green Theme */
.legend {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    border: 1px solid var(--primary-200);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.legend-title {
    font-weight: 600;
    color: var(--primary-800);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Compact Form */
.compact-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
}

.form-actions .btn {
    flex: 1;
}

/* Class Stats - Green Theme */
.class-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card-with-coverage {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card-with-coverage:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.15);
}

.stat-card-with-coverage.high-coverage {
    border-left-color: var(--success);
}

.stat-card-with-coverage.medium-coverage {
    border-left-color: var(--warning);
}

.stat-card-with-coverage.low-coverage {
    border-left-color: var(--danger);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.class-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-800);
    margin: 0;
}

.stat-numbers {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.stat-number {
    font-weight: 600;
    color: var(--primary-700);
}

.tutor-info {
    font-size: 0.85rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tutor-info i {
    color: var(--primary-500);
}

/* Login System - Green Theme */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    padding: var(--space-5);
}

.login-container {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.6s ease;
    border: 1px solid var(--primary-200);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.login-header h1 {
    color: var(--primary-800);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.login-header h2 {
    color: var(--secondary);
    font-size: var(--font-size-base);
    font-weight: 400;
}

/* Teacher Filter - Green Theme */
.teacher-filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.teacher-selection {
    background: var(--primary-50);
    padding: var(--space-5);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.subject-filter {
    background: var(--primary-50);
    padding: var(--space-5);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        padding-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        top: 70px;
    }
    
    .sidebar.collapsed {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header {
        padding: var(--space-3) var(--space-4);
        height: 60px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .sidebar {
        top: 60px;
    }
    
    .header-left h1 {
        font-size: var(--font-size-lg);
    }
    
    .header-right span {
        font-size: var(--font-size-sm);
    }
    
    .main-content {
        padding: var(--space-4);
    }
    
    /* Student Reports Responsive */
    .student-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .student-meta {
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
    }
    
    .progress-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .habits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .personal-grid {
        grid-template-columns: 1fr;
    }
    
    .period-tabs {
        flex-wrap: wrap;
    }
    
    .period-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: var(--space-2) var(--space-3);
    }
    
    .subject-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .subject-meta {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .form-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-filter-bar {
        grid-template-columns: 1fr;
    }
    
    .compact-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .class-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .teacher-filter-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .habits-grid {
        grid-template-columns: 1fr;
    }
    
    .student-header {
        padding: var(--space-3);
    }
    
    .student-info h2 {
        font-size: var(--font-size-lg);
    }
    
    .period-tab {
        font-size: var(--font-size-xs);
        padding: var(--space-2);
    }
    
    /* Report period title */
.report-period-title {
    margin-bottom: var(--space-4) !important;
    color: var(--primary-800) !important;
    font-size: var(--font-size-lg) !important;
    font-weight: 600;
}
}