/* SignupGadget Styles */

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

:root {
    --bg: #f8f6f1;
    --bg-gradient: linear-gradient(180deg, #f8f6f1 0%, #f0ebe3 100%);
    --card: white;
    --card-border: rgba(139,168,134,0.15);
    --text: #2d3a2e;
    --text-muted: #6b7c6c;
    --text-faint: #9a9a9a;
    --input: white;
    --input-border: #e8e4dc;
    --accent: #6b8f66;
    --accent-light: rgba(139,168,134,0.1);
}

.dark-mode {
    --bg: #1a1d1a;
    --bg-gradient: linear-gradient(180deg, #1a1d1a 0%, #252825 100%);
    --card: #252825;
    --card-border: rgba(139,168,134,0.2);
    --text: #e8e6e1;
    --text-muted: #9a9d9a;
    --text-faint: #6a6d6a;
    --input: #1a1d1a;
    --input-border: #3a3d3a;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
    }
    
    /* Header mobile */
    .header {
        padding: 12px 16px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .header-link {
        display: none; /* Hide About on mobile */
    }
    
    .header-nav .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Form layout fixes */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* All date/time inputs full width on mobile */
    input[type="date"],
    input[type="time"] {
        width: 100% !important;
        max-width: none !important;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Schedule builder mobile */
    .schedule-builder-box {
        padding: 16px;
    }
    
    .schedule-builder-box .form-row {
        grid-template-columns: 1fr;
    }
    
    .schedule-builder-box input[type="date"] {
        max-width: none;
        width: 100%;
    }
    
    .duration-row .form-select,
    .duration-row .form-input {
        width: 100% !important;
        max-width: none !important;
    }
    
    .schedule-options-row {
        gap: 12px;
    }
    
    /* Volunteer shift rows */
    .volunteer-shift-row {
        flex-wrap: wrap;
        position: relative;
        padding-right: 40px;
    }
    
    .volunteer-shift-row .shift-name,
    .volunteer-shift-row .shift-time {
        flex: 1 1 calc(100% - 40px);
        min-width: 0;
    }
    
    .volunteer-shift-row .shift-remove {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Meal checkboxes */
    .meal-checkboxes {
        flex-wrap: wrap;
    }
    
    /* Calendar grid mobile */
    .calendar-day {
        font-size: 12px;
    }
    
    /* Event type grid */
    .event-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Slot rows */
    .slot-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .slot-row .form-input {
        flex: 1 1 100%;
    }
    
    /* Card padding */
    .card {
        padding: 20px 16px;
    }
}

/* Header */
.header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    background: rgba(248,246,241,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dark-mode .header {
    background: rgba(26,29,26,0.9);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8ba886 0%, #6b8f66 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(107,143,102,0.3);
}

.logo-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:hover {
    opacity: 0.92;
}

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

.btn-primary {
    background: linear-gradient(135deg, #8ba886 0%, #6b8f66 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107,143,102,0.3);
}

.btn-secondary {
    background: var(--accent-light);
    color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-icon {
    padding: 10px;
    font-size: 18px;
}

.btn-small, .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-disabled {
    background: #d4d4d4;
    cursor: not-allowed;
}

/* Header link */
.header-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.header-link:hover {
    color: var(--text);
    background: rgba(0,0,0,0.05);
}

/* Cards */
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.card-title {
    font-size: 18px;
    margin-bottom: 16px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.form-label-optional {
    font-weight: 400;
    color: var(--text-faint);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--input);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-faint);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.checkbox-label.small {
    padding: 8px 12px;
    font-size: 14px;
}

.checkbox-label.checked {
    background: var(--accent-light);
    border-color: var(--accent);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Event Type Cards */
.event-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 48px;
}

.event-type-card {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
}

.event-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.event-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.event-type-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.event-type-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Demo Cards */
.demo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 48px;
}

.demo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s;
}

.demo-card:hover {
    background: var(--accent-light);
}

.demo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.demo-content {
    flex: 1;
    min-width: 0;
}

.demo-title {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Slots */
.slots-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-section {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.category-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.slot-card {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--card-border);
    margin-bottom: 10px;
}

.slot-card.full {
    opacity: 0.85;
}

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

.slot-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.slot-badge {
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
}

.slot-badge.open {
    background: var(--bg);
    color: var(--text-muted);
}

.slot-badge.full {
    background: var(--accent);
    color: white;
}

.signups-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.signup-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
}

.signup-chip .remove-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0 0 0 3px;
    font-size: 13px;
}

.signup-chip .remove-btn:hover {
    color: #c53030;
}

.guest-card .remove-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}

.guest-card .remove-btn:hover {
    color: #c53030;
}

.signup-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.signup-form-input {
    flex: 1;
    min-width: 160px;
}

.signup-form-input .form-input {
    padding: 9px 11px;
    font-size: 13px;
}

.signup-form-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
    cursor: pointer;
}

/* RSVP */
.rsvp-options {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.rsvp-option {
    flex: 1;
    padding: 11px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.rsvp-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.guest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guest-group {
    margin-bottom: 18px;
}

.guest-group-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.guest-group-title.yes { color: #22c55e; }
.guest-group-title.maybe { color: #eab308; }
.guest-group-title.no { color: #ef4444; }

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

.guest-name {
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
}

.guest-plus {
    margin-left: 6px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--card);
    padding: 2px 6px;
    border-radius: 8px;
}

.guest-message {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Secret Santa */
.santa-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.santa-info-card {
    background: var(--card);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--card-border);
    text-align: center;
}

.santa-info-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.santa-info-value {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

.participant-card {
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.participant-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
    font-size: 14px;
}

.participant-wishlist {
    font-size: 12px;
    color: var(--text-muted);
}

.participant-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.reveal-box {
    border-radius: 16px;
    padding: 22px;
    border: 2px solid;
}

.reveal-result {
    margin-top: 18px;
    padding: 18px;
    background: var(--card);
    border-radius: 12px;
    text-align: center;
}

.reveal-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.feature-card {
    padding: 16px;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 18px;
}

.feature-text {
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
}

/* Privacy Note */
.privacy-note {
    margin-top: 24px;
    padding: 14px;
    background: var(--accent-light);
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
    font-size: 13px;
    color: var(--text-faint);
    background: var(--card-bg);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-privacy {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-tagline {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-faint);
}

/* Static Pages */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.static-page h1 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.static-page .card {
    margin-bottom: 20px;
}

.static-page .card h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.static-page .card h3 {
    font-size: 16px;
    color: var(--text);
}

.static-page .card p {
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.static-page .card p:last-child {
    margin-bottom: 0;
}

.static-page .card a {
    color: var(--accent);
}

.static-page .card ul,
.static-page .card ol {
    color: var(--text-muted);
}

.static-page details summary {
    color: var(--text);
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Title */
.section-title {
    font-size: 20px;
    margin-bottom: 16px;
}

/* Success View */
.success-view {
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.success-desc {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 16px;
}

.share-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 12px;
}

.share-link {
    flex: 1;
    font-size: 14px;
    color: var(--text-muted);
    font-family: monospace;
    word-break: break-all;
    text-align: left;
}

/* Event Header */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.event-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.event-title {
    font-size: 22px;
    margin: 0;
}

.event-desc {
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.5;
    font-size: 14px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.event-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 0;
}

.back-btn:hover {
    color: var(--text);
}

/* Type Switcher */
.type-switcher {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 4px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.type-switcher-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.type-switcher-btn.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Slot Builder */
.slot-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.slot-row .form-select {
    min-width: 130px;
    padding: 10px 12px;
    font-size: 14px;
}

.slot-row .form-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 12px;
    font-size: 14px;
}

.slot-row .capacity-input {
    width: 55px;
    text-align: center;
}

.slot-remove {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    font-size: 16px;
}

/* Duration row in schedule builder */
.duration-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.duration-row .form-select {
    width: auto;
    flex-shrink: 0;
}

.duration-row .form-input {
    flex-shrink: 0;
}

/* Schedule options row (people per slot + skip weekends) */
.schedule-options-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.schedule-options-row .checkbox-label {
    margin-bottom: 4px;
}

/* Constrain date inputs in schedule builder */
.schedule-builder-box input[type="date"] {
    max-width: 180px;
}

.add-slot-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 2px dashed var(--input-border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

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

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

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

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Event type link cards */
.static-page a[href*="/signup-sheets"],
.static-page a[href*="/potluck"],
.static-page a[href*="/volunteer"],
.static-page a[href*="/tasks"],
.static-page a[href*="/supplies"],
.static-page a[href*="/meal-train"],
.static-page a[href*="/party"],
.static-page a[href*="/secret-santa"],
.static-page a[href*="/raffle"] {
    display: block;
}

.static-page a[href*="/signup-sheets"]:hover,
.static-page a[href*="/potluck"]:hover,
.static-page a[href*="/volunteer"]:hover,
.static-page a[href*="/tasks"]:hover,
.static-page a[href*="/supplies"]:hover,
.static-page a[href*="/meal-train"]:hover,
.static-page a[href*="/party"]:hover,
.static-page a[href*="/secret-santa"]:hover,
.static-page a[href*="/raffle"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Desktop Large Screen Styles */
@media (min-width: 1200px) {
    body {
        font-size: 17px;
    }
    
    .container {
        max-width: 800px;
    }
    
    .header {
        padding: 18px 32px;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .card {
        padding: 28px;
        border-radius: 18px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .event-title {
        font-size: 28px;
    }
    
    .event-desc {
        font-size: 16px;
    }
    
    .event-meta {
        font-size: 15px;
        gap: 20px;
    }
    
    .event-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input, .form-textarea {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .btn-small {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .slot-card {
        padding: 20px;
    }
    
    .slot-title {
        font-size: 17px;
    }
    
    .signup-chip {
        padding: 7px 14px;
        font-size: 14px;
    }
    
    .category-header {
        font-size: 16px;
    }
    
    .category-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    
    .guest-card {
        padding: 16px;
    }
    
    .guest-name {
        font-size: 16px;
    }
    
    .privacy-note {
        font-size: 14px;
        padding: 18px;
    }
    
    .footer {
        font-size: 14px;
        padding: 28px;
    }
    
    .type-card {
        padding: 22px;
    }
    
    .type-card h3 {
        font-size: 17px;
    }
    
    .type-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .success-title {
        font-size: 30px;
    }
    
    .success-desc {
        font-size: 17px;
    }
    
    .share-link {
        font-size: 15px;
        padding: 14px 16px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--input-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--input-border);
}

/* Print Styles */
@media print {
    .header, .footer, .btn, .event-actions, .signup-form, .add-slot-btn, .back-btn {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* Schedule Calendar */
.schedule-calendar {
    margin-top: 12px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.calendar-header span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: default;
    padding: 2px;
    min-width: 32px;
}

.calendar-day.out-of-range {
    color: var(--text-muted);
    opacity: 0.3;
}

.calendar-day.weekend-skipped {
    background: var(--bg);
    color: var(--text-muted);
    text-decoration: line-through;
}

.calendar-day.active {
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.calendar-day.active:hover {
    opacity: 0.8;
}

.calendar-day.skipped {
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    text-decoration: line-through;
}

.calendar-day.skipped:hover {
    background: #fecaca;
}

[data-theme="dark"] .calendar-day.skipped {
    background: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .calendar-day.skipped:hover {
    background: #991b1b;
}

/* Signup note display */
.signup-note {
    font-style: italic;
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 4px;
}

/* Signup form adjustments */
.signup-form-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.signup-form-input .signup-note {
    font-style: normal;
    color: var(--text);
}

/* Volunteer shifts list */
.volunteer-shifts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.volunteer-shift-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.volunteer-shift-row .shift-name {
    flex: 1;
    min-width: 120px;
}

.volunteer-shift-row .shift-time {
    flex: 1;
    min-width: 120px;
}

.volunteer-shift-row .shift-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.volunteer-shift-row .shift-remove:hover {
    background: #fecaca;
}

[data-theme="dark"] .volunteer-shift-row .shift-remove {
    background: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .volunteer-shift-row .shift-remove:hover {
    background: #991b1b;
}

/* Recipient info card */
.recipient-info-card {
    background: #fef9e7;
    border: 1px solid #f5e6b3;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
}

/* Raffle styles */
.raffle-entries-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raffle-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 10px;
    border: 2px solid transparent;
}

.raffle-entry-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.raffle-entry-name {
    font-weight: 500;
}

.raffle-tickets {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--card);
    padding: 2px 8px;
    border-radius: 10px;
}

.winner-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.remove-entry-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-entry-btn:hover {
    background: #fecaca;
}

.recipient-info-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
    color: #92400e;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5e6b3;
}

.recipient-info-row {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.recipient-info-row:last-child {
    margin-bottom: 0;
}

.recipient-label {
    font-weight: 600;
    color: #78350f;
}

.recipient-value {
    color: #451a03;
}

.recipient-address-link {
    color: #6b8f66;
    text-decoration: none;
    font-weight: 500;
}

.recipient-address-link:hover {
    text-decoration: underline;
}
