* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Hero Section */
.hero {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    color: #1e293b;
    margin-bottom: 24px;
    padding: 40px 32px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #64748b;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #374151;
    font-weight: 500;
}

.detail-item svg {
    color: #3b82f6;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.admin-link:hover {
    background: #2563eb;
}

/* Main Content */
.main-content {
    display: grid;
    gap: 24px;
}

.registration-section,
.stats-section,
.attendees-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e2e8f0;
}

.registration-section h2,
.stats-section h2,
.attendees-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #0f172a;
    text-align: center;
}

/* Form Styles */
.registration-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Input Container */
.input-container {
    position: relative;
}

/* Validation Indicator */
.validation-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.validation-indicator.show {
    display: flex;
}

.validation-indicator.validating {
    color: #f59e0b;
}

.validation-indicator.validating svg {
    animation: spin 1s linear infinite;
}

.validation-indicator.valid {
    color: #059669;
}

.validation-indicator.invalid {
    color: #dc2626;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    background: #f8fafc;
}

.option-card:hover {
    border-color: #3b82f6;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.option-header svg {
    color: #3b82f6;
}

.option-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Sub Options */
.sub-options {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.2s;
}

.radio-label:hover {
    color: #374151;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-mark {
    border-color: #3b82f6;
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3b82f6;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #2563eb;
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.privacy-notice svg {
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* Attendees List */
.attendees-list {
    display: grid;
    gap: 16px;
}

.attendee-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.attendee-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.attendee-name {
    font-weight: 600;
    color: #0f172a;
}

.attendee-phone {
    color: #64748b;
    font-size: 0.9rem;
}

.attendee-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.eating {
    background: #dbeafe;
    color: #1e40af;
}

.tag.activity {
    background: #fef3c7;
    color: #92400e;
}

.tag.drinks {
    background: #d1fae5;
    color: #065f46;
}

.tag.later {
    background: #e0e7ff;
    color: #3730a3;
}

/* Notification */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #059669;
}

.notification.error {
    background: #dc2626;
}

/* No attendees state */
.no-attendees {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-style: italic;
}

.no-attendees p {
    font-size: 1.1rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

/* Update Notification */
.update-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.update-notification.show {
    display: flex;
}

.update-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.update-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.update-header svg {
    color: #3b82f6;
    animation: spin 2s linear infinite;
}

.update-header h3 {
    color: #0f172a;
    margin: 0;
    font-size: 1.3rem;
}

.update-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.update-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.update-features span {
    color: #059669;
    font-weight: 500;
    font-size: 0.9rem;
}

.update-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.update-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.update-btn.primary {
    background: #3b82f6;
    color: white;
}

.update-btn.primary:hover {
    background: #2563eb;
}

.update-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.update-btn.secondary:hover {
    background: #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .hero {
        padding: 32px 24px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .event-details {
        gap: 16px;
    }
    
    .detail-item {
        padding: 10px 16px;
    }
    
    .registration-section,
    .stats-section,
    .attendees-section {
        padding: 24px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .attendee-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .attendee-tags {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .event-details {
        flex-direction: column;
        align-items: center;
    }
    
    .update-buttons {
        flex-direction: column;
    }
}
