/* ============================================
   AI TEACHER APP - STYLESHEET
   Powered by KKTHAKUR
   ============================================ */

/* CSS Variables - Light Theme (Default) */
:root {
    /* Primary Colors */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    
    /* Secondary Colors */
    --secondary: #F59E0B;
    --secondary-light: #FBBF24;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-card: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;
    
    /* Border & Shadow */
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Teacher Colors */
    --rohit-color: #F97316;
    --rohit-gradient: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --ravi-color: #3B82F6;
    --ravi-gradient: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    --sangeeta-color: #EC4899;
    --sangeeta-gradient: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --bg-card: #1E293B;
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
#splash-screen {
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    text-align: center;
    padding: var(--space-xl);
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-icon svg {
    width: 80px;
    height: 80px;
    color: white;
}

.app-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 300;
}

.powered-by {
    font-size: 0.875rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-small {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.logo-small svg {
    width: 100%;
    height: 100%;
}

.header-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-main {
    flex: 1;
    padding: var(--space-lg);
    padding-bottom: 100px;
    overflow-y: auto;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: var(--space-xl);
}

.greeting {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.sub-greeting {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.chat-icon { background: var(--primary-gradient); }
.call-icon { background: var(--success); }
.homework-icon { background: var(--secondary); }
.progress-icon { background: var(--rohit-color); }

.action-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Teachers Section */
.teachers-section {
    margin-bottom: var(--space-xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.section-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.teachers-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: none;
}

.teachers-grid::-webkit-scrollbar {
    display: none;
}

.teacher-card {
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.teacher-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rohit-avatar { background: var(--rohit-gradient); }
.ravi-avatar { background: var(--ravi-gradient); }
.sangeeta-avatar { background: var(--sangeeta-gradient); }

.avatar-initials {
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--success);
    border: 2px solid var(--bg-card);
}

.teacher-info h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.teacher-subject {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.teacher-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Activity Section */
.activity-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-icon.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
}

.activity-icon svg {
    width: 20px;
    height: 20px;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item:hover {
    color: var(--primary-light);
}

/* ============================================
   SCREEN HEADER
   ============================================ */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: var(--border-color);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.screen-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.placeholder {
    width: 40px;
}

.screen-content {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
    padding-bottom: 100px;
}

/* ============================================
   TEACHER SELECTION
   ============================================ */
.teacher-selection-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.teacher-selection-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.teacher-selection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.teacher-large-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.teacher-large-avatar .avatar-initials {
    font-size: 2rem;
}

.avatar-wave {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.5rem;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.teacher-details h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.teacher-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.teacher-traits {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.trait {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.teacher-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* ============================================
   CHAT SCREEN
   ============================================ */
.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.chat-teacher-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.teacher-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--rohit-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-avatar-small .avatar-initials {
    font-size: 1.25rem;
}

.chat-teacher-details h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}

.online-status {
    font-size: 0.875rem;
    color: var(--success);
}

.chat-messages {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--bg-secondary);
}

.message {
    display: flex;
    gap: var(--space-md);
    max-width: 85%;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.teacher-message {
    align-self: flex-start;
}

.student-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar .avatar-initials {
    font-size: 0.875rem;
}

.message-content {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.student-message .message-content {
    background: var(--primary);
    color: white;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin-bottom: var(--space-sm);
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: block;
    margin-top: var(--space-sm);
}

.student-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-input-area {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.input-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
}

.input-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.input-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.input-action-btn svg {
    width: 20px;
    height: 20px;
}

#message-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    padding: var(--space-sm);
}

#message-input::placeholder {
    color: var(--text-tertiary);
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   CALL SCREEN
   ============================================ */
#call-screen {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E1B4B 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.call-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.call-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
}

.call-teacher-avatar {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    background: var(--rohit-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: var(--space-xl);
}

.call-teacher-avatar .avatar-initials.large {
    font-size: 3rem;
}

.call-waves {
    position: absolute;
    inset: -20px;
}

.wave {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: waveExpand 2s ease-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes waveExpand {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.call-info {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.call-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.call-status {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.call-timer {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: monospace;
}

.call-controls {
    display: flex;
    gap: var(--space-xl);
}

.call-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-lg);
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.call-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.call-control-btn svg {
    width: 28px;
    height: 28px;
}

.call-control-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

.call-control-btn.end-call {
    background: var(--error);
}

.call-control-btn.end-call:hover {
    background: #DC2626;
}

/* ============================================
   HOMEWORK SCREEN
   ============================================ */
.homework-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tab-btn {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.homework-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.homework-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.homework-subject {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.homework-subject.math { background: var(--rohit-color); }
.homework-subject.science { background: var(--ravi-color); }
.homework-subject.english { background: var(--sangeeta-color); }

.homework-details {
    flex: 1;
}

.homework-details h4 {
    font-weight: 600;
    margin-bottom: 2px;
}

.homework-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.homework-due {
    font-size: 0.75rem;
    color: var(--error);
    font-weight: 600;
}

.homework-action {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-tertiary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.homework-action:hover {
    background: var(--primary);
    color: white;
}

.homework-action svg {
    width: 20px;
    height: 20px;
}

.add-homework-btn {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-xl) * 2);
    max-width: 440px;
}

.add-homework-btn .btn {
    width: 100%;
}

/* ============================================
   PROGRESS SCREEN
   ============================================ */
.progress-overview {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.progress-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-percent {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.subject-progress {
    margin-bottom: var(--space-xl);
}

.subject-progress h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.subject-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.subject-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.subject-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-name {
    font-weight: 600;
}

.subject-percent {
    font-weight: 700;
    color: var(--primary);
}

.progress-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.achievements h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.achievement-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    opacity: 0.5;
}

.achievement-card.earned {
    opacity: 1;
    border-color: var(--secondary);
    background: rgba(245, 158, 11, 0.1);
}

.achievement-icon {
    font-size: 2rem;
}

.achievement-card span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* SVG Gradient Definition */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 480px) {
    #app {
        max-width: 100%;
    }
    
    .greeting {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}