@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

body.modal-open {
    overflow: hidden;
}

body.results-page {
    padding: 0;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.narrow-container {
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.06);
}

h1 {
    color: #1e293b;
    margin-bottom: 32px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

#eventContent #eventTitle{
    color: #ffffff;
}

h3 {
    color: #475569;
    margin: 24px 0 16px 0;
    font-weight: 600;
}

h4 {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}

input, textarea {
    width: 100%;
    padding: 16px 20px;
    margin: 12px 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

input:hover:not(:focus), textarea:hover:not(:focus) {
    border-color: #cbd5e1;
}

input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

/* Touch-friendly interactions - Requirement 12.6 */
/* Ensure all interactive elements meet minimum 44x44px touch target size */

/* ============================================
   STANDARDIZED BUTTON SYSTEM
   ============================================ */

/* Base button styles - applied to all buttons */
button, .btn {
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-decoration: none;
}

button:active, .btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

button:focus-visible, .btn:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Primary button - gradient purple for main actions */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Secondary button - outlined for secondary actions */
.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* Tertiary button - ghost/minimal for less prominent actions */
.btn-tertiary {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: none;
}

.btn-tertiary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Danger button - red for destructive actions */
.btn-danger {
    background: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

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

/* Success button - green for positive actions */
.btn-success {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Size modifiers */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    min-height: 52px;
}

/* Icon-only buttons */
.btn-icon {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

/* Disabled state */
button:disabled, .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Disabled button class for quota limit */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Disabled button due to quota limit - additional visual feedback */
.btn.disabled-quota {
    position: relative;
}

.btn.disabled-quota:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 1000;
    pointer-events: none;
    max-width: 300px;
    white-space: normal;
    text-align: center;
}

/* ============================================
   SPECIAL BUTTON CLASSES
   These have unique styling requirements
   ============================================ */

/* User menu button - Preserved for unique dropdown styling */
/* See .user-menu-btn definition below for full styles */

/* Question review button - Preserved for unique layout with icon and text */
/* See .question-review-btn definition below for full styles */

/* Close button for modals - Preserved for minimal modal close styling */
/* See .close-btn definition below for full styles */

/* Touch-friendly links and clickable elements */
a, .clickable {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Touch-friendly input fields */
input, textarea, select {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Touch-friendly checkboxes and radio buttons */
input[type="checkbox"],
input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
}

/* Increase touch target for small icons */
.icon-button,
.close-btn,
.copy-icon,
.copy-link-btn,
.search-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.participant-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    margin: 38px 0;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 0.5s ease-out;
}

.participant-card:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

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

.participant-card h3 {
    color: white;
    margin: 16px 0 8px 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.score-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.question-block {
    margin: 40px 0;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out;
}

.question-block:hover {
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

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

.question-options {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.question-option {
    padding: 16px 32px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    min-width: 120px;
    min-height: 44px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.question-option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.question-option:active {
    transform: translateY(0);
}

.question-option.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.question-option.selected:hover {
    transform: scale(1.02) translateY(-2px);
}

/* Mobile: Make question options full width for easier tapping */
@media (max-width: 768px) {
    .question-option {
        width: 100%;
        padding: 16px 24px;
        min-height: 48px;
    }
}

.url-container, .pin-container {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    align-items: center;
}

.pin-container label {
    font-weight: 600;
    min-width: 140px;
    color: #475569;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.action-buttons button {
    flex: 1;
    max-width: 200px;
}

.banner-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    border: 2px dashed #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banner-card:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    transform: translateY(-2px);
}

.banner-content {
    text-align: center;
}

.banner-content h3 {
    color: #475569;
    margin-bottom: 8px;
}

.banner-content p {
    color: #64748b;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.archive-section {
    margin-top: 32px;
}

.archive-section h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.archive-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.archive-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.archive-title {
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.archive-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.archive-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-pin {
    color: #64748b;
    font-size: 0.9rem;
    font-family: monospace;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
}

.archive-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}


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

.open-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.delete-btn {
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.delete-btn i {
    width: 16px;
    height: 16px;
}

.review-questions-dropdown {
    width: 100%;
    padding: 16px 20px;
    margin: 12px 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: none;
}

.review-questions-dropdown:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

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

.dropdown-text {
    font-weight: 500;
    color: #667eea;
}

.dropdown-arrow {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.review-questions-dropdown:hover .dropdown-arrow {
    color: #667eea;
    transform: translateY(-1px);
}

/* Create Event button alignment */
#eventForm button[type="submit"] {
    width: auto;
    margin: 24px 0 0 auto;
    display: block;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-header {
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #1e293b;
}

.close-outside {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.close-outside:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.close-outside:active {
    transform: scale(1.05);
}

.modal-body {
    padding: 24px 32px;
}

.modal-footer {
    padding: 16px 32px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    border-radius: 0 0 16px 16px;
}

.enabled-counter {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

#enabledQuestionsCounter {
    color: #1e293b;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-buttons button {
    flex: 0 0 auto;
    min-width: 120px;
}


.cancel-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.4);
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.question-item.disabled {
    background: #f8fafc;
    opacity: 0.6;
}

.question-text {
    flex: 1;
    margin-right: 16px;
    color: #334155;
}

.toggle-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.toggle-btn:hover {
    background: #e2e8f0;
}

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

/* Create Your Own Banner */
.create-own-banner {
    margin: 60px auto 40px;
    max-width: 800px;
    padding: 40px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.create-own-banner .banner-content h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.create-own-banner .banner-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.create-own-banner .btn {
    display: inline-block;
    background: #ffffff;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.create-own-banner .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive for create-own-banner */
@media (max-width: 768px) {
    .create-own-banner {
        margin: 40px 1rem 32px;
        padding: 32px 24px;
    }
    
    .create-own-banner .banner-content h3 {
        font-size: 24px;
    }
    
    .create-own-banner .banner-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .create-own-banner {
        margin: 32px 0.75rem 24px;
        padding: 24px 16px;
    }
    
    .create-own-banner .banner-content h3 {
        font-size: 20px;
    }
    
    .create-own-banner .banner-content p {
        font-size: 14px;
    }
}

.footer {
    margin-top: auto;
    padding: 40px 20px 0px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.results-page .footer-content{
    color: #667eea;
}

.footer-content div:first-child {
    margin-bottom: 4px;
}

.footer-content a {
    color: inherit;
    text-decoration: underline;
}

.footer-content a:hover {
    opacity: 0.8;
}

.pin-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.pin-input-container input {
    flex: 1;
    margin: 0;
}

.pin-input-container button {
    margin: 0;
    flex-shrink: 0;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.legal-container h1 {
    color: #1e293b;
    margin-bottom: 20px;
}

.legal-container h2 {
    color: #334155;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-container p, .legal-container li {
    color: #475569;
    line-height: 1.6;
}

.legal-container ul {
    margin-left: 20px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-btn:hover {
    background: #5a67d8;
}

.cookie-link {
    color: #cbd5e1;
    text-decoration: underline;
}

.cookie-link:hover {
    color: white;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }
    
    .question-block {
        padding: 24px 20px;
        margin: 24px 0;
    }
    
    .question-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .question-option {
        width: 100%;
        padding: 14px 24px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-buttons button {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    button {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    input, textarea {
        padding: 14px 16px;
        font-size: 15px;
    }
}

.attribution {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.attribution a {
    color: #667eea;
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

.results-layout .footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 0;
}

.results-layout .footer-content {
    color: #64748b;
}

.logo-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

/* App Header for authenticated pages */
.app-header {
    padding: 0;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.btn-create-event {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-create-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
}

.user-menu-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-icon {
    transition: transform 0.2s ease;
}

.user-menu-btn.active .user-menu-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

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

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.user-email {
    font-size: 13px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: none;
    min-height: 44px;
}

.user-dropdown-item:hover {
    background: #f8fafc;
    color: #667eea;
    transform: none;
}

.user-dropdown-item svg {
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-header {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .btn-create-event {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .user-name {
        max-width: 100px;
    }
    
    .logo-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

.logo-small {
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.logo-small:hover {
    transform: scale(1.05);
}

.logo-small-line-1 {
    font-size: 0.7rem;
    font-weight: 300;
    color: #667eea;
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-small-line-2 {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -0.01em;
    line-height: 1;
}

.logo-small-line-3 {
    font-size: 0.8rem;
    font-weight: 400;
    color: #667eea;
    letter-spacing: 0.03em;
    line-height: 1;
}

.event-logo {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
}

.event-logo .logo-small-line-1,
.event-logo .logo-small-line-2,
.event-logo .logo-small-line-3 {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.logo-main {
    text-align: center;
    padding: 60px 0 50px 0;
    margin-bottom: 20px;
}

.logo-text {
    display: inline-block;
}

.logo-line-1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #667eea;
    letter-spacing: 0.1em;
    margin-bottom: -8px;
}

.logo-line-2 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    margin-bottom: -8px;
}

.logo-line-3 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #764ba2;
    letter-spacing: 0.05em;
}

.copy-icon,
.copy-btn {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    font-size: 16px;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-icon i,
.copy-btn i {
    width: 20px;
    height: 20px;
}

.copy-icon:hover,
.copy-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.copy-icon:active,
.copy-btn:active {
    transform: scale(0.95);
}

.event-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    min-height: 100vh;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (max-width: 768px) {
    .event-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar .participant-card {
        margin-bottom: 20px;
    }
}

/* Tablet responsive design (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 720px;
    }
    
    .card {
        padding: 40px 32px;
    }
    
    .event-layout {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }
    
    .events-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.main-content {
    padding: 0;
}

.progress-container {
    margin-top: 20px;
}

.progress-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: white;
    height: 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-align: center;
}

.results-link {
    text-align: center;
    margin: 40px 0;
}

.results-link a {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 16px 32px;
    border: 2px solid #667eea;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
}

.results-link a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.results-link a.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.results-link a.disabled:hover {
    transform: none;
    box-shadow: none;
}



/* Results Page Styles */
.results-layout {
    min-height: 100vh;
    background: #f8fafc;
}

/* New header layout */
.results-header-new {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.header-logo {
    flex-shrink: 0;
    justify-self: start;
}

.logo-compact {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.logo-compact:hover {
    transform: scale(1.05);
}

.logo-compact .logo-text {
    font-weight: 400;
    color: #667eea;
    line-height: 1;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.logo-compact .logo-text:first-child {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.header-title {
    text-align: center;
    justify-self: center;
}

.header-title h1 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
}

.distribution-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.distribution-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-search {
    flex-shrink: 0;
    position: relative;
    justify-self: end;
}

.search-toggle {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.search-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

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

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

.search-container {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    z-index: 100;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    margin-bottom: 8px;
}

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

.search-results-count {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .results-header-new {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .header-logo,
    .header-title,
    .header-search {
        width: 100%;
        justify-self: center;
    }
    
    .header-title {
        text-align: center;
        order: 2;
    }
    
    .header-logo {
        order: 1;
        text-align: center;
    }
    
    .header-search {
        order: 3;
        text-align: center;
    }
    
    .search-container {
        position: static;
        margin-top: 8px;
        min-width: auto;
        width: 100%;
    }
    
    .header-title h1 {
        font-size: 1.25rem;
    }
}

.back-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
}

.back-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.view-detailed-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    display: inline-block;
    font-size: 0.9rem;
    margin-top: 8px;
}

.view-detailed-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.results-content {
    padding: 0;
}

.spectrum-container {
    width: 100%;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

.spectrum-bar {
    display: flex;
    width: 100%;
    min-height: 800px;
    margin: 0;
    min-width: 100%;
    position: relative;
    height: 100vh;
}

/* Mobile responsive styles */
@media (max-width: 920px) {
    .spectrum-container {
        justify-content: flex-start;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    
    .spectrum-bar {
        min-width: 1024px;
        width: 1024px;
    }
    
    .results-header {
        padding: 16px 20px;
    }
    
    .results-header h1 {
        font-size: 1.5rem;
    }
    
    /* Improve touch scrolling performance */
    .spectrum-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .spectrum-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    
    .spectrum-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    
    .spectrum-container::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

.spectrum-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
}

.spectrum-section[data-value="-25"] {
    background: #B6C1F5;
}

.spectrum-section[data-value="-20"] {
    background: #B6F5DE;
}

.spectrum-section[data-value="-15"] {
    background: #F0F5B6;
}

.spectrum-section[data-value="-10"] {
    background: #F5D1B6;
}

.spectrum-section[data-value="-5"] {
    background: #F5C1B6;
    border-right: 2px solid #dc2626;
}

.spectrum-section[data-value="5"] {
    background: #F5C1B6;
}

.spectrum-section[data-value="10"] {
    background: #F5D1B6;
}

.spectrum-section[data-value="15"] {
    background: #F0F5B6;
}

.spectrum-section[data-value="20"] {
    background: #B6F5DE;
}

.spectrum-section[data-value="25"] {
    background: #B6C1F5;
}

.spectrum-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 60px 20px; /* Add top/bottom padding for participant spacing */
}

.spectrum-section[data-value="5"],
.spectrum-section[data-value="10"],
.spectrum-section[data-value="15"],
.spectrum-section[data-value="20"],
.spectrum-section[data-value="25"] {
    justify-content: flex-end;
}

.participant-marker {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 15;
}

/* Mobile adjustments for participant positioning */
@media (max-width: 920px) {
    .spectrum-bar {
        position: relative; /* Ensure spectrum-bar is the positioning context */
    }
    
    .participant-marker {
        /* Ensure participants are positioned relative to the spectrum bar */
        width: 100%; /* Keep as 100% of spectrum-bar */
        left: 0;
        position: absolute; /* Position relative to spectrum-bar */
    }
}

.participant-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.participant-container:hover {
    transform: translateX(-50%) scale(1.05);
}

.participant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: white;
    border: 3px solid #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 60px;
    min-height: 60px;
}

.participant-avatar:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Mobile: Increase touch target size */
@media (max-width: 768px) {
    .participant-avatar {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
        font-size: 2rem;
    }
}

.participant-name-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 12px;
    border: 2px solid #667eea;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Static positioning for 21 rows - participants use 0-19, row 20 is empty buffer */
.participant-marker[data-row="0"] { top: 8%; }
.participant-marker[data-row="1"] { top: 12%; }
.participant-marker[data-row="2"] { top: 16%; }
.participant-marker[data-row="3"] { top: 20%; }
.participant-marker[data-row="4"] { top: 24%; }
.participant-marker[data-row="5"] { top: 28%; }
.participant-marker[data-row="6"] { top: 32%; }
.participant-marker[data-row="7"] { top: 36%; }
.participant-marker[data-row="8"] { top: 40%; }
.participant-marker[data-row="9"] { top: 44%; }
.participant-marker[data-row="10"] { top: 48%; }
.participant-marker[data-row="11"] { top: 52%; }
.participant-marker[data-row="12"] { top: 56%; }
.participant-marker[data-row="13"] { top: 60%; }
.participant-marker[data-row="14"] { top: 64%; }
.participant-marker[data-row="15"] { top: 68%; }
.participant-marker[data-row="16"] { top: 72%; }
.participant-marker[data-row="17"] { top: 76%; }
.participant-marker[data-row="18"] { top: 80%; }
.participant-marker[data-row="19"] { top: 84%; }

/* Search filtering styles */
.participant-marker.filtered-out {
    opacity: 0.3;
    filter: grayscale(70%);
    transition: all 0.3s ease;
    z-index: 5;
}

.participant-marker.filtered-out .participant-container {
    transform: translateX(-50%) scale(0.9);
}

/* Highlighted search results have higher z-index for better visibility */
.participant-marker:not(.filtered-out) {
    z-index: 15;
}

/* When search is active, make visible participants more prominent */
body:has(.search-container[style*="display: block"]) .participant-marker:not(.filtered-out) {
    z-index: 20;
}

body:has(.search-container[style*="display: block"]) .participant-marker:not(.filtered-out) .participant-container {
    transform: translateX(-50%) scale(1.05);
}

body:has(.search-container[style*="display: block"]) .participant-marker:not(.filtered-out) .participant-avatar {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Current participant highlighting - Requirement 7.7 */
.participant-marker.current-participant {
    z-index: 25 !important;
}

.participant-marker.current-participant .participant-avatar {
    border: 4px solid #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3), 0 12px 35px rgba(0, 0, 0, 0.3);
    animation: pulse-highlight 2s ease-in-out infinite;
}

.participant-marker.current-participant .participant-name-label {
    border: 2px solid #f59e0b;
    background: rgba(254, 243, 199, 0.95);
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15);
}

.participant-marker.current-participant .participant-container:hover .participant-avatar {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4), 0 15px 40px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3), 0 12px 35px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.5), 0 12px 35px rgba(0, 0, 0, 0.3);
    }
}

/* Editable name and avatar styles */
.editable-name {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 16px 0 8px 0;
}

.editable-name:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.name-input {
    background: white;
    color: #1e293b;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 16px 0 8px 0;
    width: 100%;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.name-input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.avatar {
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 80px;
    min-height: 80px;
}

.avatar:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.avatar:active {
    transform: scale(1.05);
}

/* Mobile: Increase avatar size for easier tapping */
@media (max-width: 768px) {
    .avatar {
        min-width: 88px;
        min-height: 88px;
    }
}

/* Emoji selector modal styles */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
    padding: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.emoji-option {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.emoji-option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: scale(1.1);
}

.emoji-option:active {
    transform: scale(1.05);
}

.emoji-option.selected {
    background: #667eea;
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

/* Mobile: Increase emoji option size */
@media (max-width: 768px) {
    .emoji-option {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
        font-size: 2.2rem;
    }
}

.emoji-grid::-webkit-scrollbar {
    width: 8px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Participant Modal Styles */
.close-btn {
    color: #64748b;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
    transform: scale(1.1);
}

.participant-details {
    text-align: center;
    padding: 20px 0;
}

.participant-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 4px solid #667eea;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

.participant-details h3 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.participant-score-large {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 32px;
    display: inline-block;
}

/* Distribution Modal Styles */
.distribution-modal {
    max-width: 800px;
}

.distribution-summary {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.distribution-summary p {
    margin: 0;
    color: #64748b;
    font-weight: 500;
}

.distribution-summary span {
    font-weight: 700;
    color: #1e293b;
}

.distribution-list {
    max-height: 60vh;
    overflow-y: auto;
}

.distribution-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.distribution-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.distribution-question {
    flex: 1;
    margin-right: 20px;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.4;
}

.distribution-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-group {
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 80px;
}

.stat-group.yes-stat {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.stat-group.no-stat {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.yes-stat .stat-label {
    color: #166534;
}

.no-stat .stat-label {
    color: #991b1b;
}

.stat-percentage {
    font-size: 1.1rem;
    font-weight: 700;
}

.yes-stat .stat-percentage {
    color: #15803d;
}

.no-stat .stat-percentage {
    color: #dc2626;
}

.distribution-list::-webkit-scrollbar {
    width: 8px;
}

.distribution-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.distribution-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.distribution-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .modal-header {
        padding: 20px 24px 12px;
    }
    
    .modal-body {
        padding: 20px 24px;
    }
    
    .participant-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }
    
    .participant-details h3 {
        font-size: 1.5rem;
    }
    
    .participant-score-large {
        font-size: 1.3rem;
        padding: 12px 24px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1rem;
        align-self: flex-end;
    }
    
    .distribution-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .distribution-question {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .distribution-stats {
        justify-content: center;
        min-width: auto;
    }
    
    .stat-group {
        min-width: 70px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .stat-group {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-percentage {
        font-size: 1rem;
    }
}

/* Detailed Results Page Styles */
.detailed-results-layout {
    min-height: 100vh;
    background: #f8fafc;
}

.detailed-results-content {
    padding: 24px;
    max-width: 100%;
    margin: 0 auto;
}

.results-summary {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    text-align: center;
}

.summary-stats .stat-item {
    flex: 1;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-stats .stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
}

.detailed-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.detailed-results-table th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 10;
}

.detailed-results-table td {
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.detailed-results-table tr:hover {
    background: #f8fafc;
}

/* Sticky columns for Avatar, Name, Score */
.sticky-col {
    position: sticky;
    background: white;
    z-index: 5;
    border-right: 2px solid #e2e8f0 !important;
}

.sticky-col.row-number-col {
    left: 0;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
}

.sticky-col.avatar-col {
    left: 50px;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

.sticky-col.name-col {
    left: 130px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    text-align: center;
}

.sticky-col.score-col {
    left: 280px;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.sticky-col.positive-sum-col {
    left: 380px;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.sticky-col.negative-sum-col {
    left: 500px;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* Sum badge styling */
.sum-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 50px;
}

.sum-badge.positive {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sum-badge.negative {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Header buttons layout */
.header-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.header-buttons .distribution-btn {
    margin-top: 0;
}

/* Table actions layout */
.table-actions {
    display: flex;
    justify-content: flex-end;
    padding: 16px 0;
    margin-top: 16px;
}

.download-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Sorting functionality styles */
.sortable {
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: #f1f5f9;
}

.sort-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.8rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.sort-indicator.active {
    color: #667eea;
    font-weight: 700;
}

.sort-indicator.active.asc {
    color: #059669;
}

.sort-indicator.active.desc {
    color: #dc2626;
}

/* Question header sort indicator positioning */
.question-header .sort-indicator {
    font-size: 0.7rem;
    margin-top: 2px;
}

/* Hover effect for sticky columns */
.detailed-results-table tr:hover .sticky-col {
    background: #f8fafc;
}

/* Question column styling */
.question-col {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    padding: 8px 4px !important;
}

.question-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.question-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    background: #e0e7ff;
    padding: 2px 6px;
    border-radius: 4px;
}

.detailed-results-table .question-text {
    font-size: 0.6rem;
    color: #64748b;
    line-height: 1.3;
    max-height: 5.2em; /* Approximately 6 lines with line-height 1.3 */
    word-wrap: break-word;
    hyphens: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
}

/* More specific selector for detailed results table question text */
.detailed-results-table .question-header .question-text {
    font-size: 0.6rem !important;
}

/* Avatar styling in table */
.participant-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    margin: 0 auto;
}

/* Name cell styling */
.name-cell {
    font-weight: 600;
    color: #1e293b;
    padding: 12px 16px !important;
}

/* Score badge styling */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 50px;
}

.score-badge.positive {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.score-badge.negative {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Answer badge styling */
.answer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 36px;
}

.answer-badge.yes {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.answer-badge.no {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.answer-badge.na {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    opacity: 0.6;
}

/* Loading and error states */
.loading-state, .error-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto 16px;
}

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

.loading-state p, .error-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.error-state h3 {
    color: #1e293b;
    margin: 16px 0 8px 0;
    font-size: 1.5rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Search filtering for table rows */
.participant-row.filtered-out {
    opacity: 0.3;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

/* Summary row styling */
.summary-row {
    background: #f8fafc !important;
    border-top: 3px solid #667eea !important;
    font-weight: 600;
}

.summary-row:hover {
    background: #f8fafc !important;
}

.summary-cell {
    background: #f8fafc !important;
    color: #475569;
    font-weight: 600;
    border-top: 3px solid #667eea !important;
}

.summary-label {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 700;
}

.percentage-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
    line-height: 1.2;
}

.yes-percentage {
    color: #166534;
    font-weight: 600;
}

.no-percentage {
    color: #991b1b;
    font-weight: 600;
}

/* Mobile responsive adjustments for summary row */
@media (max-width: 768px) {
    .percentage-summary {
        font-size: 0.7rem;
    }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .detailed-results-content {
        padding: 16px;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .summary-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .table-scroll {
        max-height: 60vh;
    }
    
    .detailed-results-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .detailed-results-table th,
    .detailed-results-table td {
        padding: 8px 6px;
    }
    
    .sticky-col.name-col {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .sticky-col.score-col {
        left: 200px;
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .question-col {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .detailed-results-table .question-text {
        font-size: 0.6rem;
        max-width: 80px;
    }
    
    .participant-avatar-small {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .table-scroll {
        max-height: 50vh;
    }
    
    .detailed-results-table {
        min-width: 500px;
    }
    
    .sticky-col.name-col {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .sticky-col.score-col {
        left: 180px;
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }
    
    .question-col {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .question-header {
        gap: 2px;
    }
    
    .detailed-results-table .question-text {
        font-size: 0.55rem;
        max-width: 60px;
    }
    
    .answer-badge, .score-badge, .sum-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        min-width: 28px;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 4px;
    }
}

/* Landing Page Modern Design - No Boxes, Clean & Spacious */

/* Landing Page Specific Body */
.landing-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Hero Section */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 24px 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 56px 0;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Landing page hero buttons - special styling for gradient background */
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 40px;
    border-radius: 16px;
    min-width: 280px;
    text-align: center;
}

.hero-actions .btn-primary {
    background: white;
    color: #667eea;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.btn-subtext {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 400;
}

.hero-actions .btn-primary:disabled,
.hero-actions .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Main Content */
.landing-main {
    background: white;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Spacing */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #475569;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Intro Section */
.section-intro {
    padding-top: 120px;
    border-bottom: 1px solid #e2e8f0;
}

/* How It Works Section */
.section-how {
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.step {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.step p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Why It Matters Section */
.section-why {
    background: #f8fafc;
}

.section-why .section-lead {
    max-width: 900px;
}

/* Features Section - DEPRECATED */
.section-features {
    background: #f8fafc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.feature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.feature p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Impact Section */
.section-impact {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.impact-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.impact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.impact-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 40px;
}

.impact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.impact-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.impact-link svg {
    transition: transform 0.3s ease;
}

.impact-link:hover svg {
    transform: translateX(4px);
}

/* Creator Section */
.section-creator {
    background: #f8fafc;
}

.creator-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.creator-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.creator-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 24px 0;
}

.creator-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
}

.creator-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.creator-links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.link-separator {
    color: #cbd5e1;
}

/* Sponsor Section */
.section-sponsor {
    background: white;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.sponsor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.sponsor-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.sponsor-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

/* Attribution Section */
.section-attribution {
    padding: 60px 0;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.section-attribution .attribution-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.section-attribution .attribution-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.section-attribution .attribution-text a:hover {
    text-decoration: underline;
}

/* Footer */
.landing-footer {
    background: #1e293b;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
}

.footer-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-main {
    font-size: 0.95rem;
}

.footer-main a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-main a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        min-width: 100%;
        padding: 20px 32px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .content-wrapper {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-lead {
        font-size: 1.125rem;
    }
    
    .section-intro {
        padding-top: 80px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 40px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .step h3 {
        font-size: 1.25rem;
    }
    
    .step p {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }
    
    .feature h3 {
        font-size: 1.25rem;
    }
    
    .feature p {
        font-size: 1rem;
    }
    
    .impact-title {
        font-size: 1.75rem;
    }
    
    .impact-description {
        font-size: 1.125rem;
    }
    
    .creator-text h3 {
        font-size: 1.5rem;
    }
    
    .creator-text p {
        font-size: 1rem;
    }
    
    .creator-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .link-separator {
        display: none;
    }
    
    .sponsor-logo {
        max-width: 220px;
    }
    
    .footer-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 0 24px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .btn-text {
        font-size: 1.125rem;
    }
    
    .btn-subtext {
        font-size: 0.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-lead {
        font-size: 1rem;
    }
    
    .steps-container {
        gap: 40px;
    }
    
    .sponsor-logo {
        max-width: 180px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .step h3 {
        font-size: 1.15rem;
    }
    
    .step p {
        font-size: 0.95rem;
    }
    
    .impact-title {
        font-size: 1.5rem;
    }
    
    .impact-description {
        font-size: 1rem;
    }
    
    .impact-link {
        font-size: 1rem;
        padding: 14px 24px;
    }
}


/* Dashboard Page Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 0 20px;
}

.dashboard-header h1 {
    color: #1e293b;
    margin: 0;
    font-size: 2.5rem;
}

.dashboard-header .quota-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.dashboard-header .quota-info.at-limit {
    background: #fef2f2;
    color: #dc2626;
}

.dashboard-header .quota-text {
    white-space: nowrap;
}

/* Quota Banner Styles */
.quota-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 0 20px 24px 20px;
    display: flex;
    align-items: start;
    gap: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-icon i {
    width: 24px;
    height: 24px;
}

.banner-content {
    flex: 1;
}

.banner-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.banner-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    color: white;
}

.banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.banner-close i {
    width: 20px;
    height: 20px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}


.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}


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

/* Question Review Button */
.question-review-btn {
    width: 100%;
    background: white;
    border: 2px dashed #a5b4fc;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    margin: 12px 0;
}

.question-review-btn:hover {
    background: #f8fafc;
    border-color: #818cf8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.question-review-btn-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.question-review-icon {
    color: #667eea;
    flex-shrink: 0;
}

.question-review-text {
    text-align: left;
    flex: 1;
}

.question-review-title {
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.question-review-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 400;
}

.question-review-chevron {
    color: #94a3b8;
    flex-shrink: 0;
}

.question-review-btn:hover .question-review-chevron {
    color: #667eea;
}

/* Events Container */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 0 20px;
    margin-bottom: 60px;
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .events-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .events-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.event-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.event-date {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.event-card-body {
    margin-bottom: 20px;
}

.event-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.event-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-link-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.event-link-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8fafc;
    color: #64748b;
    font-family: monospace;
    margin: 0;
}

.copy-link-btn {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 10px 12px;
    min-width: 44px;
    font-size: 1.125rem;
    box-shadow: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-link-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.event-pin-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.event-pin-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8fafc;
    color: #64748b;
    font-family: monospace;
    margin: 0;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.copy-pin-btn {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 10px 12px;
    min-width: 44px;
    font-size: 1.125rem;
    box-shadow: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-pin-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.event-card-footer {
    display: flex;
    gap: 8px;
}

.view-details-btn {
    flex: 1;
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.view-details-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.delete-event-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.delete-event-btn i {
    width: 16px;
    height: 16px;
}

.delete-event-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.duplicate-event-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.duplicate-event-btn i {
    width: 16px;
    height: 16px;
}

.duplicate-event-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: white;
    border-radius: 16px;
    margin: 0 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

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

.empty-state h2 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.empty-state p {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0 0 32px 0;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.loading-state p {
    color: #1e293b;
    font-size: 1.125rem;
    margin: 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        margin: 24px 0;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .dashboard-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .events-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .empty-state {
        margin: 0 16px;
        padding: 60px 20px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state h2 {
        font-size: 1.5rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
    
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
    
    .event-card {
        padding: 20px;
    }
    
    .event-title {
        font-size: 1.125rem;
    }
    
    .event-stats {
        gap: 12px;
    }
    
    .event-stat {
        padding: 10px;
    }
    
    .stat-icon {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.125rem;
    }
    
    .event-link-input {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .copy-link-btn {
        padding: 8px 10px;
        min-width: 40px;
        font-size: 1rem;
    }
}

/* Event Creation Page Styles */
.create-form {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.create-form h1 {
    color: #1e293b;
    margin-bottom: 16px;
    text-align: left;
}

.form-description {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Quota Display Styles */
.quota-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.quota-info.quota-warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.quota-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

#quotaDisplay {
    color: #0c4a6e;
    font-weight: 600;
}

.quota-info.quota-warning #quotaDisplay {
    color: #991b1b;
}

.quota-remaining {
    color: #0369a1;
    font-weight: 500;
}

.quota-info.quota-warning .quota-remaining {
    color: #dc2626;
}

.quota-message {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.5;
}

.quota-info.quota-warning .quota-message {
    border-top-color: #fecaca;
    color: #991b1b;
}

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

.form-group label {
    display: block;
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group .required {
    color: #ef4444;
}

.field-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.char-counter {
    text-align: right;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 4px;
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 40px;
}

/* Form buttons use the standard .btn classes now */

/* Event Created Success View */
.event-created {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    color: #10b981;
}

.success-icon i {
    width: 64px;
    height: 64px;
    stroke-width: 2;
}

.event-created h1 {
    color: #1e293b;
    margin-bottom: 16px;
}

.success-description {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.6;
}

.event-details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.detail-group {
    margin-bottom: 24px;
}

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

.detail-group label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Questions Selection Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 32px 32px 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #64748b;
}

.modal-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-info {
    margin-bottom: 24px;
}

.modal-info p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.question-counter {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.question-counter span {
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    gap: 16px;
}

.question-item.enabled {
    background: #f0fdf4;
    border-color: #86efac;
}

.question-item.disabled {
    background: #fef2f2;
    border-color: #fecaca;
    opacity: 0.7;
}

.question-text {
    flex: 1;
    color: #334155;
    line-height: 1.5;
    font-size: 0.95rem;
}

.toggle-question-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toggle-question-btn:hover {
    background: #667eea;
    color: white;
}

.question-item.disabled .toggle-question-btn {
    color: #10b981;
    border-color: #10b981;
}

.question-item.disabled .toggle-question-btn:hover {
    background: #10b981;
    color: white;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.modal-footer-actions {
    display: flex;
    gap: 16px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-form,
    .event-created {
        padding: 32px 24px;
    }
    
    .form-actions,
    .success-actions {
        flex-direction: column;
    }
    
    .form-actions button,
    .success-actions button {
        width: 100%;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 24px 20px;
    }
    
    .question-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toggle-question-btn {
        width: 100%;
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

/* Free Play Analytics Styles */
.analytics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.analytics-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

.analytics-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
}

/* Score Comparison Section */
.score-comparison .score-highlight {
    text-align: center;
    margin-bottom: 32px;
}

.user-score-large {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin: 16px 0;
}

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

.stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

/* Score Distribution Histogram */
.histogram-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-height: 300px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
}

.histogram-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 40px;
}

.histogram-bar {
    width: 100%;
    min-height: 20px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 8px 8px 0 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    transition: all 0.3s ease;
}

.histogram-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.histogram-bar.user-score {
    background: linear-gradient(to top, #10b981, #34d399);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.bar-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.histogram-label {
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.histogram-label.user-score-label {
    color: #10b981;
    font-weight: 700;
}

.user-indicator {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Question Comparison Section */
.question-stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.question-stat-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.question-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.question-value {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 16px;
}

.answer-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.answer-label {
    min-width: 80px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.answer-label.user-answer {
    color: #10b981;
    font-weight: 700;
}

.answer-bar-wrapper {
    flex: 1;
    background: #e2e8f0;
    border-radius: 8px;
    height: 32px;
    overflow: hidden;
}

.answer-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 0.5s ease;
}

.answer-bar.yes-bar {
    background: linear-gradient(to right, #667eea, #764ba2);
}

.answer-bar.no-bar {
    background: linear-gradient(to right, #94a3b8, #64748b);
}

.answer-percentage {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 32px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    color: #94a3b8;
}

.empty-state-icon i {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.empty-state h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.empty-state-message {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-tip {
    font-size: 1rem;
    color: #94a3b8;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .analytics-container {
        padding: 12px;
    }
    
    .analytics-section {
        padding: 16px;
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .analytics-section h2 {
        font-size: 1.5rem;
    }
    
    .user-score-large {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .histogram-chart {
        justify-content: flex-start;
        padding: 12px;
        min-height: 250px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .histogram-bar-container {
        min-width: 24px;
        flex-shrink: 0;
    }
    
    .histogram-label {
        font-size: 0.75rem;
    }
    
    .bar-count {
        font-size: 0.7rem;
    }
    
    .user-indicator {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .question-stat-card {
        padding: 16px;
    }
    
    .question-stat-card .question-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .answer-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .answer-label {
        min-width: auto;
    }
    
    .answer-bar-wrapper {
        width: 100%;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .analytics-container {
        padding: 8px;
    }
    
    .analytics-section {
        padding: 12px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .analytics-section h2 {
        font-size: 1.25rem;
    }
    
    .histogram-chart {
        padding: 8px;
        gap: 3px;
        min-height: 200px;
    }
    
    .histogram-bar-container {
        min-width: 20px;
    }
    
    .histogram-label {
        font-size: 0.7rem;
    }
    
    .bar-count {
        font-size: 0.65rem;
    }
    
    .question-stat-card {
        padding: 12px;
    }
    
    .question-stat-card .question-text {
        font-size: 0.9rem;
    }
    
    .question-value {
        font-size: 0.8rem;
    }
}

/* Ally Tips Section */
.ally-tips-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 48px;
    margin: 32px auto;
    max-width: 900px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ally-tips-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ally-tips-left {
    flex: 1;
}

.ally-tips-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ally-tips-intro {
    font-size: 1rem;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

.ally-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ally-tip-item {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.6;
    border-left: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: none;
}

.ally-tip-bullet {
    font-size: 1.2rem;
    color: #a78bfa;
    flex-shrink: 0;
    margin-top: 2px;
}

.ally-tip-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

.ally-tip-item a {
    color: #a5b4fc;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ally-tip-item a:hover {
    color: #c7d2fe;
}

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

/* Learning Resources Section */
.learning-resources {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
}

.learning-resources h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.resource-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-arrow {
    color: #a78bfa;
    font-size: 1.2rem;
}

.resource-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    text-align: center;
}

/* Share Quiz Button */
.share-quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6366f1;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.share-quiz-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.share-quiz-btn svg {
    flex-shrink: 0;
}

.share-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* Mobile responsive for ally tips */
@media (max-width: 768px) {
    .ally-tips-section {
        padding: 32px 24px;
        margin: 24px 0;
    }
    
    .ally-tips-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .ally-tips-section h2 {
        font-size: 1.5rem;
    }
    
    .ally-tips-intro {
        font-size: 0.95rem;
    }
    
    .ally-tip-item {
        margin-bottom: 20px;
        font-size: 0.95rem;
    }
    
    .learning-resources {
        padding: 24px;
    }
    
    .learning-resources h3 {
        font-size: 1.25rem;
    }
}

/* Event Details Modal Styles */
.event-details-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.event-details-section {
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.event-details-section:last-of-type {
    border-bottom: none;
}

.event-details-section h3 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.info-value[href] {
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
    align-self: flex-start;
    min-height: 0;
    text-align: left;
}

.info-value[href]:hover {
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
}

.participants-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s;
}

.participant-item:hover {
    background: #e2e8f0;
}

.participant-rank {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    min-width: 40px;
    text-align: center;
}

.participant-item .participant-avatar {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
}

.participant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.participant-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.participant-score {
    font-size: 0.875rem;
    color: #64748b;
}

.no-participants {
    text-align: center;
    padding: 32px;
    color: #64748b;
}

.event-details-actions {
    padding: 24px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
}

.event-details-actions button {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Mobile responsive for event details modal */
@media (max-width: 768px) {
    .event-details-modal {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .event-details-section {
        padding: 16px 20px;
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .participants-list {
        max-height: 300px;
    }
    
    .event-details-actions {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .event-details-actions button {
        width: 100%;
    }
}


/* ============================================
   Questions Page Redesign - Clean Light Theme
   ============================================ */

/* Light background for questions page */
.questions-page-body {
    background: #f0f2f5;
    padding: 0;
}

.questions-page-body .container {
    padding: 0 20px;
}

/* Logo adjustments for light background */
.questions-page-logo {
    background: transparent;
    padding: 20px 40px;
    border-bottom: none;
    text-align: left;
}

.questions-page-logo .logo-small-line-2,
.questions-page-logo .logo-small-line-3 {
    color: #667eea;
    text-shadow: none;
}

/* Event title on light background */
.questions-page-body #eventContent #eventTitle {
    color: #1e293b;
}

/* Participant card redesign */
.questions-page-body .participant-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 24px;
    padding: 40px 32px 32px;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.questions-page-body .participant-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.questions-page-body .avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
}

.participant-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

/* Progress redesign */
.questions-page-body .progress-container {
    margin-top: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.questions-page-body .progress-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.progress-percentage {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.questions-page-body .progress-bar {
    background: rgba(255, 255, 255, 0.25);
    height: 6px;
    border-radius: 3px;
}

.questions-page-body .progress-fill {
    background: white;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.questions-page-body .progress-text {
    display: none;
}

/* Question blocks redesign */
.questions-page-body .question-block {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: none;
    animation: fadeInUp 0.4s ease-out both;
}

.questions-page-body .question-block:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Question header with number badge */
.question-header-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}

.question-number-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cbd5e1;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: background 0.3s ease;
}

.question-number-badge.answered {
    background: #8b5cf6;
}

.question-header-row h4 {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Yes/No buttons redesign */
.questions-page-body .question-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.questions-page-body .question-option {
    padding: 16px 24px;
    background: #f0f2f5;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
    min-height: 52px;
}

.questions-page-body .question-option:hover {
    background: #e8eaed;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.questions-page-body .question-option.selected {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    transform: none;
}

.questions-page-body .question-option.selected:hover {
    background: #7c3aed;
    transform: none;
}

/* Results link on light background */
.questions-page-body .results-link a {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.questions-page-body .results-link a:hover {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.questions-page-body .results-link a.disabled {
    background: #e8eaed;
    color: #94a3b8;
    border-color: #e8eaed;
}

/* Footer on light background */
.questions-page-body .footer {
    border-top: 1px solid #e2e8f0;
}

.questions-page-body .footer-content {
    color: #94a3b8;
}

.questions-page-body .footer-content a {
    color: #8b5cf6;
}

/* Sidebar adjustments */
.questions-page-body .sidebar {
    top: 20px;
}

/* Event layout spacing */
.questions-page-body .event-layout {
    padding-top: 20px;
}

/* PIN entry on light background */
.questions-page-body #pinContainer h1 {
    color: #1e293b;
}

/* Mobile responsive for questions page */
@media (max-width: 768px) {
    .questions-page-body .question-block {
        padding: 24px 20px;
        margin: 16px 0;
        border-radius: 16px;
    }

    .question-number-badge {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .question-header-row {
        gap: 12px;
    }

    .questions-page-body .question-options {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .questions-page-body .question-option {
        padding: 14px 16px;
        min-height: 48px;
        width: auto;
    }

    .questions-page-body .participant-card {
        padding: 32px 24px 24px;
    }

    .avatar-wrapper {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 480px) {
    .question-header-row h4 {
        font-size: 0.95rem;
    }
}

/* Rename Event Modal */
#renameEventModal .modal-content {
    max-width: 500px;
}

#renameEventModal input {
    margin: 0;
}

#renameEventModal .modal-body p {
    margin-bottom: 16px;
}

/* Danger button for delete actions */
.danger-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.danger-btn:active {
    transform: translateY(0);
}

/* Delete Event Modal */
#deleteEventModal .modal-content {
    max-width: 500px;
}

#deleteEventModal .modal-body p {
    margin-bottom: 8px;
}


/* ============================================
   DEBRIEF SECTIONS
   Personalized results debrief styling
   ============================================ */

/* Stat Cards Container */
.stat-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* Individual Stat Card */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Primary Stat Card (Total Score) */
.stat-card-primary {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-top: 4px solid #667eea;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid #e2e8f0;
}

.stat-card-primary:hover {
    border-top-color: #764ba2;
}

/* Stat Card Icon */
.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-card-icon svg {
    color: #667eea;
}

.stat-card-icon-orange {
    background: rgba(251, 146, 60, 0.1);
}

.stat-card-icon-orange svg {
    color: #fb923c;
}

.stat-card-icon-green {
    background: rgba(16, 185, 129, 0.1);
}

.stat-card-icon-green svg {
    color: #10b981;
}

/* Stat Card Label */
.stat-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* Stat Card Value */
.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-card-primary .stat-card-value {
    font-size: 3rem;
    color: #667eea;
}

/* Stat Card Subtitle */
.stat-card-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-card-subtitle-orange {
    color: #fb923c;
}

.stat-card-subtitle-green {
    color: #10b981;
}

/* Stat Card Description */
.stat-card-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Stat Card Badge */
.stat-card-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 12px;
}

/* Responsive Stat Cards */
@media (max-width: 1024px) {
    .stat-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stat-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card-value {
        font-size: 1.75rem;
    }
    
    .stat-card-primary .stat-card-value {
        font-size: 2.5rem;
    }
}

/* Main debrief container */
.debrief-container {
    margin: 32px auto;
    max-width: 900px;
    overflow-x: hidden;
}

/* Individual debrief section */
.debrief-section {
    background: white;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow-x: hidden;
}

.debrief-section h2 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0 28px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Score meaning section - card with strong visual presence */
.debrief-section.score-meaning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: visible;
}

.debrief-section.score-meaning h2 {
    color: rgba(255, 255, 255, 0.9);
}



.debrief-content {
    position: relative;
    z-index: 1;
}

.debrief-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.debrief-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Response analysis section */
.debrief-section.response-analysis {
    background: #ffffff;
    padding: 48px;
}

.response-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Individual response card - clean card design */
.response-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 32px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.response-card:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    border-color: #cbd5e1;
    transform: translateY(-4px);
    background: white;
}

.response-card .question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 16px;
    /* Reset table-specific overrides */
    max-width: none;
    max-height: none;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
}

.response-card .your-answer {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 18px;
    border-radius: 24px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.response-card .explanation {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

/* Modal-specific debrief container (compact) */
.modal-debrief .debrief-section {
    padding: 32px;
    margin-bottom: 20px;
}

.modal-debrief .debrief-section h2 {
    font-size: 0.7rem;
    margin-bottom: 20px;
}

.modal-debrief .response-card {
    padding: 24px;
}

/* Category-specific colors for score meaning section */
.debrief-section.score-meaning[data-category="low"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.25);
}

.debrief-section.score-meaning[data-category="neutral"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.debrief-section.score-meaning[data-category="high"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
}

/* Category badge */


/* Mobile responsive */
@media (max-width: 768px) {
    .debrief-container {
        margin: 24px 0;
    }

    .debrief-section {
        padding: 32px 24px;
        margin-bottom: 24px;
        border-radius: 20px;
    }

    .debrief-section h2 {
        font-size: 0.7rem;
        margin-bottom: 20px;
    }
    
    .debrief-section.response-analysis {
        padding: 32px;
    }

    .debrief-content h3 {
        font-size: 1.4rem;
    }

    .debrief-content p {
        font-size: 1rem;
    }

    .response-card {
        padding: 24px 20px;
    }

    .response-card .question-text {
        font-size: 1rem;
    }

    .response-card .explanation {
        font-size: 0.95rem;
    }

    .modal-debrief .debrief-section {
        padding: 24px 20px;
    }
    

}

@media (max-width: 480px) {
    .debrief-section {
        padding: 24px 20px;
    }
    
    .debrief-section.response-analysis {
        padding: 24px;
    }

    .debrief-section h2 {
        font-size: 0.65rem;
    }

    .debrief-content h3 {
        font-size: 1.2rem;
    }

    .response-card {
        padding: 20px 16px;
    }

    .response-card .your-answer {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    

}

/* ============================================
   SCORE PAGE STYLES
   ============================================ */

/* Score page body styling */
body.score-page {
    padding: 0;
    background: #f8fafc;
    overflow-x: hidden;
}

/* Main score page layout container */
.score-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Score page header */
.score-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.score-header .logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

.score-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Score page content area */
.score-content {
    margin-bottom: 2rem;
}

/* Participant header section */
.participant-header {
    text-align: center;
    margin-bottom: 2rem;
}

.participant-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    
    border-radius: 12px;
    
}

.participant-avatar-large {
    font-size: 5rem;
    line-height: 1;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.participant-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Score page action buttons */
.score-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.score-actions button {
    flex: 0 1 auto;
    min-width: 200px;
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    .score-layout {
        max-width: 900px;
        padding: 1.5rem;
    }
    
    .score-header h1 {
        font-size: 2rem;
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .score-layout {
        padding: 1rem;
    }
    
    .score-header {
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
    
    .score-header h1 {
        font-size: 1.75rem;
    }
    
    .participant-avatar-large {
        font-size: 4rem;
        width: 100px;
        height: 100px;
    }
    
    .participant-name {
        font-size: 1.5rem;
    }
    
    .score-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem 0;
    }
    
    .score-actions button {
        width: 100%;
        min-width: auto;
    }
}

/* Responsive design for small mobile */
@media (max-width: 480px) {
    .score-layout {
        padding: 0.75rem;
    }
    
    .score-header {
        margin-bottom: 1rem;
        padding: 0.75rem 0;
    }
    
    .score-header h1 {
        font-size: 1.5rem;
    }
    
    .score-header .logo {
        font-size: 1rem;
    }
    
    .participant-avatar-large {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    
    .participant-name {
        font-size: 1.25rem;
    }
    
    .participant-info {
        padding: 1.5rem;
    }
    
    .score-content {
        margin-bottom: 1.5rem;
    }
    
    .score-actions {
        padding: 1rem 0;
    }
}
