/**
 * Modern Responsive Design - Rezervační systém Podskalská
 * Mobile-First Approach
 */

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    /* Color Palette */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --secondary-hover: #0891b2;
    --success-color: #10b981;
    --success-dark: #059669;
    --danger-color: #ef4444;
    --danger-dark: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Background Colors */
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-alt: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --hover-bg: #f8fafc;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-muted: #cbd5e1;

    /* 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), 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);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body > .header {
    flex-shrink: 0;
}

body > .container {
    flex: 1 0 auto;
}

body > .footer {
    flex-shrink: 0;
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    width: 100%;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: visible;
}

.logo {
    flex-shrink: 0;
}

.school-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.school-logo img {
    height: 35px;
    width: auto;
}

.school-name {
    display: flex;
    flex-direction: column;
}

.school-name-full {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: none;
}

.school-name-short {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10002;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* User Menu - Mobile First */
.user-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 85vw !important;
    max-width: 320px !important;
    height: 100vh !important; /* Fallback for older browsers */
    height: 100dvh !important; /* Dynamic viewport height for mobile */
    background: var(--surface-color) !important;
    box-shadow: var(--shadow-2xl) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 5rem 0 2rem !important;
    z-index: 10001 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    will-change: transform !important;
}

/* Mobile menu closed state - only applies below desktop breakpoint */
@media (max-width: 1023px) {
    .user-menu:not(.active) {
        display: none !important;
    }
}

.user-menu.active {
    display: flex !important;
    animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.user-info {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.user-email {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    word-break: break-word;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.nav-logout {
    color: var(--danger-color);
}

.nav-link.nav-logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Dropdown Navigation - Mobile First */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.nav-dropdown-toggle:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.nav-dropdown.active .nav-dropdown-toggle {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-chevron {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 2rem;
    margin-top: 0.25rem;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.nav-dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

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

/* Desktop dropdown styles - Separate behavior */
@media (min-width: 1024px) {
    .nav-links {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0;
    }

    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown-toggle {
        width: auto;
        white-space: nowrap;
    }

    .nav-chevron {
        width: 0.875rem;
        height: 0.875rem;
        margin-left: 0.25rem;
    }

    .nav-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        padding: 0.5rem;
        padding-left: 0.5rem;
        padding-top: 0.75rem;
        margin-top: 0;
        background: white;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        border: 1px solid #e5e7eb;
    }

    /* Create invisible bridge between trigger and dropdown */
    .nav-dropdown::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 0.75rem;
        z-index: 999;
    }

    /* Show dropdown on hover OR open class */
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown:hover .nav-chevron {
        transform: rotate(180deg);
    }

    .nav-dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
    }
}

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.nav-open .nav-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    min-height: calc(100vh - 300px);
    padding: 1.5rem 0;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-gradient);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.hero .lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.login-box {
    margin-top: 1.5rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    min-height: 44px;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.btn-primary {
    background: var(--bg-gradient-alt);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background-color: var(--danger-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-show-more {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.375rem 0.875rem;
    margin-top: 0.75rem;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

.btn-show-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-show-more::after {
    content: '▼';
    font-size: 0.625rem;
    transition: var(--transition-fast);
}

.btn-show-more.expanded::after {
    content: '▲';
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.4s ease-out;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background-color: #fef2f2;
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-error::before {
    content: '⚠';
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: var(--success-color);
    color: #166534;
}

.alert-success::before {
    content: '✓';
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    background-color: var(--success-color);
    color: white;
}

.alert-info {
    background-color: #eff6ff;
    border-color: var(--info-color);
    color: #1e40af;
}

.alert-info::before {
    content: 'ℹ';
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   NOTICES
   ======================================== */

.notices-section {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.4s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.notice-banner .notice-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
}

.notice-banner .notice-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2.5;
}

.notice-banner .notice-content {
    flex: 1;
    min-width: 0;
}

.notice-banner .notice-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.notice-banner .notice-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

/* Priority-based styling */
.notice-urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border-color: #ef4444;
    color: #991b1b;
}

.notice-urgent .notice-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.notice-high {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(249, 115, 22, 0.1));
    border-color: #f97316;
    color: #9a3412;
}

.notice-high .notice-icon {
    background: rgba(251, 146, 60, 0.2);
    color: #ea580c;
}

.notice-medium {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
    border-color: #a855f7;
    color: #6b21a8;
}

.notice-medium .notice-icon {
    background: rgba(168, 85, 247, 0.2);
    color: #9333ea;
}

.notice-low {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: #3b82f6;
    color: #1e40af;
}

.notice-low .notice-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

/* Dismiss button */
.notice-dismiss {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    padding: 0;
    cursor: pointer;
    color: currentColor;
    opacity: 0.7;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notice-dismiss:hover:not(:disabled) {
    opacity: 1;
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.1);
}

.notice-dismiss:active:not(:disabled) {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.16);
}

.notice-dismiss:disabled {
    cursor: not-allowed;
}

.notice-dismiss svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.5;
}

/* Priority-specific dismiss button hover states */
.notice-urgent .notice-dismiss:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.2);
}

.notice-high .notice-dismiss:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.2);
}

.notice-medium .notice-dismiss:hover:not(:disabled) {
    background: rgba(147, 51, 234, 0.2);
}

.notice-low .notice-dismiss:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.2);
}

/* Slide out animation for dismissing */
@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notice-banner {
        padding: 1rem;
        gap: 0.75rem;
    }

    .notice-banner .notice-icon {
        width: 2rem;
        height: 2rem;
    }

    .notice-banner .notice-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .notice-banner .notice-title {
        font-size: 1rem;
    }

    .notice-banner .notice-text {
        font-size: 0.875rem;
    }
}

/* ========================================
   CONFERENCES & CARDS
   ======================================== */

.conferences-preview,
.dashboard-section {
    margin-bottom: 2.5rem;
}

.conferences-preview h3,
.dashboard-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.conferences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.conference-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.conference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-alt);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.conference-card:hover::before {
    transform: scaleX(1);
}

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

.conference-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.conference-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.conference-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    width: fit-content;
}

.conference-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.description-container {
    margin-bottom: 1rem;
}

.description-excerpt,
.description-full {
    display: inline;
}

.conference-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-item .icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.availability-indicator {
    text-align: center;
    padding: 0.625rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.availability-indicator.available {
    background-color: #f0fdf4;
    color: var(--success-color);
}

.availability-indicator.full {
    background-color: #fef2f2;
    color: var(--danger-color);
}

.login-prompt {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

/* ========================================
   RESERVATIONS
   ======================================== */

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reservation-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.reservation-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reservation-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.status-active {
    background-color: #dcfce7;
    color: var(--success-dark);
    box-shadow: 0 0 0 1px var(--success-color) inset;
}

.status-badge.status-active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.reservation-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    min-height: 44px;
    background-color: var(--surface-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover,
.form-select:hover {
    border-color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.registration-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.inline-form {
    margin-top: 1rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--surface-color) 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.5s ease-out;
}

.empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--text-light);
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.5rem 0;
    box-shadow: var(--shadow-inner);
}

.progress-bar-fill {
    height: 100%;
    background: var(--bg-gradient-alt);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

/* ========================================
   BADGE
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.badge-success {
    background: #f0fdf4;
    color: var(--success-color);
}

.badge-danger {
    background: #fef2f2;
    color: var(--danger-color);
}

/* ========================================
   ADMIN PANEL
   ======================================== */

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient-alt);
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--bg-gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-container {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin: 0 -1rem;
    width: calc(100% + 2rem);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table thead {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    border-bottom: 2px solid var(--primary-light);
}

.data-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
    font-size: 0.875rem;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: var(--bg-color);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Sortable Table Headers */
.data-table th.sortable {
    position: relative;
    padding-right: 2rem;
    transition: background-color 0.2s ease;
}

.data-table th.sortable:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.data-table th.sortable .sort-indicator {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.4;
    transition: all 0.2s ease;
}

.data-table th.sortable:hover .sort-indicator {
    opacity: 0.7;
}

.data-table th.sortable .sort-indicator::before {
    content: '↕';
    display: inline-block;
}

.data-table th.sortable.sort-asc .sort-indicator {
    opacity: 1;
    color: var(--primary-color);
}

.data-table th.sortable.sort-asc .sort-indicator::before {
    content: '↑';
}

.data-table th.sortable.sort-desc .sort-indicator {
    opacity: 1;
    color: var(--primary-color);
}

.data-table th.sortable.sort-desc .sort-indicator::before {
    content: '↓';
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: var(--bg-color);
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-content form {
    padding: 1.5rem;
}

.modal .form-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    color: var(--text-secondary);
    width: 100%;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-info {
    flex: 1;
}

.footer-school-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.footer-address {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 2px;
    width: fit-content;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-gradient-alt);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ========================================
   LOADING STATES
   ======================================== */

.loading-spinner {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 3rem 2rem;
        border-radius: var(--radius-2xl);
    }

    .hero h2 {
        font-size: 2.25rem;
    }

    .hero .lead {
        font-size: 1.125rem;
    }

    .conferences-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .conference-card {
        padding: 1.75rem;
    }

    .conference-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .reservation-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .form-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .filter-actions {
        flex-direction: row;
    }

    .table-container {
        margin: 0;
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .header {
        padding: 1.25rem 0;
    }

    .header-inner {
        padding: 0 2rem;
    }

    .main-content {
        padding: 2rem 0;
    }

    .hero {
        padding: 4rem 3rem;
        margin-bottom: 3rem;
    }

    .hero h2 {
        font-size: 2.75rem;
    }

    .hero .lead {
        font-size: 1.25rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .school-name-full {
        display: block;
    }

    .school-name-short {
        font-size: 0.6875rem;
    }

    .school-logo img {
        height: 45px;
    }

    /* Desktop Navigation */
    .hamburger-menu {
        display: none !important;
    }

    .user-menu {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
        transform: none !important;
        overflow: visible !important;
        gap: 1rem !important;
    }

    .user-info {
        padding: 0 1rem 0 0;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        margin-bottom: 0;
        align-items: flex-end;
        min-width: 150px;
    }

    .user-name,
    .user-email {
        white-space: nowrap;
    }

    .nav-links {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0;
    }

    .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .nav-icon {
        width: 1rem;
        height: 1rem;
    }

    .nav-overlay {
        display: none !important;
    }

    .conferences-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }

    .conference-card {
        padding: 2rem;
    }

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

    .conferences-preview h3,
    .dashboard-section h2 {
        font-size: 1.875rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem;
    }

    .stat-value {
        font-size: 3rem;
    }

    .data-table th,
    .data-table td {
        padding: 1.125rem 1rem;
        font-size: 0.875rem;
    }

    .footer {
        padding: 3rem 0 2rem;
        margin-top: 5rem;
    }

    .footer .container {
        padding: 0 2rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .footer,
    .btn,
    .filter-actions,
    .form-actions,
    .hamburger-menu,
    .nav-overlay {
        display: none;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .conference-card,
    .reservation-card,
    .table-container {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    body {
        background: white;
    }
}
