/* ============================================================================
   CLEAN WHITE THEME - WHITE BACKGROUND WITH BLACK TEXT
   ============================================================================ */

:root {
    /* Primary Colors - Clean Blue */
    --primary-start: #2563eb;
    --primary-end: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;

    /* Accent Colors */
    --accent: #0891b2;
    --accent-light: #06b6d4;

    /* Status Colors - High Contrast */
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #ea580c;
    --warning-bg: #ffedd5;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --info: #0284c7;
    --info-bg: #e0f2fe;

    /* Neutral Colors - White Background Theme */
    --gray-50: #ffffff;
    --gray-100: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors - White Theme */
    --background: #ffffff;
    --surface: #ffffff;
    --border: #e5e7eb;
    --text-primary: #000000;
    --text-secondary: #374151;
    --text-disabled: #9ca3af;

    /* 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;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* White background for body */
body {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Login page background */
.login-container {
    background: #f9fafb !important;
}

/* Update button colors */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
    font-weight: 600;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: #16a34a !important;
    color: white !important;
    font-weight: 600;
}

.btn-success:hover {
    background: #15803d !important;
}

.btn-danger {
    background: #dc2626 !important;
    color: white !important;
    font-weight: 600;
}

.btn-danger:hover {
    background: #b91c1c !important;
}

.btn-warning {
    background: #ea580c !important;
    color: white !important;
    font-weight: 600;
}

.btn-warning:hover {
    background: #c2410c !important;
}

.btn-secondary {
    background: #6b7280 !important;
    color: white !important;
}

.btn-secondary:hover {
    background: #4b5563 !important;
}

/* Update status badges */
.assignment-status {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.status-graded {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #16a34a;
}

.status-submitted {
    background: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #2563eb;
}

.status-pending {
    background: #ffedd5 !important;
    color: #c2410c !important;
    border: 1px solid #ea580c;
}

.status-needs-retake {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #dc2626;
}

/* Update demo banner */
.demo-banner {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-bottom: 3px solid #1e40af;
    color: white !important;
}

/* Update cards - white with borders */
.login-card,
.assignment-card,
.class-card,
.stat-card {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

.login-card:hover,
.assignment-card:hover,
.class-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15) !important;
    border-color: #2563eb !important;
}

/* Update text colors - BLACK text */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000000 !important;
    font-weight: 700;
}

p,
span,
label,
div {
    color: #000000 !important;
}

small {
    color: #374151 !important;
}

/* Update input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

input,
textarea,
select {
    background: white !important;
    color: #000000 !important;
    border: 2px solid #e5e7eb !important;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
}

/* Update navbar - white with border */
.navbar {
    background: white !important;
    border-bottom: 2px solid #e5e7eb !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

.navbar h2 {
    color: #000000 !important;
}

/* Update modal overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
}

.modal {
    background: white !important;
    color: #000000 !important;
}

.modal-content {
    background: white !important;
    color: #000000 !important;
}

/* Update toast notifications */
.toast-success {
    background: #16a34a !important;
    border-left: 4px solid #15803d !important;
    color: white !important;
}

.toast-error {
    background: #dc2626 !important;
    border-left: 4px solid #b91c1c !important;
    color: white !important;
}

.toast-warning {
    background: #ea580c !important;
    border-left: 4px solid #c2410c !important;
    color: white !important;
}

.toast-info {
    background: #0284c7 !important;
    border-left: 4px solid #0369a1 !important;
    color: white !important;
}

/* Update demo account buttons */
.demo-account-btn {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    color: #000000 !important;
    transition: all var(--transition-base);
}

.demo-account-btn:hover {
    border-color: #2563eb !important;
    background: #f9fafb !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Update links */
a {
    color: #2563eb !important;
    font-weight: 600;
}

a:hover {
    color: #1e40af !important;
    text-decoration: underline;
}

/* Better form styling */
.form-group label {
    color: #000000 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 2px solid #e5e7eb !important;
    color: #000000 !important;
    background: white !important;
}

/* Dashboard container */
.dashboard-container {
    background: #f9fafb !important;
    color: #000000 !important;
}

/* Page backgrounds */
.page {
    background: #f9fafb !important;
    color: #000000 !important;
}

/* Stat cards */
.stat-value {
    color: #2563eb !important;
    font-weight: 700;
}

.stat-label {
    color: #374151 !important;
}

/* Tabs */
.tab-btn {
    color: #374151 !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
}

.tab-btn.active {
    color: #2563eb !important;
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

.tab-btn:hover {
    background: #f9fafb !important;
}

/* Alert boxes */
.alert {
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.alert-info {
    background: #e0f2fe !important;
    border-left: 4px solid #0284c7 !important;
    color: #0c4a6e !important;
}

.alert-warning {
    background: #ffedd5 !important;
    border-left: 4px solid #ea580c !important;
    color: #7c2d12 !important;
}

.alert-success {
    background: #dcfce7 !important;
    border-left: 4px solid #16a34a !important;
    color: #14532d !important;
}

.alert-danger {
    background: #fee2e2 !important;
    border-left: 4px solid #dc2626 !important;
    color: #7f1d1d !important;
}

/* Loading spinner */
.loading {
    border-color: #e5e7eb !important;
    border-top-color: #2563eb !important;
}

/* Ensure all text is readable */
* {
    color: inherit;
}

/* Override any remaining colored backgrounds */
.app-container {
    background: #ffffff !important;
}