/* events/static/events/css/style.css */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

[data-theme="dark"] {
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

/* Custom pricing info styles that respect theme */
.pricing-info {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Ensure table text is visible in both themes */
.pricing-info table {
    color: var(--text-color) !important;
}

.pricing-info .table-borderless td {
    color: var(--text-color) !important;
}

/* Card styling that works with both themes */
.themed-card {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.themed-card .card-body {
    color: var(--text-color);
}

.themed-card .text-muted {
    color: var(--text-muted) !important;
}

/* Ensure all text in cards is visible */
.card {
    background-color: var(--background-color);
    color: var(--text-color);
}

.card-body {
    color: var(--text-color);
}

/* List group theming */
.list-group-item {
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.theme-toggle, .language-select {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.theme-toggle {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--border-color);
}

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

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--background-color);
            color: var(--text-color);
            line-height: 1.6;
            transition: all 0.3s ease;
        }

        .navbar {
            background: var(--surface-color);
            border-bottom: 1px solid var(--border-color);
            padding: 1rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
            text-decoration: none;
            white-space: nowrap;
        }

        .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            justify-content: flex-end;
        }

        .nav-link {
            color: var(--text-color);
            text-decoration: none;
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            transition: all 0.2s;
            white-space: nowrap;
            font-size: 0.9rem;
        }

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

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

        .card {
            background: var(--surface-color);
            border: 1px solid var(--border-color);
            border-radius: 0.75rem;
            padding: 1.25rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.25rem;
            border: none;
            border-radius: 0.5rem;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.875rem;
            white-space: nowrap;
        }

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

        .btn-primary:hover {
            background: var(--primary-dark);
        }

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

        .form-control {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            background: var(--background-color);
            color: var(--text-color);
            transition: border-color 0.2s;
            font-size: 0.9rem;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            background: var(--surface-color);
            font-size: 0.875rem;
            color: var(--text-color);
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            overflow: hidden ;
        }

        .table th,
        .table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .table th {
            background: var(--surface-color);
            font-weight: 600;
            color: var(--text-color);
        }

        .search-bar {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .theme-toggle, .language-select {
            background: none;
            border: 1px solid var(--border-color);
            color: var(--text-color);
            padding: 0.5rem;
            border-radius: 0.375rem;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .alert {
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .alert-success {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        .tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .tab {
            padding: 0.75rem 1rem;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            white-space: nowrap;
            font-size: 0.9rem;
        }

        .tab.active {
            border-bottom-color: var(--primary-color);
            color: var(--primary-color);
        }

/* General Styles */
.event-card {
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.event-card:hover {
    transform: translateY(-5px);
}

/* Scanner Styles */
.scanner-container { 
    position: relative; 
    max-width: 500px; 
    margin: 0 auto; 
}

#qr-video {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid #28a745;
    border-radius: 8px;
    pointer-events: none;
}

/* Attendee Info Styles */
.attendee-info {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.checkin-btn {
    font-size: 1.1rem;
    padding: 10px 20px;
}

.status-badge {
    font-size: 0.9rem;
}

/* Form Styles */
.registration-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Workshop Styles */
.workshop-item {
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.workshop-item.checked-in {
    border-left-color: #28a745;
    background-color: #f8fff8;
}

        /* Mobile-first responsive design */
        @media (max-width: 768px) {
            .container {
                padding: 0.5rem;
            }
            
            .navbar {
                padding: 0.75rem;
                gap: 0.5rem;
            }
            
            .nav-links {
                gap: 0.5rem;
                justify-content: center;
                width: 100%;
                order: 3;
                margin-top: 0.5rem;
            }
            
            .navbar-brand {
                font-size: 1.25rem;
            }
            
            .card {
                padding: 1rem;
                margin-bottom: 1rem;
            }
            
            .btn {
                padding: 0.625rem 1rem;
                font-size: 0.8rem;
            }
            
            .table {
                font-size: 0.8rem;
            }
            
            .table th,
            .table td {
                padding: 0.5rem 0.25rem;
            }
            
            .search-bar {
                gap: 0.5rem;
            }
            
            .form-control {
                padding: 0.625rem;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .navbar {
                flex-direction: column;
                align-items: stretch;
            }
            
            .nav-links {
                order: 2;
                margin-top: 0;
                justify-content: space-between;
            }
            
            .navbar-brand {
                order: 1;
                text-align: center;
                margin-bottom: 0.5rem;
            }
            
            .card {
                padding: 0.75rem;
                border-radius: 0.5rem;
            }
            
            .btn {
                padding: 0.5rem 0.75rem;
                font-size: 0.75rem;
            }
            
            .table {
                font-size: 0.75rem;
            }
            
            .table-responsive {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }

        /* Utility classes for responsive grids */
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        
        .grid-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1.5rem;
        }
        
        .flex {
            display: flex;
        }
        
        .flex-wrap {
            flex-wrap: wrap;
        }
        
        .flex-column {
            flex-direction: column;
        }
        
        .justify-between {
            justify-content: space-between;
        }
        
        .align-center {
            align-items: center;
        }
        
        .gap-1 { gap: 1rem; }
        .gap-2 { gap: 2rem; }

        /* Responsive grid adjustments */
        @media (max-width: 1024px) {
            .grid-3 {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .grid-2,
            .grid-3 {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }