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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background-color: #f5f5f7;
            line-height: 1.6;
        }

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

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }

        .nav-tabs {
            display: flex;
            background: white;
            border-radius: 12px;
            padding: 8px;
            margin-bottom: 2rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            overflow-x: auto;
        }

        .nav-tab {
            padding: 12px 24px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 8px;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.3s ease;
        }

        .nav-tab.active {
            background: #667eea;
            color: white;
        }

        .nav-tab:hover:not(.active) {
            background: #f0f0f0;
        }

        .tab-content {
            display: none;
            background: white;
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        }

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

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
        }

        .stat-card h3 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .stat-card p {
            opacity: 0.9;
            font-weight: 500;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #333;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .btn-primary {
            background: #667eea;
            color: white;
        }

        .btn-primary:hover {
            background: #5a6fd8;
            transform: translateY(-2px);
        }

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

        .btn-danger {
            background: #dc3545;
            color: white;
        }

        .btn-success {
            background: #28a745;
            color: white;
        }

        .btn-warning {
            background: #ffc107;
            color: #212529;
        }

        .table-container {
            overflow-x: auto;
            margin: 1.5rem 0;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .table th,
        .table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e1e5e9;
        }

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

        .table tr:hover {
            background: #f8f9fa;
        }

        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin: 1.5rem 0;
        }

        .pagination button {
            padding: 8px 12px;
            border: 1px solid #e1e5e9;
            background: white;
            cursor: pointer;
            border-radius: 4px;
        }

        .pagination button.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

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

        .search-bar input,
        .search-bar select {
            padding: 10px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
        }

        .alert {
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert-danger {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .alert-info {
            background: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
            backdrop-filter: blur(2px);
        }

        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 2rem;
            border-radius: 12px;
            width: 100%;
            max-width: 120ch;
            height: 100%;
            overflow-y: auto;
        }

        .close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .loading {
            text-align: center;
            padding: 2rem;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

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

        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .chart-container {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .file-upload {
            border: 2px dashed #667eea;
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            background: #f8f9ff;
            transition: all 0.3s ease;
        }

        .file-upload:hover {
            background: #f0f0ff;
        }

        .file-upload.dragover {
            border-color: #5a6fd8;
            background: #e8e8ff;
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .nav-tabs {
                padding: 4px;
            }
            
            .nav-tab {
                padding: 8px 16px;
                font-size: 14px;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .search-bar {
                flex-direction: column;
            }
            
            .search-bar input,
            .search-bar select {
                width: 100%;
            }
        }
        /* Inline editing styles */
.editing {
    background-color: #f8f9fa;
}

.edit-input {
    border: 1px solid #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.edit-input:focus {
    outline: none;
    border-color: #5a6fd8;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

/* Product display styles */
.products-container {
    max-width: 400px;
    padding: 8px;
}

.product-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.product-field {
    display: flex;
    flex-direction: column;
}

.product-field label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.product-display {
    font-size: 13px;
    color: #333;
    padding: 2px 0;
    min-height: 16px;
    word-break: break-word;
}

.product-edit {
    font-size: 12px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.product-edit:focus {
    outline: none;
    border-color: #667eea;
}

.product-actions {
    text-align: center;
    margin-top: 8px;
}

.products-cell {
    vertical-align: top;
}

/* Button styling */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    margin: 0 2px;
}

/* Make table responsive */
@media (max-width: 1200px) {
    .table-container {
        overflow-x: auto;
    }
    
    .products-container {
        min-width: 350px;
    }
}

/* audit-summary */
.audit-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
}

.changes-container {
    max-width: 300px;
}

.change-section {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
}

.change-content {
    max-height: 100px;
    overflow: hidden;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.875rem;
    word-break: break-all;
}

.change-content code {
    background: transparent;
    padding: 0;
    font-size: 0.8rem;
    white-space: pre-wrap;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: #28a745; color: white; }
.badge-warning { background: #ffc107; color: #212529; }
.badge-danger { background: #dc3545; color: white; }
.badge-info { background: #17a2b8; color: white; }
.badge-primary { background: #007bff; color: white; }
.badge-secondary { background: #6c757d; color: white; }

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #6c757d;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .changes-cell {
        max-width: 200px;
    }
    
    .audit-summary > div {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-container {
        flex-direction: column;
    }
}

/* BULK */
/* Add to your existing CSS */
.bulk-modal .modal-content {
    max-width: 500px;
}

.bulk-modal .selected-count {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.bulk-modal .operation-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.bulk-modal .operation-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Progress bar for bulk operations */
.bulk-progress {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.bulk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Import / Export */
/* Add to your existing CSS */
.import-results-container {
    margin-top: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.result-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
    text-align: center;
}

.result-item.success {
    background: #d4edda;
    color: #155724;
}

.result-item.warning {
    background: #fff3cd;
    color: #856404;
}

.result-item.danger {
    background: #f8d7da;
    color: #721c24;
}

.error-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.error-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-family: monospace;
    font-size: 0.9em;
}

.file-selected {
    text-align: center;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 8px;
}

.btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.batch-import-results {
    margin-top: 1rem;
}

/* Attendees Grid Layout */
.attendees-grid-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.attendees-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bulk-select-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-all-checkbox {
    margin: 0;
}

.selected-count {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
}

.toggle-view {
    padding: 0.5rem;
    min-width: 40px;
    border-radius: 6px;
}

.toggle-view.active {
    background: #667eea;
    color: white;
}

/* Cards View */
.attendees-grid[data-view="cards"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

/* Compact View */
.attendees-grid[data-view="compact"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 0;
}

.attendees-grid[data-view="compact"] .attendee-card {
    padding: 1rem;
}

.attendees-grid[data-view="compact"] .card-body {
    display: none;
}

.attendees-grid[data-view="compact"] .card-header {
    flex-direction: column;
    gap: 0.5rem;
}

/* Attendee Card */
.attendee-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.attendee-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.attendee-card.highlighted {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 16px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px);
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { 
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 16px rgba(0,0,0,0.12);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.4), 0 6px 20px rgba(0,0,0,0.15);
    }
}

.attendee-card.editing {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 1rem;
}

.card-select {
    margin-top: 0.25rem;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.2;
}

.card-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.registration-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Card Body */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-section > label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.contact-info,
.registration-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info > div,
.registration-info > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-info .display-value {
    color: #2d3748;
}

.registration-info .label {
    font-weight: 500;
    color: #6c757d;
    min-width: 80px;
    font-size: 0.8rem;
}

.registration-info .display-value {
    color: #2d3748;
}

/* Products Section */
.products-section {
    border-top: 1px solid #f1f3f4;
    padding-top: 1rem;
}

.products-section > label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.no-products {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Product Cards */
.product-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.product-card:hover {
    background: #e9ecef;
}

.product-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.product-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
    flex: 1;
}

.product-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-type {
    background: #667eea;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-qty {
    background: #28a745;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.product-extras {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-badge-tag,
.product-size {
    background: #ffc107;
    color: #212529;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-size {
    background: #17a2b8;
    color: white;
}

/* Card Details */
.card-details {
    border-top: 1px solid #f1f3f4;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item .label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.8rem;
}

.detail-item .value {
    font-size: 0.875rem;
    color: #2d3748;
}

/* Edit Mode */
.attendee-card.editing .edit-input {
    display: inline-block !important;
    width: 100%;
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #667eea;
    border-radius: 4px;
    font-size: 0.875rem;
}

.attendee-card.editing .edit-input:focus {
    outline: none;
    border-color: #5a6fd8;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

/* Name editing styles */
.attendee-card.editing .card-title h3 .edit-input.name-first,
.attendee-card.editing .card-title h3 .edit-input.name-last {
    width: calc(50% - 0.5rem);
    margin: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: #28a745; color: white; }
.badge-warning { background: #ffc107; color: #212529; }
.badge-danger { background: #dc3545; color: white; }
.badge-info { background: #17a2b8; color: white; }
.badge-primary { background: #667eea; color: white; }
.badge-secondary { background: #6c757d; color: white; }
.badge-custom { background: #667eea; color: white; }

/* New status badges */
.badge-pre-arrival { background: #ffc107; color: #212529; }
.badge-processing { background: #667eea; color: white; }
.badge-checked-in { background: #1e7e34; color: white; }
.badge-needs-help { background: #bd2130; color: white; }
.badge-unresolved { background: #ffffff; color: #212529; border: 1px solid #dee2e6; }

/* Desktop layout - show full info, hide mobile essentials */
.mobile-essential-info {
    display: none;
}

.desktop-info {
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .attendees-grid[data-view="cards"] {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Hide specific search fields on mobile */
    .dedicated-searches #registration-id-search,
    .dedicated-searches #purchase-id-search,
    .dedicated-searches #confirmation-search {
        display: none;
    }
    
    /* Hide search actions on mobile */
    .search-actions {
        display: none;
    }
    
    /* Hide attendees grid header on mobile */
    .attendees-grid-header {
        display: none;
    }
    
    /* Default to compact view on mobile */
    .attendees-grid[data-view="cards"],
    .attendees-grid[data-view="compact"] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Force compact view appearance on mobile */
    .attendee-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .card-title h3 {
        font-size: 1.125rem;
    }
    
    /* Hide edit button on mobile */
    .card-actions .edit-toggle {
        display: none;
    }
    
    .card-actions {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .product-main {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* Mobile-specific layout */
    .mobile-essential-info {
        display: block;
    }
    
    .desktop-info {
        display: none;
    }
    
    .essential-contact {
        margin-bottom: 0.75rem;
    }
    
    .essential-contact > div {
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
    }
    
    .essential-registration {
        margin-bottom: 0.75rem;
    }
    
    .essential-products {
        margin-bottom: 0.75rem;
    }
    
    .badge-tags {
        margin-bottom: 0.5rem;
    }
    
    .badge-tag {
        display: inline-block;
        background: #e9ecef;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-size: 0.75rem;
        margin-right: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .product-summary {
        font-size: 0.875rem;
        color: #6c757d;
        font-style: italic;
    }
}

@media (max-width: 480px) {
    .attendee-card {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .card-title h3 {
        font-size: 1rem;
    }
    
    .card-subtitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .registration-id {
        font-size: 0.8rem;
    }
    
    .attendees-grid-header {
        padding: 0.75rem;
    }
}

/* Animation for smooth transitions */
@media (prefers-reduced-motion: no-preference) {
    .attendee-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .toggle-view {
        transition: all 0.2s ease;
    }
    
    .product-card {
        transition: all 0.2s ease;
    }
}

/* Focus styles for accessibility */
.attendee-checkbox:focus,
.select-all-checkbox:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .attendee-card {
        border-width: 2px;
    }
    
    .badge {
        border: 1px solid currentColor;
    }
}

/* Search Section Styles */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-section h3 {
    margin: 0 0 1.5rem 0;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.search-group,
.dedicated-searches,
.filters-section {
    margin-bottom: 1.5rem;
}

.search-label {
    display: block;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.search-field:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #f8f9ff;
}

.search-field::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Search Grid Layouts */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

/* Active Search Indicators */
.search-field.has-value,
.filter-select.has-value {
    border-color: #28a745;
    background: #f8fff9;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.search-field.has-value::placeholder {
    color: #28a745;
    font-weight: 500;
}

/* Search Results Counter */
.search-results-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #1565c0;
    font-weight: 500;
    text-align: center;
}

.search-results-info .active-filters {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-grid,
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .search-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-field,
    .filter-select {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .search-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .search-field,
    .filter-select {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Animation for smooth interactions */
@media (prefers-reduced-motion: no-preference) {
    .search-field,
    .filter-select {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .search-section {
        transition: box-shadow 0.2s ease;
    }
    
    .search-section:focus-within {
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
}

/* Clear button styles */
.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #f8f9fa;
    color: #495057;
}

.search-field-container {
    position: relative;
}

/* Search Suggestions Dropdown */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestions-header {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.keyboard-highlighted {
    background: #f8f9ff;
    border-left: 3px solid #667eea;
}

.suggestion-item.see-all {
    background: #e9ecef;
    font-weight: 500;
    text-align: center;
    color: #495057;
}

.suggestion-item.see-all:hover {
    background: #dee2e6;
}

.suggestion-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.suggestion-main strong {
    color: #2d3748;
}

.suggestion-main .registration-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
}

.suggestion-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.suggestion-details small {
    color: #6c757d;
    font-size: 0.75rem;
}

.suggestion-details .country {
    color: #495057;
}

.suggestion-details .pass-type {
    font-size: 0.6rem;
    padding: 0.125rem 0.375rem;
}

/* Highlight matches in suggestions */
.suggestion-item mark {
    background: #fff3cd;
    color: #856404;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Status Badge Styles */
.status-badge.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.status-badge.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.status-badge.clickable:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Status Change Modal Styles */
.status-change-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.status-change-info p {
    margin: 0.5rem 0;
    color: #495057;
}

.status-change-info strong {
    color: #212529;
    font-weight: 600;
}

.status-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
}

.status-warning p {
    margin: 0;
    font-size: 0.875rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* CSR Confirmation Styles */
.csr-section-title {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1rem;
    display: block;
}

.csr-checklist {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.checklist-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.csr-confirmation-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
    cursor: pointer;
}

.csr-confirmation-label input[type="checkbox"] {
    width: 30px; /* xx-large checkbox */
    height: 30px;
    margin: 0;
    margin-right: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    transform: scale(1.5);
}

.checklist-text {
    flex: 1;
    font-size: 1.5rem; /* x-large text */
    font-weight: 600;
    line-height: 1.3;
}

.checklist-detail {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

.checklist-products {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.checklist-product-item {
    padding: 0.25rem 0.5rem;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checklist-product-item:last-child {
    margin-bottom: 0;
    width: max-content;
}

.product-badge {
    background: #007bff;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 1rem;
}

.checklist-item.completed {
    border-left-color: #28a745;
    background: #f8fff9;
}

.checklist-item.completed .checklist-text {
    text-decoration: line-through;
    color: #6c757d;
}

.csr-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.csr-warning small {
    color: #856404;
    font-weight: 500;
}

/* Badge hover states for different statuses */
.badge-warning.clickable:hover {
    background-color: #e0a800 !important;
}

.badge-success.clickable:hover {
    background-color: #1e7e34 !important;
}

.badge-danger.clickable:hover {
    background-color: #bd2130 !important;
}

.badge-info.clickable:hover {
    background-color: #667eea !important;
}

.badge-secondary.clickable:hover {
    background-color: #545b62 !important;
}

/* Status select styling */
#new-status-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
}

#new-status-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Mobile responsive for status modal */
@media (max-width: 768px) {
    .status-change-info {
        padding: 0.75rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .status-badge.clickable {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
    }
}

/* === AUTHENTICATION STYLES === */
#auth-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.auth-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
}

.auth-panel.authenticated {
    background: rgba(255, 255, 255, 0.98);
    max-width: 800px;
    text-align: left;
}

.auth-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.auth-header p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    min-height: 400px;
    position: relative;
}

.auth-form.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

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

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-footer {
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* User Info Display */
.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-badge {
    display: inline-flex;
    padding: 0.8rem;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    min-width: 60px;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-details {
    flex: 1;
}

.user-details h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.user-role {
    margin: 0.3rem 0;
    color: #666;
    font-size: 1rem;
}

.user-id {
    margin: 0.3rem 0;
    color: #888;
    font-size: 0.9rem;
}

.user-id code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

/* Role Navigation */
.role-navigation {
    margin-top: 1.5rem;
}

.role-navigation h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

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

.role-nav-btn {
    padding: 1rem 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.role-nav-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.role-nav-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* === USER MANAGEMENT STYLES === */
.user-management-panel {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.panel-header h2 {
    color: #333;
    margin: 0;
    font-size: 2rem;
}

.users-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.users-stats .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.users-stats .stat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.users-stats .stat-card p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.users-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.user-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    color: #28a745;
    font-weight: bold;
}

.unverified-badge {
    color: #ffc107;
    font-weight: bold;
}

.role-badge.role-owner {
    background: #8e44ad;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.role-badge.role-admin {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.role-badge.role-partner {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.role-badge.role-viewer {
    background: #2ecc71;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Auth responsive */
@media (max-width: 768px) {
    .auth-panel {
        padding: 2rem;
        margin: 1rem;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .users-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Auth Toggle Tabs */
.auth-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #e1e5e9;
}

.auth-tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.auth-tab-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.auth-tab-btn:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

/* Form Layout Improvements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Sign-up specific styling */
#signup-form .form-group {
    margin-bottom: 1rem;
}

#signup-form input[minlength] {
    border-left: 4px solid transparent;
}

#signup-form input[minlength]:valid {
    border-left-color: #28a745;
}

#signup-form input[minlength]:invalid:not(:placeholder-shown) {
    border-left-color: #dc3545;
}

/* Password requirements hint */
.password-requirements {
    margin-bottom: 1rem;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
}

.password-requirements small {
    color: #6c757d;
    font-weight: 500;
    line-height: 1.4;
}

/* Auth footer improvements */
.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #6c757d;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Ensure form elements are always clickable */
.auth-form input,
.auth-form button,
.auth-tab-btn {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Better viewport handling for smaller screens */
@media (max-height: 700px) {
    #auth-container {
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .auth-panel {
        margin-top: auto;
        margin-bottom: auto;
        max-height: calc(100vh - 4rem);
    }
}

/* Ensure inline errors are visible */
.inline-error {
    display: none !important;
    color: #dc3545;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.inline-error.show {
    display: block !important;
}

/* Notes section for status changes */
.notes-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.notes-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.notes-container .form-group {
    margin-bottom: 1rem;
}

.notes-container .form-group:last-child {
    margin-bottom: 0;
}

#status-notes {
    min-height: 80px;
    resize: vertical;
}

/* Attendee details modal styling */
.details-header {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.details-header p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

#attendee-details-content {
    max-height: 60vh;
    overflow-y: auto;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.product-detail {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-detail:last-child {
    margin-bottom: 0;
}

/* Update checklist text to be minimal words */
.csr-checklist .checklist-text {
    font-size: 1.25rem; /* Slightly smaller than the global x-large for better readability */
}

/* Improve checkbox text labels with minimal words */
.checklist-item label .checklist-text {
    font-weight: 600;
}

/* Details modal editing controls */
.details-edit-controls {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.details-edit-controls .btn {
    margin: 0 0.5rem;
}

.detail-edit-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
}

.detail-edit-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

/* Pass type styling with proper background colors */
.pass-type-info .display-value.badge-primary {
    background-color: #667eea !important; /* Custom product type */
}

.pass-type-info .display-value.badge-secondary {
    background-color: #6c757d !important; /* Standard product type */
}

/* Existing Notes Display */
.existing-notes-display {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.existing-notes-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.existing-notes-content {
    margin-top: 0.5rem;
}

.existing-note {
    margin: 0 0 0.5rem 0;
    padding: 0.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #212529;
}

.existing-note:last-child {
    margin-bottom: 0;
}

/* Prevent scrolling when modal is active */
body.modal-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Higher z-index for stacked modals */
.modal.modal-stacked {
    z-index: 1001;
    background-color: rgba(0,0,0,0.6);
}

/* Password Strength Indicator Styles */
.password-strength-indicator {
    margin-top: 8px;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 0.875rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.password-weak .strength-fill {
    background-color: #dc3545;
}

.password-fair .strength-fill {
    background-color: #fd7e14;
}

.password-good .strength-fill {
    background-color: #198754;
}

.password-excellent .strength-fill {
    background-color: #0d6efd;
}

.strength-text {
    font-weight: 600;
    margin-bottom: 8px;
}

.security-issues {
    font-size: 0.8rem;
    margin-bottom: 8px;
    padding: 6px;
    background-color: #f8d7da;
    border-radius: 3px;
}

.requirements-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-size: 0.8rem;
}

.requirement {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.requirement.met {
    color: #198754;
}

.requirement.unmet {
    color: #6c757d;
}

.password-confirm-indicator {
    margin-top: 4px;
    font-size: 0.875rem;
}

/* Enhanced form styling */
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 12px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Security alert styling */
.security-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.security-alert.danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.security-alert.warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.security-alert.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Loading indicator for password checks */
.password-checking {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 4px;
}

.password-checking::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive password indicator */
@media (max-width: 576px) {
    .requirements-checklist {
        grid-template-columns: 1fr;
    }
    
    .password-strength-indicator {
        font-size: 0.8rem;
    }
}

/* Security Modal Styles */
.security-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.security-summary-modal .modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.security-summary-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.security-summary-modal .modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.security-summary-modal .modal-header button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.stat-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card.alert {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.stat-card.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.security-details {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.security-details h4 {
    margin-top: 0;
    color: #dc3545;
}

.violation-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    font-size: 13px;
}

/* Audit Table Security Highlighting */
.security-violation-row {
    background-color: #f8d7da !important;
    border-left: 4px solid #dc3545;
}

.high-severity-row {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.failed-login-row {
    background-color: #d1ecf1 !important;
    border-left: 4px solid #bee5eb;
}

.security-violation-row:hover,
.high-severity-row:hover,
.failed-login-row:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Security Preset Buttons */
.security-presets {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.security-presets .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.security-presets .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
}

.security-presets .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #212529;
}

.security-presets .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
}

.security-presets .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
}

/* Severity Badges */
.severity-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-low {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.severity-medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.severity-high {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.severity-critical {
    background: #721c24;
    color: white;
    border: 1px solid #f5c6cb;
    animation: pulse 2s infinite;
}

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

/* Security Filter Enhancements */
.audit-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.filter-actions .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Content Security Policy Styles */
.csp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 350px;
    border-left: 4px solid #a71e2a;
}

.csp-notification h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.csp-notification p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Security Headers Status */
.security-headers-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

.security-headers-status .icon {
    font-size: 16px;
}

/* Mobile Responsive Security Styles */
@media (max-width: 768px) {
    .security-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .security-presets .btn-sm {
        margin-bottom: 8px;
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .security-summary-modal .modal-content {
        width: 95%;