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

/* Dark Theme (default) */
:root,
[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #cccccc;
    --accent-color: #aaaaaa;
    --success-color: #ffffff;
    --danger-color: #ff4444;
    --dark-bg: #000000;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --border-color: #333333;
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #888888;
    --success-color: #000000;
    --danger-color: #ff4444;
    --dark-bg: #ffffff;
    --card-bg: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
}

[data-theme="light"] body {
    background: #ffffff;
}

[data-theme="light"] .logo-image,
[data-theme="light"] .logo-image-small {
    filter: invert(0) drop-shadow(0 5px 20px rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .search-reminder {
    background: #fff3cd;
    border-color: #ffc107;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Landing Page Styles */
.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.logo-section {
    margin-bottom: 50px;
    animation: fadeInDown 1s ease;
}

.logo {
    width: 150px;
    height: 150px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.logo-image {
    width: 200px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    filter: invert(1) drop-shadow(0 5px 20px rgba(255, 255, 255, 0.3));
}

.logo-image-small {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: invert(1) drop-shadow(0 5px 15px rgba(255, 255, 255, 0.2));
}

.logo-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.navigation-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.nav-button {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.nav-button:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-button .icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
}

.nav-button span {
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-button .desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.event-info {
    font-size: 1.1rem;
    color: var(--text-secondary);
    animation: fadeIn 1.5s ease;
}

/* Login Section & Forms */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    max-width: 400px;
    width: 100%;
}

.login-card h2 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2); /* Make slightly larger for easier clicking */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

/* Buttons - Standardized */
.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-success, .back-btn, .logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.2;
    height: 42px; /* Fixed height for consistency */
    white-space: nowrap;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: #cccccc;
    border-color: #cccccc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: #ff4444;
    color: #ffffff;
    border: 2px solid #ff4444;
}

.btn-danger:hover {
    background: #ff6666;
    border-color: #ff6666;
}

.btn-success {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

.btn-success:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.btn-warning {
    background: #ff9800;
    color: #000000;
    font-weight: 600;
    border: 2px solid #ff9800;
}

.btn-warning:hover {
    background: #ffb74d;
    border-color: #ffb74d;
    color: #000000;
}

.btn-info {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-info:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-warning {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-warning:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    height: 32px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    height: 54px;
}

.btn-icon {
    margin-right: 0; /* handled by gap */
}

/* Standardized Header */
.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 30px;
    padding: 8px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .header {
        padding: 6px 15px;
        gap: 10px;
    }
    
    .header-actions {
        flex-wrap: wrap;
    }
    
    .header-actions button {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto; /* Don't shrink */
    min-width: 0;
}

.header-title {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0; /* Allow text truncation */
    padding: 0 15px;
}

.header-title h1 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
    }
    
    .header-left {
        order: 1;
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .header-title {
        order: 2;
        flex: 1 1 100%;
        padding: 0;
    }
    
    .header-title h1 {
        font-size: 1.1rem;
    }
    
    .header-actions {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    justify-content: flex-end;
    white-space: nowrap;
}

/* Back button specific override to match new btn style */
.back-btn, .logout-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    height: 36px;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.back-btn:hover, .logout-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Admin Section */
.admin-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-section h2 {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-config {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-config input {
    padding: 10px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    width: 150px;
}

/* Tables Container */
.tables-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    scroll-behavior: smooth;
}

.tables-container::-webkit-scrollbar {
    width: 10px;
}

.tables-container::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 10px;
}

.tables-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.tables-container::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.table-card {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.table-card.drag-over {
    border-color: #ffffff;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.table-header h3 {
    color: var(--primary-color);
}

.table-capacity {
    background: var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.table-participants {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.table-participants::-webkit-scrollbar {
    width: 6px;
}

.table-participants::-webkit-scrollbar-track {
    background: transparent;
}

.table-participants::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.table-participants::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.participant-chip {
    background: var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    cursor: grab;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-chip:active {
    cursor: grabbing;
}

.participant-chip.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.participant-chip.vip {
    background: #2a2a2a;
    border: 2px solid #ffffff;
    font-weight: 600;
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-table {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-bar input {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* Participants Table */
.table-wrapper {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
}

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

.participants-table th {
    background: var(--dark-bg);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.participants-table tr:hover {
    background: var(--dark-bg);
}

.participants-table select {
    padding: 8px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
}

.vip-row {
    background: rgba(255, 107, 53, 0.1);
}

.badge-vip, .badge-success, .badge-pending {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-vip {
    background: #ffffff;
    color: #000000 !important;
    border: 1px solid #ffffff;
}

.badge-success {
    background: #ffffff;
    color: #000000 !important;
    border: 1px solid #ffffff;
}

.badge-pending {
    background: #333333;
    color: #999999;
    border: 1px solid #555555;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.modal-desc {
    color: var(--text-secondary);
    margin: 20px 0;
    text-align: center;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--dark-bg);
    padding: 15px;
    border-radius: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    border: 2px solid #ffffff;
}

.step p {
    margin: 0;
    color: var(--text-primary);
}

.config-status {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.config-status p {
    margin: 10px 0;
    color: var(--text-secondary);
}

.config-status strong {
    color: var(--text-primary);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

#qrcode {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.qr-instruction {
    color: var(--text-secondary);
    margin: 20px 0;
}

/* Check-in Page */
.checkin-container {
    max-width: 800px;
    margin: 0 auto;
}

.checkin-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.checkin-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkin-header h2 {
    margin-bottom: 10px;
}

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

.search-reminder {
    background: #ffff00;
    border: 3px solid #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.search-section {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-hint, .no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.result-item {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.result-item.vip {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(248, 150, 30, 0.2));
}

.result-item.checked-in {
    opacity: 0.6;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-table {
    color: var(--primary-color);
    font-weight: 600;
}

.badge-vip-small, .badge-checked, .badge-checked-small {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
}

.badge-vip-small {
    background: #ffffff;
    color: #000000 !important;
    border: 1px solid #ffffff;
}

.badge-checked {
    background: #ffffff;
    color: #000000 !important;
    border: 1px solid #ffffff;
}

.badge-checked-small {
    background: #ffffff;
    color: #000000 !important;
    border: 1px solid #ffffff;
    padding: 2px 6px;
}

.table-assignment {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-animation {
    font-size: 4rem;
    color: var(--success-color);
    animation: scaleIn 0.5s ease;
}

.table-info {
    margin: 30px 0;
}

.table-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.table-number .label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.table-number .number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.tablemates-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--dark-bg);
    border-radius: 12px;
}

.tablemates-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tablemates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tablemate-item {
    background: var(--card-bg);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tablemate-item.vip {
    border: 1px solid var(--primary-color);
}

.no-tablemates {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

.checkin-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.checkin-actions-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin: 25px 0 30px 0;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

.checkin-actions-top .btn-success {
    font-size: 1.2rem;
    padding: 15px 40px;
    font-weight: 600;
    width: 100%;
    max-width: 300px;
}

.checkin-actions-top .btn-secondary {
    width: 100%;
    max-width: 300px;
}

.checkin-success {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

.success-note {
    color: var(--success-color);
    margin: 20px 0;
    font-size: 1.1rem;
}

.screenshot-hint {
    color: var(--text-secondary);
    margin: 10px 0;
    font-size: 0.9rem;
}

.event-info-section {
    margin: 30px 0;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: left;
}

.event-info-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.event-content {
    color: var(--text-primary);
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 0.95rem;
}

.final-table-display {
    margin: 30px 0;
    padding: 30px;
    background: var(--dark-bg);
    border-radius: 15px;
    border: 3px solid var(--primary-color);
}

.table-number-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.table-number-large .label {
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.table-number-large .number {
    font-size: 5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.final-tablemates {
    margin: 30px 0;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 15px;
}

.final-tablemates h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.checkin-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Full Width Container */
.container-full {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Lucky Draw Page */
.lucky-draw-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px); /* Approximate height excluding header */
}

.draw-display {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 20px;
    flex: 1; /* Grow to fill space */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 600px;
    max-width: 100%;
    box-sizing: border-box;
}

.draw-slot {
    width: 100%;
    text-align: center;
    padding: 50px 40px;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    max-width: 100%;
}

.rolling-names {
    font-size: 5vw;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    overflow: hidden;
    padding: 40px;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.rolling-name {
    animation: slideUp 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.rolling-name .name {
    margin-bottom: 20px;
    font-size: clamp(3rem, 6vw, 8rem); /* Larger for LED screens */
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.rolling-name .company {
    font-size: clamp(1.5rem, 3vw, 4rem); /* Larger for LED screens */
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.winner-display {
    animation: scaleIn 0.5s ease;
    width: 100%;
    padding: 60px 40px;
    box-sizing: border-box;
    overflow: visible;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.winner-badge {
    position: relative;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    color: #000000;
    padding: 20px 80px;
    border-radius: 50px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 165, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: winnerPulse 2s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.winner-badge::before {
    content: '👑';
    font-size: clamp(2rem, 3.5vw, 4rem);
    line-height: 1;
    animation: crownBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    display: inline-block;
}

.winner-badge::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 165, 0, 0.3) 25%, 
        rgba(255, 99, 71, 0.3) 50%, 
        rgba(255, 165, 0, 0.3) 75%, 
        rgba(255, 215, 0, 0.3) 100%);
    border-radius: 50px;
    z-index: -1;
    animation: shimmer 3s linear infinite;
    opacity: 0.7;
}

@keyframes winnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 165, 0, 0.4),
            0 10px 30px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 165, 0, 0.6),
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
}

@keyframes crownBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.winner-name {
    font-size: clamp(2rem, 6vw, 8rem); /* Slightly reduced to prevent overflow */
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;
    display: block;
}

.winner-company {
    font-size: clamp(1.5rem, 3.5vw, 4rem); /* Slightly reduced to prevent overflow */
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;
    display: block;
}

.winner-table {
    font-size: clamp(1.2rem, 2.5vw, 3rem); /* Slightly reduced to prevent overflow */
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;
    display: block;
}

.draw-controls {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    flex-shrink: 0; /* Don't shrink */
}

.participants-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.draw-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.winners-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-height: 80vh;
    min-height: 500px;
    overflow-y: auto;
    display: none; /* Hide by default on big screen, maybe toggle? Or keep small */
}

/* Keep winners list for history but maybe smaller */
.winners-section.visible {
    display: block;
}

.winners-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 25px;
    text-align: center;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-winners {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.winner-card {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    animation: slideIn 0.3s ease;
}

.winner-number {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: bold;
    color: var(--primary-color);
    min-width: 80px;
}

.winner-details {
    flex: 1;
}

.winner-card-name {
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-bottom: 8px;
}

.winner-card-company {
    color: var(--text-secondary);
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin-bottom: 5px;
}

.winner-card-table {
    color: var(--accent-color);
    font-size: clamp(1rem, 1.8vw, 1.8rem);
}

.remove-winner-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo-section h1 {
        font-size: 2rem;
    }
    
    .navigation-buttons {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tables-container {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .draw-display {
        padding: 20px 15px;
    }
    
    .rolling-names {
        font-size: clamp(1.5rem, 6vw, 3rem);
        min-height: 150px;
    }
    
    .rolling-name .name {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    
    .rolling-name .company {
        font-size: clamp(0.9rem, 3vw, 1.5rem);
    }
    
    .winner-name {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    
    .winner-company {
        font-size: clamp(1rem, 4vw, 2rem);
    }
    
    .winner-table {
        font-size: clamp(0.9rem, 3vw, 1.5rem);
    }
}

/* QR Display Page */
.qr-display-page {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.qr-header {
    margin-bottom: 50px;
}

.logo-small {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.qr-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.qr-code-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.qr-code-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.instruction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.instruction-number {
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #ffffff;
}

.instruction-item p {
    color: var(--text-secondary);
    text-align: center;
}

.qr-url-display {
    margin: 30px 0;
    padding: 20px;
    background: var(--dark-bg);
    border-radius: 10px;
}

.qr-url-display p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.url-link {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    font-family: monospace;
}

.url-link:hover {
    text-decoration: underline;
}

.qr-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    .qr-display-page,
    .qr-display-page * {
        visibility: visible;
    }
    
    .qr-display-page {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .qr-actions,
    .qr-url-display {
        display: none !important;
    }
    
    .qr-code-container {
        box-shadow: none;
        border: 2px solid #000;
    }
}

/* ========================================
   Dark Theme - Light Background Text Fix
   Ensures dark text on any white/light bg
   ======================================== */

/* Primary buttons with white background in dark mode */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-success {
    color: #000000 !important;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-success:hover {
    color: #000000 !important;
}

/* Back button and logout button */
[data-theme="dark"] .back-btn,
[data-theme="dark"] .logout-btn {
    color: #000000 !important;
}

/* Step numbers */
[data-theme="dark"] .step-number,
[data-theme="dark"] .instruction-number {
    color: #000000 !important;
}

/* QR code container - ensure visibility */
.qr-code-container {
    background: white;
    color: #000000;
}

/* All white background badges */
[data-theme="dark"] .badge-vip,
[data-theme="dark"] .badge-success,
[data-theme="dark"] .badge-vip-small,
[data-theme="dark"] .badge-checked,
[data-theme="dark"] .badge-checked-small {
    color: #000000 !important;
}

/* Winner badge gradient background */
[data-theme="dark"] .winner-badge {
    color: white !important;
}

/* Form inputs in modals - ensure readable */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--dark-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Light theme specific overrides */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-success {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-success:hover {
    background: #333333;
    border-color: #333333;
}

[data-theme="light"] .back-btn,
[data-theme="light"] .logout-btn {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

[data-theme="light"] .back-btn:hover,
[data-theme="light"] .logout-btn:hover {
    background: #333333;
}

[data-theme="light"] .step-number,
[data-theme="light"] .instruction-number {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

[data-theme="light"] .badge-vip,
[data-theme="light"] .badge-success,
[data-theme="light"] .badge-vip-small,
[data-theme="light"] .badge-checked,
[data-theme="light"] .badge-checked-small {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

/* ========================================
   Event Cards & Grid (Consolidated)
   ======================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.event-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    min-height: 340px;
}

.event-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Public Event Card Variant */
.event-card.has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-card.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.event-card.has-background > * {
    position: relative;
    z-index: 2;
}

.event-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1;
    text-align: center;
}

.event-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.event-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.event-card.has-background .event-title {
    color: #ffffff;
}

.event-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.event-card.has-background .event-tagline {
    color: rgba(255, 255, 255, 0.8);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-card.has-background .event-details {
    color: rgba(255, 255, 255, 0.8);
}

/* Admin Event Card Variant */
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.event-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.event-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ffffff;
    color: #000000;
}

.event-badge.inactive {
    background: #333333;
    color: #999999;
}

.event-card-actions-top {
    position: absolute;
    top: -16px;
    right: -16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.toggle-visibility-btn {
    background: var(--primary-color);
    border: 3px solid var(--card-bg);
    color: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.toggle-visibility-btn.hidden {
    background: var(--text-secondary);
    opacity: 0.6;
}

.toggle-visibility-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.toggle-visibility-btn.hidden:hover {
    background: var(--primary-color);
    opacity: 1;
}

.toggle-visibility-btn:active {
    transform: scale(0.95);
}

.delete-event-btn {
    position: relative;
    top: 0;
    right: 0;
    background: var(--danger-color);
    border: 3px solid var(--card-bg);
    color: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

.delete-event-btn:hover {
    background: #ff6666;
    border-color: #ff6666;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
}

.delete-event-btn:active {
    transform: scale(0.95);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}

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

.event-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.event-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Shared Event Actions */
.event-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.event-btn, .btn-manage, .btn-view {
    flex: 1 1 auto;
    min-width: 100px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    white-space: nowrap;
}

.btn-primary-action, .btn-manage {
    background: #ffffff;
    color: #000000 !important;
    border: 2px solid #ffffff;
}

.btn-primary-action:hover, .btn-manage:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.btn-secondary-action, .btn-view {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary-action:hover, .btn-view:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.event-card.has-background .btn-secondary-action {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Create Event Card (Admin) */
.create-event-card {
    background: var(--dark-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 340px;
}

.create-event-card:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.create-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.create-text {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Empty States & Loading */
.empty-state, .loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        min-height: auto;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .event-actions {
        flex-wrap: wrap;
    }
    
    .event-btn {
        min-width: calc(50% - 5px);
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .event-btn {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* ========================================
   Landing Page Specifics
   ======================================== */

.event-selector {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.selector-header {
    text-align: center;
    margin-bottom: 40px;
}

.selector-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.selector-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.header-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}


/* ========================================
   Report Page Specifics
   ======================================== */

.report-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-percentage {
    font-size: 0.9rem;
    color: var(--success-color);
    margin-top: 5px;
}

.chart-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.timeline-chart {
    height: 300px;
    position: relative;
    margin-top: 20px;
}

.timeline-bar {
    display: flex;
    align-items: flex-end;
    height: 250px;
    border-left: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 10px;
    gap: 10px;
}

.time-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 4px 4px 0 0;
    min-width: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.time-bar:hover {
    opacity: 0.8;
}

.time-bar .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    display: none;
    margin-bottom: 5px;
    z-index: 10;
}

.time-bar:hover .tooltip {
    display: block;
}

.time-labels {
    display: flex;
    gap: 10px;
    padding: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.time-label {
    flex: 1;
    text-align: center;
    min-width: 30px;
}

.filter-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls input,
.filter-controls select {
    padding: 8px 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.export-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.check-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.check-status.checked {
    background: var(--success-color);
    color: white;
}

.check-status.not-checked {
    background: var(--border-color);
    color: var(--text-secondary);
}

.peak-hours {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
}

.peak-hours h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.peak-hours p {
    color: var(--text-secondary);
    margin: 5px 0;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.refresh-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    transform: scale(1.1);
}

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

.refresh-btn.loading {
    animation: rotate 1s linear infinite;
}

/* ========================================
   Light Theme Specific Fixes
   ======================================== */

[data-theme="light"] .participant-chip {
    background: #f5f5f5;
    color: #000000;
    border: 1px solid #e0e0e0;
}

[data-theme="light"] .participant-chip.vip {
    background: #FFD700; /* Gold for VIP in light mode */
    color: #000000 !important;
    border: 1px solid #DAA520;
    font-weight: 600;
}

[data-theme="light"] .table-card {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="light"] .table-header h3 {
    color: #000000;
}

[data-theme="light"] .table-capacity {
    background: #f0f0f0;
    color: #666666;
}
