/* Test scanner button */
.test-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #ddd;
    text-align: center;
}

.test-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}/* USB Scanner styles */
.scanner-input-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scanner-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    background-color: #f8f9fa;
    text-align: center;
    transition: all 0.3s;
}

.scanner-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    background-color: white;
}

.scanner-status {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scanner-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    background-color: #e2e6ea;
    color: #495057;
    transition: all 0.3s;
}

.scanner-indicator.active {
    background-color: var(--primary-color);
    color: white;
    animation: pulse 1.5s infinite;
}

.scanner-indicator.success {
    background-color: var(--success-color);
    color: white;
}

.scanner-indicator.error {
    background-color: var(--error-color);
    color: white;
}

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

.scanner-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
}

.scanner-instructions h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.scanner-instructions ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.scanner-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.scanner-instructions p {
    margin-top: 1rem;
    font-size: 0.9rem;
}/* Export data page styles */
.export-summary {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.export-options {
    margin: 2rem 0;
}

.export-option-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.export-option-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.export-option-content {
    flex: 1;
}

.export-option-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
}

.export-option-content p {
    margin: 0;
    color: var(--gray-color);
}

.export-option-action {
    margin-left: 1.5rem;
}/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.2s;
}

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

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

.pagination-ellipsis {
    margin: 0 0.5rem;
    color: var(--gray-color);
}

.pagination-pages {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
}

.pagination-info {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.results-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.download-options {
    margin-top: 1.5rem;
    text-align: center;
}

.download-note {
    margin-top: 0.5rem;
    color: var(--gray-color);
    font-style: italic;
}/* Form styling for manual entry */
.attendee-entry {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background-color: #f8f9fa;
    animation: slideDown 0.3s ease-out;
}

.attendee-entry:nth-child(even) {
    background-color: #f0f4f8;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #777;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #e74c3c;
    color: white;
}

.btn-icon:disabled {
    background-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}#fullscreen-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fullscreen-message {
    padding: 2rem 3rem;
    border-radius: var(--radius);
    max-width: 90%;
    width: 500px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: messageZoomIn 0.5s;
}

.success-message {
    background-color: var(--success-color);
    color: white;
    border-left: 8px solid #1b9448;
}

.warning-message {
    background-color: var(--warning-color);
    color: white;
    border-left: 8px solid #b17807;
}

.error-message {
    background-color: var(--error-color);
    color: white;
    border-left: 8px solid #a82315;
}

.message-content {
    margin-bottom: 1rem;
}

.message-timer {
    font-size: 2rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    border-radius: 50%;
    margin: 0 auto;
}

@keyframes messageZoomIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

#debug-indicator {
    position: fixed;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: monospace;
    font-size: 12px;
    z-index: 999;
    border-radius: 4px;
}/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --danger-color: #e74c3c;
    --danger-dark: #c0392b;
    --warning-color: #f39c12;
    --warning-dark: #e67e22;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.2);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5ea;
}

/* Card components */
.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Buttons */
.btn, button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover, button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn:active, button:active {
    transform: translateY(0);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

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

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

button:disabled {
    background-color: var(--gray-color);
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
}

/* Alerts and status messages */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.2);
    border-left: 4px solid var(--warning-color);
}

.status-message-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.status-message-container.visible {
    opacity: 1;
    visibility: visible;
}

.status-message {
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    max-width: 90%;
    width: 400px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    animation: bounceIn 0.5s;
}

.status-success {
    background-color: var(--success-color);
    color: var(--white);
    border-left: 6px solid #1b9448;
}

.status-error {
    background-color: var(--error-color);
    color: var(--white);
    border-left: 6px solid #a82315;
}

.status-warning {
    background-color: var(--warning-color);
    color: var(--white);
    border-left: 6px solid #b17807;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.selected-attendee-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #ddd;
    background-color: #f8f9fa;
}

.selected-attendee-info {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

.selected-attendee-info p {
    margin: 0.5rem 0;
}

.btn-primary {
    background-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* QR Scanner styles */
#qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#qr-reader img {
    border-radius: var(--radius);
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--dark-color);
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: none;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Autocomplete styles */
.autocomplete-items {
    position: absolute;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 99;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.no-results, .error {
    padding: 0.75rem 1rem;
    color: var(--gray-color);
    font-style: italic;
}

.error {
    color: var(--danger-color);
}

/* QR code display */
.qr-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid #ddd;
}

.qr-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.qr-item img {
    max-width: 150px;
    margin-bottom: 0.5rem;
}

.qr-info {
    margin-top: 0.5rem;
}

/* Statistics display */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #ddd;
}

tbody tr:last-child {
    border-bottom: none;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.checked-in {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--secondary-dark);
}

.not-checked-in {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-dark);
}

/* Info box */
.info-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
}

pre {
    background-color: #f1f2f3;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .card-container, .stats-container {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header .btn-back {
        margin-top: 1rem;
    }
    
    .qr-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    #qr-reader {
        width: 100%;
    }
}

/* ==========================================================================
   v2 — multi-event additions
   ========================================================================== */

input[type="password"],
input[type="date"],
input[type="search"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}
input[type="password"]:focus,
input[type="date"]:focus { border-color: var(--primary-color); outline: none; }

.muted { color: #6b7a89; }
.help { font-size: 0.9rem; color: #6b7a89; margin-top: 0.4rem; margin-bottom: 0; }
.center { text-align: center; }
.empty-note { padding: 1.5rem 0; color: #6b7a89; }
.alert ul { margin: 0.5rem 0 0 1.2rem; }

/* Top bar */
.topbar { background: var(--dark-color); color: #fff; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0.7rem 20px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar-brand { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: 0.01em; }
.topbar-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar-nav a { color: #d5dde5; text-decoration: none; font-size: 0.95rem; }
.topbar-nav a:hover { color: #fff; }
.topbar-logout { opacity: 0.75; }

/* Buttons */
.btn.btn-secondary { background-color: #4a5866; }
.btn.btn-secondary:hover { background-color: #3b4753; }
.btn-outline { background: transparent; color: var(--primary-dark); border: 1px solid #c6d4e1; }
.btn-outline:hover { background: rgba(52, 152, 219, 0.08); color: var(--primary-dark); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 0.6rem; }
.btn-link { background: none; color: var(--primary-dark); padding: 0.25rem 0; font-size: 0.9rem; text-decoration: underline; }
.btn-link:hover { background: none; transform: none; color: var(--dark-color); }
.btn-link-danger { color: var(--danger-dark); }

/* Event workspace header */
.event-bar { margin-bottom: 0.75rem; }
.event-bar-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7a89; font-weight: 600; }
.event-bar-title h1 { margin: 0.1rem 0 0.2rem; font-size: 1.9rem; }
.event-bar-meta { color: #55626f; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.event-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 1px solid #dfe5eb; margin-bottom: 1.5rem; }
.event-tabs a { padding: 0.6rem 1rem; text-decoration: none; color: #4a5866; border-bottom: 3px solid transparent; font-weight: 500; }
.event-tabs a:hover { color: var(--primary-dark); }
.event-tabs a.active { color: var(--primary-dark); border-bottom-color: var(--primary-color); }

.event-status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 600; }
.event-status-open { background: #d5f5e3; color: #1e8449; }
.event-status-closed { background: #fdebd0; color: #9a5b0c; }
.event-status-archived { background: #e5e8eb; color: #5d6d7e; }

/* Dashboard */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.event-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem; border-top: 4px solid var(--primary-color); display: flex; flex-direction: column; }
.event-card-closed { border-top-color: var(--warning-color); }
.event-card-archived { border-top-color: var(--gray-color); }
.event-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.event-card-head h2 { font-size: 1.3rem; margin: 0; }
.event-card-head h2 a { color: var(--dark-color); text-decoration: none; }
.event-card-head h2 a:hover { color: var(--primary-dark); }
.event-card-meta { color: #6b7a89; font-size: 0.9rem; margin: 0.25rem 0 1rem; }
.event-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.6rem; }
.event-card-stats .num { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.event-card-stats .lbl { font-size: 0.8rem; color: #6b7a89; }
.progress { height: 8px; background: #ecf0f3; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--secondary-dark); transition: width 0.6s; }
.event-card-last { font-size: 0.85rem; color: #6b7a89; margin: 0.5rem 0 1rem; }
.event-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.event-card-actions .btn { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.dashboard-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; font-size: 0.95rem; }
.empty-state { text-align: center; padding: 3rem 2rem; }

/* Settings / danger zone */
.danger-zone { border: 1px solid #f5c6cb; }
.danger-zone h2 { color: var(--danger-dark); }
.danger-form { border-top: 1px solid #f1d4d7; padding-top: 1rem; margin-top: 1rem; }
.danger-form h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.danger-form .form-row { align-items: flex-start; }

/* Installer */
.install-steps { list-style: none; margin: 1rem 0 1.5rem; }
.install-steps li { padding: 0.5rem 0.75rem; border-left: 4px solid var(--secondary-dark); background: #f4fbf7; margin-bottom: 0.4rem; }
.install-steps li.install-warn { border-color: var(--warning-color); background: #fef8ec; }
.install-steps li.install-error { border-color: var(--danger-color); background: #fdf0ef; }
.install-steps li.install-done { font-weight: 600; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 1.6rem; }

/* Attendee list */
.toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar-search { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1 1 420px; }
.toolbar-search input[type="text"] { flex: 1 1 200px; width: auto; }
.toolbar-search select { width: auto; }
.toolbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.attendee-table { width: 100%; border-collapse: collapse; }
.attendee-table td { vertical-align: middle; }
.qr-cell img { display: block; width: 56px; height: 56px; image-rendering: pixelated; border: 1px solid #eee; }
.row-actions { white-space: nowrap; text-align: right; }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.error-list { max-height: 240px; overflow: auto; }

/* Event pickers */
.picker-list { display: grid; gap: 0.75rem; margin: 1rem 0; }
.picker-item { display: block; padding: 1.1rem 1.25rem; border: 1px solid #d6e0ea; border-radius: var(--radius); text-decoration: none; color: var(--dark-color); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.picker-item:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
.picker-name { display: block; font-size: 1.2rem; font-weight: 600; }
.picker-meta { display: block; color: #6b7a89; font-size: 0.9rem; }
.picker-item-all { border-style: dashed; }

/* Check-in station */
.station-bar { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.station-counter { flex: 1 1 260px; }
.station-count { font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.station-count-of { color: #6b7a89; margin-left: 0.25rem; }
.station-counter .progress { margin-top: 0.4rem; max-width: 420px; }
.station-settings { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.station-settings label { margin: 0; font-size: 0.9rem; color: #55626f; }
.station-settings input[type="text"] { width: 160px; padding: 0.5rem 0.75rem; }
.sound-toggle { display: flex; align-items: center; gap: 0.3rem; }
#qr-reader { max-width: 520px; margin: 0 auto; }
#camera-message.alert { margin-top: 1rem; }

#fullscreen-message-overlay.visible { display: flex; cursor: pointer; }
.fullscreen-message { width: 640px; padding: 2.5rem 2rem; animation-duration: 0.25s; }
.fullscreen-message .message-content { font-size: 2.2rem; line-height: 1.2; margin-bottom: 0.6rem; word-break: break-word; }
.message-detail { font-size: 1.25rem; font-weight: 500; opacity: 0.95; }
.message-hint { margin-top: 1.4rem; font-size: 0.85rem; font-weight: 400; opacity: 0.7; }
.success-message { background-color: #1e8449; border-left-color: #145a32; }
.warning-message { background-color: #b9770e; border-left-color: #7e5109; }
.error-message { background-color: #c0392b; border-left-color: #922b21; }
.wrong-message { background-color: #6c3483; color: #fff; border-left: 8px solid #4a235a; }
.processing-message { background-color: #34495e; color: #fff; }

.search-results-list { display: grid; gap: 0.4rem; }
.result-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; text-align: left; background: #f8fafc; color: var(--dark-color); border: 1px solid #dfe6ed; padding: 0.85rem 1rem; }
.result-item:hover { background: #eef5fb; transform: none; }
.result-item span { color: #6b7a89; font-size: 0.9rem; }
.result-item.is-in { opacity: 0.75; }
.result-item.is-in span { color: var(--secondary-dark); }
.selected-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; }

.recent-card { padding: 1.25rem 1.5rem; }
.recent-card h3 { font-size: 1rem; color: #55626f; }
.recent-list { list-style: none; }
.recent-list li { display: flex; gap: 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid #f0f2f4; font-size: 0.95rem; }
.recent-list li:last-child { border-bottom: none; }
.recent-time { color: #8796a5; min-width: 4.5rem; font-variant-numeric: tabular-nums; }
.recent-success span:last-child { color: #1e8449; }
.recent-warning span:last-child { color: #9a5b0c; }
.recent-wrong span:last-child { color: #6c3483; }
.recent-error span:last-child { color: #c0392b; }

.app-footer { text-align: center; color: #9aa7b3; font-size: 0.8rem; padding: 1rem 0 2rem; }

/* Live display screen */
body.display-page { background: #14181c; color: #fff; overflow: hidden; height: 100vh; }
.display-page .display-top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2.5rem; gap: 2rem; }
.display-page .display-event { font-size: 1.6rem; font-weight: 600; opacity: 0.85; }
.display-page .display-counter { font-size: 2.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.display-page .display-counter small { font-size: 1rem; font-weight: 400; opacity: 0.6; }
.display-page .display-container { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; position: relative; }
.display-page .placeholder-text { font-size: 3rem; color: #4d5863; animation: pulse 2.5s infinite; }
.display-page .status-content { position: absolute; max-width: 90vw; text-align: center; opacity: 0; transform: scale(0.92); transition: opacity 0.4s, transform 0.4s; }
.display-page .status-content.visible { opacity: 1; transform: scale(1); }
.display-page .status-content.exit { opacity: 0; transform: scale(1.06); }
.display-page .status-message { display: inline-block; width: auto; max-width: none; font-size: 2.6rem; font-weight: 700; padding: 1.2rem 2.8rem; border-radius: 18px; border: none; color: #fff; animation: none; background: #c0392b; }
.display-page .status-message.success { background: #1e8449; }
.display-page .status-message.warning { background: #b9770e; }
.display-page .status-message.error { background: #c0392b; font-style: normal; }
.display-page .status-name { font-size: 4.2rem; font-weight: 700; margin-top: 1.5rem; line-height: 1.1; word-break: break-word; }
.display-page .status-event { font-size: 1.6rem; margin-top: 0.8rem; opacity: 0.7; }
.display-page .display-bottom { position: fixed; bottom: 1.5rem; left: 2.5rem; right: 2.5rem; display: flex; justify-content: space-between; opacity: 0.35; font-size: 1.1rem; }
.display-page .display-offline { position: fixed; top: 50%; left: 50%; transform: translate(-50%, 6rem); background: #c0392b; padding: 0.4rem 1rem; border-radius: 6px; }

@media (max-width: 768px) {
    .event-grid { grid-template-columns: 1fr; }
    .event-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .event-tabs a { white-space: nowrap; padding: 0.6rem 0.75rem; }
    .event-bar-title h1 { font-size: 1.5rem; }
    .tab-btn { padding: 0.7rem 0.9rem; }
    .fullscreen-message .message-content { font-size: 1.7rem; }
    .station-settings input[type="text"] { width: 130px; }
    .display-page .status-name { font-size: 2.6rem; }
    .display-page .status-message { font-size: 1.8rem; }
    .display-page .display-top { padding: 1rem; }
}
