/* GDE SciBOTICS Competition Management System - Design System CSS Framework */

/* ==================== DESIGN SYSTEM FOUNDATION ==================== */

/* Import Inter font family */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties - Design System Colors */
:root {
    /* Primary Colors - From Sci-Bono Logo */
    --primary-blue: #2563EB;
    --primary-blue-light: #3B82F6;
    --primary-blue-dark: #1D4ED8;
    --accent-orange: #F97316;
    --accent-orange-light: #FB923C;
    --accent-orange-dark: #EA580C;

    /* Secondary Colors - From GDE Logo */
    --secondary-blue: #1E40AF;
    --secondary-gold: #F59E0B;
    --secondary-gold-light: #FCD34D;
    --secondary-gold-dark: #D97706;

    /* Neutral Colors - Modern palette */
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-orange) 0%, var(--secondary-gold) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);

    /* Shadow Variables */
    --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 -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius Variables */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Transition Variables */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== CSS RESET & BASE STYLES ==================== */

* {
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100%;
    overflow-x: hidden;
    background-color: var(--neutral-50);
    color: var(--neutral-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main content wrapper */
.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc(100vh - 80px); /* Account for navigation height */
}

/* Ensure proper stacking context */
nav {
    position: relative;
    z-index: 100;
}

/* ==================== DESIGN SYSTEM COMPONENTS ==================== */

/* Card System */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-sm {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-lg {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

/* Button System */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 8px;
}

/* Alert System */
.alert {
    padding: 16px;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: 16px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: #065f46;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning);
    color: #92400e;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: var(--error);
    color: #991b1b;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: var(--info);
    color: #1e40af;
}

/* Component Showcase */
.component-showcase {
    background: var(--gradient-subtle);
    padding: 32px;
    border-radius: var(--radius-2xl);
    margin: 24px 0;
}

/* ==================== LAYOUT & DISPLAY UTILITIES ==================== */

.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox Utilities */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; }

/* Grid Utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Sizing Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }

/* SVG Sizing - Force override */
.w-5.h-5 svg, svg.w-5.h-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.w-6.h-6 svg, svg.w-6.h-6 {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Spacing Utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.m-auto { margin: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }

.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Color Utilities */
.text-white { color: white; }
.text-gray-50 { color: var(--neutral-50); }
.text-gray-100 { color: var(--neutral-100); }
.text-gray-200 { color: var(--neutral-200); }
.text-gray-300 { color: var(--neutral-300); }
.text-gray-400 { color: var(--neutral-400); }
.text-gray-500 { color: var(--neutral-500); }
.text-gray-600 { color: var(--neutral-600); }
.text-gray-700 { color: var(--neutral-700); }
.text-gray-800 { color: var(--neutral-800); }
.text-gray-900 { color: var(--neutral-900); }

.text-blue-100 { color: #DBEAFE; }
.text-blue-200 { color: #BFDBFE; }
.text-blue-600 { color: var(--primary-blue); }
.text-blue-700 { color: #1D4ED8; }
.text-blue-800 { color: var(--secondary-blue); }

.text-green-600 { color: var(--success); }
.text-green-700 { color: #047857; }
.text-green-800 { color: #065f46; }

.text-yellow-400 { color: #FBBF24; }
.text-yellow-600 { color: var(--secondary-gold); }
.text-yellow-700 { color: #B45309; }
.text-yellow-800 { color: var(--secondary-gold-dark); }

.text-orange-600 { color: var(--accent-orange); }
.text-orange-700 { color: var(--accent-orange-dark); }

.text-purple-600 { color: #9333EA; }
.text-purple-700 { color: #7C3AED; }

.text-red-400 { color: #F87171; }
.text-red-600 { color: var(--error); }
.text-red-700 { color: #B91C1C; }

/* Background Colors */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--neutral-50); }
.bg-gray-100 { background-color: var(--neutral-100); }
.bg-gray-200 { background-color: var(--neutral-200); }
.bg-gray-800 { background-color: var(--neutral-800); }
.bg-gray-900 { background-color: var(--neutral-900); }

.bg-blue-50 { background-color: #EFF6FF; }
.bg-blue-100 { background-color: #DBEAFE; }
.bg-blue-600 { background-color: var(--primary-blue); }
.bg-blue-800 { background-color: var(--secondary-blue); }

.bg-green-50 { background-color: #ECFDF5; }
.bg-green-100 { background-color: #D1FAE5; }
.bg-green-600 { background-color: var(--success); }

.bg-yellow-50 { background-color: #FFFBEB; }
.bg-yellow-100 { background-color: #FEF3C7; }
.bg-yellow-400 { background-color: #FBBF24; }
.bg-yellow-600 { background-color: var(--secondary-gold); }

.bg-orange-100 { background-color: #FED7AA; }
.bg-orange-400 { background-color: #FB923C; }
.bg-orange-600 { background-color: var(--accent-orange); }

.bg-purple-100 { background-color: #F3E8FF; }
.bg-purple-600 { color: #9333EA; }

.bg-red-50 { background-color: #FEF2F2; }
.bg-red-400 { background-color: #F87171; }

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.bg-gradient-subtle {
    background: var(--gradient-subtle);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Border */
.border { border: 1px solid var(--neutral-200); }
.border-t { border-top: 1px solid var(--neutral-200); }
.border-b { border-bottom: 1px solid var(--neutral-200); }
.border-l-4 { border-left: 4px solid; }
.border-gray-200 { border-color: var(--neutral-200); }
.border-gray-300 { border-color: var(--neutral-300); }
.border-blue-600 { border-color: var(--primary-blue); }
.border-yellow-200 { border-color: #FDE68A; }
.border-yellow-400 { border-color: #FBBF24; }
.border-green-400 { border-color: #4ADE80; }
.border-orange-400 { border-color: #FB923C; }

/* Shadows */
.shadow { box-shadow: var(--shadow-sm); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-2 { top: 0.5rem; }
.top-4 { top: 1rem; }
.bottom-0 { bottom: 0; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.left-0 { left: 0; }
.left-2 { left: 0.5rem; }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-x-full { --tw-translate-x: 100%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Z-Index */
.z-50 { z-index: 50; }

/* Transition */
.transition-all { transition: all var(--transition-normal); }
.transition-colors { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }
.transition-shadow { transition: box-shadow var(--transition-normal); }
.transition-transform { transition: transform var(--transition-normal); }

/* Hover States */
.hover\\:bg-gray-50:hover { background-color: var(--neutral-50); }
.hover\\:bg-gray-200:hover { background-color: var(--neutral-200); }
.hover\\:bg-blue-50:hover { background-color: #EFF6FF; }
.hover\\:bg-blue-200:hover { background-color: #BFDBFE; }
.hover\\:bg-green-200:hover { background-color: #BBF7D0; }
.hover\\:bg-purple-200:hover { background-color: #E9D5FF; }
.hover\\:shadow-lg:hover { box-shadow: var(--shadow-lg); }

/* SVG Styling */
svg {
    display: block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}

/* Ensure SVGs with w- and h- classes are properly sized */
svg[class*="w-"][class*="h-"] {
    max-width: none;
    max-height: none;
}

/* Specific SVG sizing utilities */
.w-5, svg.w-5 { width: 1.25rem; }
.h-5, svg.h-5 { height: 1.25rem; }
.w-6, svg.w-6 { width: 1.5rem; }
.h-6, svg.h-6 { height: 1.5rem; }

/* ==================== SCORING INTERFACE COMPONENTS ==================== */

.scoring-interface {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 24px;
    margin: 20px 0;
}

.team-info {
    background: var(--gradient-primary);
    color: white;
    padding: 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.scoring-grid {
    display: grid;
    gap: 20px;
}

.score-category {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.score-category:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rating-selection {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.rating-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-btn {
    padding: 10px 18px;
    border: 2px solid var(--neutral-200);
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 12px;
    font-weight: 500;
    color: var(--neutral-600);
}

.rating-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.rating-btn.active {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* ==================== RESULTS DASHBOARD COMPONENTS ==================== */

.results-dashboard {
    min-height: 100vh;
    background: var(--gradient-subtle);
}

.competition-header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0;
}

.category-tabs {
    display: flex;
    background: var(--neutral-100);
    padding: 4px;
    border-radius: var(--radius-xl);
    margin: 24px auto;
    max-width: 600px;
}

.category-tabs .tab {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-600);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.category-tabs .tab:hover {
    background: var(--neutral-200);
}

.category-tabs .tab.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.team-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 24px;
    position: relative;
    transition: all var(--transition-normal);
    border-left: 4px solid transparent;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.rank-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.rank-1 { background: #F59E0B; } /* Gold */
.rank-2 { background: var(--neutral-400); } /* Silver */
.rank-3 { background: var(--accent-orange); } /* Bronze */

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 4px;
    padding-right: 48px;
}

.school-name {
    font-size: 14px;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.scores {
    space-y: 8px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 4px 0;
}

.score-row:last-child {
    border-top: 1px solid var(--neutral-200);
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 16px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Small screens (640px and up) */
@media (min-width: 640px) {
    .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Medium screens (768px and up) */
@media (min-width: 768px) {
    .md\\:block { display: block; }
    .md\\:flex { display: flex; }
    .md\\:grid { display: grid; }
    .md\\:hidden { display: none; }
    .md\\:flex-row { flex-direction: row; }
    .md\\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\\:text-left { text-align: left; }
    .md\\:text-right { text-align: right; }
    .md\\:justify-start { justify-content: flex-start; }
    .md\\:justify-end { justify-content: flex-end; }
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\\:mb-0 { margin-bottom: 0; }
}

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
    .lg\\:block { display: block; }
    .lg\\:flex { display: flex; }
    .lg\\:hidden { display: none; }
    .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Extra large screens (1280px and up) */
@media (min-width: 1280px) {
    .xl\\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xl\\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ==================== ANIMATIONS ==================== */

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Additional Components and Utilities */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.appearance-none {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.rounded-none {
    border-radius: 0;
}

.rounded-t-md {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.rounded-b-md {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-primary-500:focus {
    --tw-ring-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.focus\:border-primary-500:focus {
    border-color: var(--primary-blue);
}

.focus\:z-10:focus {
    z-index: 10;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-150 {
    transition-duration: 150ms;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}

.focus\:ring-primary-500:focus {
    --tw-ring-color: var(--primary-blue);
}

.bg-primary-600 {
    background-color: var(--primary-blue);
}

.hover\:bg-primary-700:hover {
    background-color: var(--primary-blue-dark);
}

.border-transparent {
    border-color: transparent;
}

/* Dashboard specific styles */
.dashboard-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Mobile-first responsive dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 12px;
    }
    
    /* Mobile-friendly stat cards */
    .stat-card {
        margin-bottom: 16px;
    }
    
    /* Stack buttons vertically on mobile */
    .flex.space-x-4 {
        flex-direction: column;
        gap: 12px;
    }
    
    .flex.space-x-4 > * + * {
        margin-left: 0;
    }
    
    /* Mobile-friendly card headers */
    .card-header {
        padding: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Make tables scroll horizontally on mobile */
    .schedule-table-container {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    /* Improve form layouts on mobile */
    .form-field-enhanced {
        margin-bottom: 20px;
    }
    
    /* Better spacing for text elements */
    h1, .text-3xl {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    h2, .text-2xl {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    /* Improve button layouts */
    .btn-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-group .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    /* Better mobile spacing for headers */
    .bg-white.shadow-sm.border-b {
        padding: 16px !important;
    }
    
    .bg-white.shadow-sm.border-b .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .bg-white.shadow-sm.border-b h1 {
        margin-bottom: 4px;
    }
    
    /* Grid improvements for mobile */
    .grid.gap-6 {
        gap: 16px;
    }
    
    /* Card padding adjustments */
    .card.p-6 {
        padding: 16px !important;
    }
    
    .card.p-8 {
        padding: 20px !important;
    }
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-normal);
    color: var(--neutral-900);
}

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

.stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.75rem;
    opacity: 0.8;
}

.action-button {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    color: var(--neutral-700);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.action-button:hover {
    background: var(--neutral-50);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.action-button svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.btn-disabled {
    background: #6b7280;
    color: #9ca3af;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    cursor: not-allowed;
    transition: all var(--transition-normal);
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.6;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ==================== MODAL SYSTEM ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

/* ==================== NAVIGATION SYSTEM ==================== */

/* Main navigation links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.nav-link:active,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link-highlight {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link-highlight:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile navigation links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    margin: 4px 0;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
}

.mobile-nav-link:active,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-nav-link svg {
    flex-shrink: 0;
    margin-right: 12px;
}

/* ==================== COMPREHENSIVE RESPONSIVE UTILITIES ==================== */

/* Display utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* Alignment utilities */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Gap utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Spacing utilities - margin */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-12 { margin-left: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

/* Spacing utilities - padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }

/* Width and height utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-1\/4 { width: 25%; }
.w-3\/4 { width: 75%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* Color utilities */
.text-white { color: white; }
.text-black { color: black; }
.text-gray-50 { color: var(--neutral-50); }
.text-gray-100 { color: var(--neutral-100); }
.text-gray-200 { color: var(--neutral-200); }
.text-gray-300 { color: var(--neutral-300); }
.text-gray-400 { color: var(--neutral-400); }
.text-gray-500 { color: var(--neutral-500); }
.text-gray-600 { color: var(--neutral-600); }
.text-gray-700 { color: var(--neutral-700); }
.text-gray-800 { color: var(--neutral-800); }
.text-gray-900 { color: var(--neutral-900); }
.text-blue-100 { color: #DBEAFE; }
.text-blue-200 { color: #BFDBFE; }
.text-blue-500 { color: var(--primary-blue-light); }
.text-blue-600 { color: var(--primary-blue); }
.text-blue-800 { color: #1E40AF; }
.text-red-200 { color: #FECACA; }
.text-red-600 { color: var(--error); }

/* Background color utilities */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--neutral-50); }
.bg-gray-100 { background-color: var(--neutral-100); }
.bg-gray-200 { background-color: var(--neutral-200); }
.bg-gray-900 { background-color: var(--neutral-900); }
.bg-blue-50 { background-color: #EFF6FF; }
.bg-blue-100 { background-color: #DBEAFE; }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-accent { background: var(--gradient-accent); }

/* Border utilities */
.border { border: 1px solid var(--neutral-200); }
.border-t { border-top: 1px solid var(--neutral-200); }
.border-b { border-bottom: 1px solid var(--neutral-200); }
.border-b-2 { border-bottom: 2px solid var(--neutral-200); }
.border-gray-200 { border-color: var(--neutral-200); }
.border-blue-100 { border-color: #DBEAFE; }
.border-blue-200 { border-color: #BFDBFE; }
.border-blue-600 { border-color: var(--primary-blue); }
.border-white { border-color: white; }
.border-opacity-20 { border-color: rgba(255, 255, 255, 0.2); }

/* Text utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.right-6 { right: 1.5rem; }
.z-50 { z-index: 50; }

/* Mobile-specific utilities */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Overflow utilities */
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Additional responsive utilities */
.min-w-0 { min-width: 0; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }

/* Rounded corner utilities */
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Background opacity utilities */
.bg-opacity-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-opacity-15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-opacity-20 { background-color: rgba(255, 255, 255, 0.2); }

/* Line height utilities */
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

/* Touch-friendly button sizing for mobile */
@media (max-width: 768px) {
    .btn-sm {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .mobile-nav-link {
        min-height: 48px;
        padding: 16px 20px;
    }
    
    /* Ensure touch targets are at least 44px */
    button, 
    .btn-primary, 
    .btn-secondary, 
    .btn-outline,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
    }
}

/* Error Page Styles */
.error-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    padding: 48px 24px;
}

.error-content {
    max-width: 28rem;
    width: 100%;
    text-align: center;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 48px 32px;
}

.error-icon {
    margin: 0 auto 32px;
    width: 96px;
    height: 96px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-svg {
    width: 48px !important;
    height: 48px !important;
    color: var(--error);
    flex-shrink: 0;
}

.error-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--neutral-900);
    line-height: 1;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 16px;
}

.error-description {
    font-size: 1rem;
    color: var(--neutral-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.error-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.error-button svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.error-footer {
    border-top: 1px solid var(--neutral-200);
    padding-top: 24px;
    margin-top: 24px;
}

.competition-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.competition-badge {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.competition-badge svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

.competition-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0;
}

.competition-date {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0;
}

/* Mobile responsive adjustments for error page */
@media (max-width: 640px) {
    .error-page-container {
        padding: 24px 16px;
    }
    
    .error-content {
        padding: 32px 24px;
    }
    
    .error-title {
        font-size: 3rem;
    }
    
    .error-subtitle {
        font-size: 1.25rem;
    }
    
    .error-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }
    
    .error-svg {
        width: 40px;
        height: 40px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Final responsive adjustments for better mobile experience */
@media (max-width: 640px) {
    /* Improve navigation on very small screens */
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Ensure proper footer spacing */
    footer {
        margin-top: 2rem;
    }
    
    /* Better card spacing on small screens */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Improve grid layouts on mobile */
    .grid {
        display: block;
    }
    
    .grid > * {
        margin-bottom: 1rem;
    }
    
    .grid > *:last-child {
        margin-bottom: 0;
    }
}