/* WodSniper - Modern Dark Theme CSS */
/* Redesign 2025 - Athletic UI with Glassmorphism */

/* ==================== */
/* CSS Custom Properties */
/* ==================== */
:root {
    /* Typography - Athletic font pairing */
    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Background colors - Dark theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-elevated: #222230;

    /* Accent colors */
    --primary: #e76f51;
    --primary-light: #f4a261;
    --primary-dark: #d35836;
    --primary-glow: rgba(231, 111, 81, 0.4);

    --secondary: #2a9d8f;
    --secondary-light: #40b3a4;
    --secondary-glow: rgba(42, 157, 143, 0.4);

    --accent: #8b5cf6;
    --accent-light: #a78bfa;

    /* Status colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.15);

    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --text-muted: #a1a1aa;
    --text-inverse: #0a0a0f;

    /* Borders & surfaces */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(231, 111, 81, 0.5);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
    --gradient-secondary: linear-gradient(135deg, #2a9d8f 0%, #40b3a4 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);

    /* 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: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background with gradient + noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(231, 111, 81, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(42, 157, 143, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}


a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== */
/* Typography           */
/* ==================== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
}

/* ==================== */
/* Container            */
/* ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==================== */
/* Navbar - Glassmorphism */
/* ==================== */
.navbar {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
    color: var(--text-primary);
}

.logo-img {
    width: 36px;
    height: 36px;
}

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

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

/* Buttons in navbar - explicit white text */
.nav-links .btn {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.nav-links .btn-primary {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: var(--gradient-primary);
}

.nav-links .btn-outline {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.admin-link {
    color: var(--warning) !important;
    font-weight: 600;
}

/* Language selector */
.language-selector {
    margin-left: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 1px solid var(--border);
}

.language-selector a {
    font-size: 1.25rem;
    padding: var(--space-xs) var(--space-sm);
    transition: transform var(--transition-fast);
    display: inline-block;
}

.language-selector a:hover {
    transform: scale(1.15);
    background: transparent;
}

/* ==================== */
/* Buttons              */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    -webkit-text-fill-color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--primary-glow);
    color: white;
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(1);
    filter: brightness(0.95);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 2px 8px var(--secondary-glow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--secondary-glow);
    filter: brightness(1.1);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.btn-sm.btn-primary {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: var(--gradient-primary);
}

.btn-sm.btn-danger {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: var(--danger);
}

.btn-sm.btn-outline {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==================== */
/* Cards - Glassmorphism */
/* ==================== */
.card {
    background: rgba(18, 18, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: rgba(231, 111, 81, 0.3);
    box-shadow: var(--shadow-md), 0 0 30px rgba(231, 111, 81, 0.08);
    transform: translateY(-2px);
}

.card h2 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
}

/* ==================== */
/* Main Content         */
/* ==================== */
.main-content {
    flex: 1;
    padding: var(--space-xl) 0;
}

/* ==================== */
/* Hero Section         */
/* ==================== */
.hero {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 3s ease-in-out infinite, glow 4s ease-in-out infinite, fadeInScale 0.8s ease-out;
}

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

/* Entry animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px var(--primary-glow));
    }
    50% {
        filter: drop-shadow(0 0 50px var(--primary-glow)) drop-shadow(0 0 80px rgba(231, 111, 81, 0.3));
    }
}

.hero h1 {
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em;
    text-shadow: 0 0 60px var(--primary-glow);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* CTA Buttons */
.cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.feature {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out both;
}

.feature:nth-child(1) { animation-delay: 0.8s; }
.feature:nth-child(2) { animation-delay: 0.95s; }
.feature:nth-child(3) { animation-delay: 1.1s; }

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(231, 111, 81, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
    transition: transform var(--transition-normal);
}

.feature:hover .feature-icon {
    transform: scale(1.15);
}

.feature h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How it works section */
.how-it-works {
    margin-top: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.8s ease-out 1.3s both;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 1.75rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
}

.step {
    text-align: center;
    animation: fadeInUp 0.6s ease-out both;
}

.step:nth-child(1) { animation-delay: 1.5s; }
.step:nth-child(2) { animation-delay: 1.65s; }
.step:nth-child(3) { animation-delay: 1.8s; }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all var(--transition-normal);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px var(--primary-glow);
}

.step h4 {
    margin-bottom: var(--space-sm);
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== */
/* Auth Pages           */
/* ==================== */
.auth-container {
    max-width: 440px;
    margin: var(--space-xl) auto;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: fadeInScale 0.5s ease-out;
}

.auth-card h2 {
    margin-bottom: var(--space-md);
    text-align: center;
    font-size: 1.75rem;
}

.auth-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.forgot-password-link {
    text-align: center;
    margin-top: var(--space-md);
}

.forgot-password-link a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.forgot-password-link a:hover {
    color: var(--primary);
}

.resend-verification {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.resend-verification .text-muted {
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.resend-form {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

.resend-form .form-control {
    max-width: 200px;
    font-size: 0.9rem;
}

.resend-form .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ==================== */
/* Forms                */
/* ==================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-elevated);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--text-primary);
    background: var(--bg-elevated);
    outline: none;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    display: block;
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

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

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ==================== */
/* Alerts               */
/* ==================== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-error,
.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ==================== */
/* Security Notice      */
/* ==================== */
.security-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    text-align: left;
}

.security-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.security-notice p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==================== */
/* Dashboard            */
/* ==================== */
.dashboard {
    padding: var(--space-md) 0;
}

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

.dashboard-header h1 {
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ==================== */
/* Tables               */
/* ==================== */
.bookings-table-wrapper {
    overflow-x: auto;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.bookings-table th,
.bookings-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.bookings-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bookings-table td {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

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

.bookings-table tbody tr:hover {
    background: var(--glass-bg-hover);
}

.bookings-table tr.inactive {
    opacity: 0.5;
}

.bookings-table tr.inactive td {
    color: var(--text-muted);
}

.bookings-table tr.inactive .day-badge,
.bookings-table tr.inactive .status-badge {
    filter: grayscale(0.6);
}

.bookings-table tr.inactive .btn {
    opacity: 1;
}

.bookings-table tr.inactive:hover {
    opacity: 0.7;
}

.bookings-table .actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.bookings-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
}

.bookings-table .inline-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.bookings-table td.actions .btn.btn-sm,
.bookings-table .actions .btn.btn-sm {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

.bookings-table td.actions .btn.btn-sm.btn-primary,
.bookings-table .actions .btn.btn-sm.btn-primary {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.4);
}

.bookings-table td.actions .btn.btn-sm.btn-outline,
.bookings-table .actions .btn.btn-sm.btn-outline {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.bookings-table td.actions .btn.btn-sm.btn-outline:hover,
.bookings-table .actions .btn.btn-sm.btn-outline:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: #e76f51 !important;
}

.bookings-table td.actions .btn.btn-sm.btn-danger,
.bookings-table .actions .btn.btn-sm.btn-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.inline-form {
    display: inline-flex;
    vertical-align: middle;
}

/* ==================== */
/* Badges               */
/* ==================== */
.day-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(231, 111, 81, 0.15);
    color: #ffffff;
    border: 1px solid rgba(231, 111, 81, 0.3);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pending {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.status-success {
    background: var(--success-bg);
    color: #34d399;
}

.status-failed {
    background: var(--danger-bg);
    color: #f87171;
}

.status-waiting {
    background: var(--warning-bg);
    color: #fbbf24;
}

.status-active {
    background: var(--success-bg);
    color: #34d399;
}

.status-paused {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

/* ==================== */
/* Info Grid            */
/* ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.info-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.info-item:hover {
    border-color: var(--border-light);
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==================== */
/* Connection Status    */
/* ==================== */
.current-connection {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border);
}

.connection-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.connection-status.connected {
    background: var(--success);
    box-shadow: 0 0 10px var(--secondary-glow);
}

/* ==================== */
/* Toggle Switch        */
/* ==================== */
.notification-settings {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.notification-toggle-form {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: var(--transition-normal);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-secondary);
    border-color: var(--secondary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== */
/* Logs List            */
/* ==================== */
.logs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.log-item {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border-left: 4px solid var(--border);
    transition: all var(--transition-fast);
}

.log-item:hover {
    background: var(--bg-elevated);
}

.log-item.log-success {
    border-left-color: var(--success);
}

.log-item.log-failed {
    border-left-color: var(--danger);
}

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

.log-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.log-message {
    color: var(--text-secondary);
}

.log-target {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* ==================== */
/* Empty State          */
/* ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: var(--space-lg);
}

/* ==================== */
/* Error Pages          */
/* ==================== */
.error-page {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page p {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    color: var(--text-muted);
}

/* ==================== */
/* Footer               */
/* ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-contact {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin: var(--space-sm) 0;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

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

/* ==================== */
/* Legal Pages           */
/* ==================== */
.legal-container {
    max-width: 800px;
    margin: var(--space-xl) auto;
}

.legal-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.legal-card h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    text-transform: none;
    font-family: var(--font-body);
    font-weight: 700;
}

.legal-card h2 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--primary);
    text-transform: none;
    font-family: var(--font-body);
    font-weight: 600;
}

.legal-card p,
.legal-card li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.legal-card ul {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-card li {
    margin-bottom: var(--space-sm);
}

.legal-card a {
    color: var(--primary);
}

.legal-card .legal-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-xl);
}

.legal-card strong {
    color: var(--text-primary);
}

/* ==================== */
/* Cookie Banner         */
/* ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cookie-banner-content a {
    color: var(--primary);
}

.cookie-banner-close {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.cookie-banner-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ==================== */
/* Mobile Menu          */
/* ==================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* ==================== */
/* Text Utilities       */
/* ==================== */
.text-muted { color: var(--text-muted); }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-primary { color: var(--primary) !important; }

/* ==================== */
/* Selection Summary    */
/* ==================== */
.selection-summary {
    background: var(--glass-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-normal);
}

.selection-summary.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.selection-summary.special-day {
    border-color: var(--warning);
    background: var(--warning-bg);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.selection-summary-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.selection-summary-icon {
    font-size: 1.25rem;
}

.selection-summary-title {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.selection-summary-badge {
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
}

.selection-summary-badge.typical {
    background: var(--gradient-primary);
    color: white;
}

.selection-summary-badge.special {
    background: var(--warning);
    color: var(--text-inverse);
}

.selection-summary-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

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

.selection-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 60px;
}

.selection-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.selection-value.empty {
    color: var(--text-muted);
    font-weight: 400;
}

.selection-value.filled {
    color: var(--primary);
}

/* ==================== */
/* Schedule Toggle      */
/* ==================== */
.schedule-toggle {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.schedule-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.schedule-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.schedule-btn.active {
    border-color: var(--primary);
    background: rgba(231, 111, 81, 0.1);
    color: var(--text-primary);
}

.schedule-btn-icon {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.schedule-btn-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.schedule-warning {
    color: var(--warning) !important;
    font-weight: 500;
}

/* ==================== */
/* Admin Panel          */
/* ==================== */
.admin-page {
    padding: var(--space-md) 0;
}

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

.admin-nav {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.stat-card .stat-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.admin-table tbody tr:hover {
    background: var(--glass-bg-hover);
}

.admin-table a {
    color: var(--primary);
}

.badge-admin {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: var(--space-sm);
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.activity-item .activity-details {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.activity-item .activity-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== */
/* Responsive - Tablet  */
/* ==================== */
@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* Responsive - Mobile  */
/* ==================== */
@media (max-width: 768px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
    }

    .navbar {
        z-index: 1002;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem var(--space-lg) var(--space-xl);
        gap: 0;
        transition: right var(--transition-normal);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: var(--space-md);
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        text-align: left;
    }

    .nav-links .btn {
        margin-top: var(--space-md);
        justify-content: center;
    }

    .language-selector {
        margin: 0;
        padding: var(--space-md) 0;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    /* Hero */
    .hero {
        padding: var(--space-xl) 0;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta {
        flex-direction: column;
        padding: 0;
    }

    .cta .btn {
        width: 100%;
    }

    /* Features */
    .features {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature {
        padding: var(--space-lg);
    }

    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .how-it-works {
        padding: var(--space-xl) var(--space-md);
    }

    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .header-actions .btn {
        flex: 1;
        min-width: calc(50% - var(--space-xs));
    }

    /* Cards */
    .card {
        padding: var(--space-lg);
    }

    .card h2 {
        font-size: 1.1rem;
    }

    /* Info grid */
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .info-item {
        padding: var(--space-md);
    }

    /* Tables - Card layout */
    .bookings-table {
        display: block;
    }

    .bookings-table thead {
        display: none;
    }

    .bookings-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .bookings-table tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-tertiary);
        border-radius: var(--radius-md);
        padding: var(--space-md);
        border: 1px solid var(--border);
    }

    .bookings-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--border);
    }

    .bookings-table td:last-child {
        border-bottom: none;
        padding-top: var(--space-md);
    }

    .bookings-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .bookings-table .actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: stretch;
        width: 100%;
    }

    .bookings-table .actions .btn {
        flex: 1;
        text-align: center;
    }

    /* Notifications */
    .notification-settings {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    /* Auth */
    .auth-container {
        margin: var(--space-md) auto;
        padding: 0 var(--space-sm);
    }

    .auth-card {
        padding: var(--space-lg);
    }

    /* Container */
    .container {
        padding: 0 var(--space-md);
    }

    .main-content {
        padding: var(--space-md) 0;
    }

    /* Footer */
    .footer {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: var(--space-md);
    }

    /* Admin */
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== */
/* Small Mobile         */
/* ==================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .header-actions .btn {
        min-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .bookings-table .actions .btn {
        flex: none;
        width: 100%;
    }

    .schedule-toggle {
        flex-direction: column;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .legal-card {
        padding: var(--space-lg);
    }
}
