/*
Theme Name: AI Classroom Copilot
Theme URI: https://aiclassroomcopilot.com
Description: A modern educational platform theme for schools and teachers
Version: 1.0.0
Author: AI Classroom Copilot Team
Author URI: https://aiclassroomcopilot.com
License: MIT License
License URI: https://opensource.org/licenses/MIT
Text Domain: ai-classroom-copilot
Domain Path: /languages
Tags: education, school, teacher, classroom, responsive, modern, dark-mode

*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0F172A;
    color: #F8FAFC;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --deep-navy: #0F172A;
    --slate: #111827;
    --card-bg: #1F2937;
    --accent-amber: #F59E0B;
    --gold-accent: #D4AF37;
    --coral: #FF6B6B;
    --primary-text: #F8FAFC;
    --secondary-text: #CBD5E1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Glass Card Effect */
.glass-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glow-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glow-card:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #F59E0B, #D4AF37);
    color: #0F172A;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4AF37, #F59E0B);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-text);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
}

/* Navigation Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 256px;
    height: 100vh;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(245, 158, 11, 0.2);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F59E0B, #D4AF37);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav {
    padding: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    color: var(--secondary-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
}

.nav-item.active {
    border-left: 4px solid var(--accent-amber);
}

/* Main Content Area */
.main-content {
    margin-left: 256px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A, #111827, #0F172A);
}

/* Header */
.header {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

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

.stat-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

/* Timetable Grid */
.timetable-grid {
    display: grid;
    grid-template-columns: 120px repeat(5, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    overflow-x: auto;
}

.timetable-header {
    font-weight: 600;
    color: var(--primary-text);
    text-align: center;
    padding: 0.5rem;
}

.timetable-slot {
    min-height: 80px;
    background: rgba(31, 41, 55, 0.5);
    border: 2px dashed rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.timetable-slot:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.class-block {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: move;
    transition: all 0.2s ease;
}

.class-block:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Attendance Grid */
.attendance-grid {
    display: grid;
    grid-template-columns: 200px repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    overflow-x: auto;
}

.student-name {
    font-weight: 500;
    color: var(--primary-text);
    padding: 0.5rem;
}

.attendance-status {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.status-present {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-absent {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-late {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Progress Bars */
.progress-bar {
    background: #374151;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #F59E0B, #D4AF37);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    color: var(--primary-text);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: var(--secondary-text);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timetable-grid {
        grid-template-columns: 80px repeat(5, 120px);
        font-size: 0.875rem;
    }
    
    .attendance-grid {
        grid-template-columns: 150px repeat(auto-fit, 80px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --deep-navy: #0F172A;
        --slate: #111827;
        --card-bg: #1F2937;
        --primary-text: #F8FAFC;
        --secondary-text: #CBD5E1;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .header {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .glass-card {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}
