/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Typography */
h1, h2 {
    font-family: 'Lora', serif;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #2c3e50;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 15px 0 10px;
    color: #2c3e50;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #2c3e50;
}

p {
    margin: 10px 0;
}

a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #34495e;
}

/* Container and Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    margin: 0;
    font-size: 28px;
}

.logo a {
    color: white;
}

.logo a:hover {
    color: #ecf0f1;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ecf0f1;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
    color: white;
}

.footer a {
    color: #ecf0f1;
}

.footer a:hover {
    color: white;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background-color: #1a252f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-warning {
    background-color: #e67e22;
    color: white;
}

.btn-warning:hover {
    background-color: #d35400;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-delete-guest {
    background-color: #c0392b;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
}

.btn-delete-guest:hover {
    background-color: #a93226;
}

.btn-edit-icon {
    background-color: transparent;
    color: #3498db;
    border: none;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.btn-edit-icon:hover {
    color: #2980b9;
}

.btn-delete-icon {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.btn-delete-icon:hover {
    color: #c0392b;
}

.btn-copy-icon {
    background-color: transparent;
    color: #27ae60;
    border: none;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.btn-copy-icon:hover {
    color: #229954;
}

.btn-info-icon {
    background-color: transparent;
    color: #2c3e50;
    border: none;
    padding: 4px 8px;
    font-size: 14px;
    cursor: help;
    transition: color 0.2s;
    position: relative;
}

.btn-info-icon:hover {
    color: #3498db;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Forms */
.form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.form-section {
    margin-bottom: 30px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="datetime-local"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: #f0f0f0;
}

.radio-label input {
    margin-right: 10px;
    cursor: pointer;
}

.radio-label span {
    font-weight: 500;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 60px;
}

.hero h2 {
    color: white;
    font-size: 48px;
    margin: 0 0 20px 0;
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

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

/* How It Works Section */
.how-it-works {
    margin: 60px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

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

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #2c3e50;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.step h3 {
    margin: 15px 0 10px;
    color: #2c3e50;
}

/* Features Section */
.features {
    margin: 60px 0;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-list li {
    padding: 15px;
    background-color: white;
    border-left: 4px solid #2c3e50;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Party Detail Section */
.party-detail {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.party-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.party-header h2 {
    margin: 0 0 10px 0;
}

.party-theme {
    color: #7f8c8d;
    font-style: italic;
}

.party-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.party-info-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #2c3e50;
}

.party-info-card h4 {
    margin-top: 0;
    color: #2c3e50;
}

.timezone-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

.party-description,
.party-notes {
    background-color: #f0f7ff;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
}

.rsvp-form-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f5f5f5;
}

.rsvp-closed-notice {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
}

.rsvp-closed-notice h3 {
    color: #721c24;
    margin-top: 0;
}

/* Success Containers */
.success-container,
.error-container,
.finalize-container,
.create-container,
.edit-container,
.manage-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.success-badge,
.error-badge {
    font-size: 60px;
    text-align: center;
    margin: 20px 0;
}

.success-badge {
    color: #27ae60;
}

.error-badge {
    color: #e74c3c;
}

.success-container h2,
.error-container h2,
.finalize-container h2,
.create-container h2,
.edit-container h2,
.manage-container h2 {
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.pre-invite-section .subtitle {
    text-align: left;
}

/* Cards */
.success-container > div,
.party-share-card,
.qr-code-card,
.manage-card,
.response-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #2c3e50;
}

/* QR Code */
.qr-container {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}

.qr-code {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Link Display */
.link-display {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.link-display input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background-color: #f9f9f9;
    padding: 12px 15px;
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid #95a5a6;
}

.stat-card h4 {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.stat-card.coming {
    border-left-color: #27ae60;
}

.stat-card.not-coming {
    border-left-color: #e74c3c;
}

.stat-card.maybe {
    border-left-color: #f39c12;
}

.stat-card.plus-ones {
    border-left-color: #3498db;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.action-buttons .btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Export Section */
.export-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.export-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #2c3e50;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 500px;
}

.export-buttons .btn {
    padding: 10px 16px;
    font-size: 14px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-coming {
    background-color: #d4edda;
    color: #155724;
}

.badge-not-coming {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-maybe {
    background-color: #fff3cd;
    color: #856404;
}

.badge-invited {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-other {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.guests-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}

.guests-table thead {
    background-color: #f0f0f0;
    border-bottom: 2px solid #ddd;
}

.guests-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

.guests-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.guests-table tbody tr:hover {
    background-color: #fafafa;
}

/* Info Boxes */
.info-box,
.warning-box {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
}

.warning-box {
    background-color: #fef5e7;
    border-left-color: #f39c12;
}

.danger-box {
    background-color: #fadbd8;
    border-left-color: #e74c3c;
}

.info-box h4,
.warning-box h4,
.danger-box h4 {
    margin-top: 0;
}

.info-box ul,
.warning-box ul,
.danger-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li,
.warning-box li,
.danger-box li {
    margin: 5px 0;
}

/* Status Banners */
.status-banner {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid;
}

.status-banner p {
    margin: 0;
}

.status-open {
    background-color: white;
    color: #2c3e50;
    border-color: #ddd;
    border-left-color: #28a745;
}

.status-finalized {
    background-color: white;
    color: #2c3e50;
    border-color: #ddd;
    border-left-color: #dc3545;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* Theme-Specific Styling */
.party-detail {
    position: relative;
}

.party-detail::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.party-header {
    position: relative;
    z-index: 2;
}

/* Birthday Theme */
.party-detail.theme-birthday {
    border-top: 5px solid #ff6b9d;
    background: linear-gradient(135deg, #ffe6f0 0%, #ffffff 100%);
}

.party-detail.theme-birthday .party-theme {
    color: #ff6b9d;
    font-weight: 600;
}

.party-detail.theme-birthday .party-header h2 {
    color: #c2185b;
}

/* Birthday balloon animation */
@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(10deg);
        opacity: 0;
    }
}

.party-detail.theme-birthday .party-header::after {
    content: '🎈';
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 40px;
    animation: float-up 4s ease-in infinite;
    pointer-events: none;
    z-index: 10;
}

/* Wedding Theme */
.party-detail.theme-wedding {
    border-top: 5px solid #d4a574;
    background: linear-gradient(135deg, #f5e6d3 0%, #ffffff 100%);
}

.party-detail.theme-wedding .party-theme {
    color: #8b7355;
    font-weight: 600;
}

.party-detail.theme-wedding .party-header h2 {
    color: #5d4e37;
}

/* Wedding elegant animation */
@keyframes gentle-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
    }
}

.party-detail.theme-wedding .party-header h2 {
    animation: gentle-glow 3s ease-in-out infinite;
}

/* Anniversary Theme */
.party-detail.theme-anniversary {
    border-top: 5px solid #e74c3c;
    background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
}

.party-detail.theme-anniversary .party-theme {
    color: #c0392b;
    font-weight: 600;
}

.party-detail.theme-anniversary .party-header h2 {
    color: #922b21;
}

@keyframes pulse-hearts {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.party-detail.theme-anniversary .party-header::after {
    content: '💕';
    display: inline-block;
    margin-left: 10px;
    animation: pulse-hearts 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

/* Graduation Theme */
.party-detail.theme-graduation {
    border-top: 5px solid #2c3e50;
    background: linear-gradient(135deg, #ecf0f1 0%, #ffffff 100%);
}

.party-detail.theme-graduation .party-theme {
    color: #2c3e50;
    font-weight: 600;
}

.party-detail.theme-graduation .party-header h2 {
    color: #1a252f;
}

@keyframes rotate-cap {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-5deg);
    }
}

.party-detail.theme-graduation .party-header::after {
    content: '🎓';
    display: inline-block;
    margin-left: 10px;
    animation: rotate-cap 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

/* Casual Theme */
.party-detail.theme-casual {
    border-top: 5px solid #f39c12;
    background: linear-gradient(135deg, #fef5e7 0%, #ffffff 100%);
}

.party-detail.theme-casual .party-header h2 {
    color: #d68910;
}

.party-detail.theme-casual .party-theme {
    color: #b8860b;
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.party-detail.theme-casual .party-header::after {
    content: '🎉';
    position: absolute;
    font-size: 45px;
    animation: bounce 1.5s ease-in-out infinite;
    top: 15px;
    right: 20px;
    z-index: 10;
}

/* Formal Theme */
.party-detail.theme-formal {
    border-top: 5px solid #1a252f;
    background: linear-gradient(135deg, #ecf0f1 0%, #ffffff 100%);
}

.party-detail.theme-formal .party-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.party-detail.theme-formal .party-theme {
    color: #2c3e50;
    font-weight: 600;
}

.party-detail.theme-formal .party-header h2 {
    color: #ecf0f1;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 2em;
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.party-detail.theme-formal .party-header::after {
    content: '🎩';
    position: absolute;
    font-size: 50px;
    animation: fade-in-out 2s ease-in-out infinite;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

/* Holiday Party Theme */
.party-detail.theme-holiday {
    border-top: 5px solid #d32f2f;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.party-detail.theme-holiday .party-header {
    background: linear-gradient(135deg, #d32f2f, #f57c00);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.party-detail.theme-holiday .party-header h2 {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-size: 2.1em;
}

.party-detail.theme-holiday .party-theme {
    color: #ff6f00;
    font-weight: 600;
    font-size: 1.1em;
}

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

.party-detail.theme-holiday .party-header::after {
    content: '✨';
    position: absolute;
    font-size: 45px;
    animation: spin 3s linear infinite;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

/* Christmas Theme */
.party-detail.theme-christmas {
    border-top: 5px solid #c0392b;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #ffffff 100%);
}

.party-detail.theme-christmas .party-header {
    background: linear-gradient(135deg, #2d5a3d, #1e4620);
    padding: 30px 80px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.party-detail.theme-christmas .party-header h2 {
    color: #ffcccc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.2em;
}

.party-detail.theme-christmas .party-theme {
    color: #c0392b;
    font-weight: 600;
    font-size: 1.1em;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

.party-detail.theme-christmas .party-header::before {
    content: '❄️';
    position: absolute;
    font-size: 35px;
    animation: twinkle 1.5s ease-in-out infinite;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.party-detail.theme-christmas .party-header::after {
    content: '🎄';
    position: absolute;
    font-size: 50px;
    animation: swing 2s ease-in-out infinite;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.party-detail.theme-christmas .party-info-card {
    background-color: #f1f8e9;
    border-left-color: #c0392b;
    color: #1b5e20;
}

.party-detail.theme-christmas .party-info-card h4 {
    color: #1b5e20;
}

.party-detail.theme-christmas .party-description,
.party-detail.theme-christmas .party-notes {
    background-color: #f1f8e9;
    border-left-color: #c0392b;
    color: #1b5e20;
}

.party-detail.theme-christmas .party-description h3,
.party-detail.theme-christmas .party-notes h3 {
    color: #1b5e20;
}

.party-detail.theme-christmas .rsvp-form-section {
    color: #1b5e20;
}

.party-detail.theme-christmas .rsvp-form-section h3 {
    color: #1b5e20;
}

.party-detail.theme-christmas .subtitle {
    color: #2d5a3d;
}

.party-detail.theme-christmas .form-group label {
    color: #1b5e20;
}

.party-detail.theme-christmas .info-box {
    background-color: #e8f5e9;
    border-left-color: #c0392b;
    color: #1b5e20;
}

.party-detail.theme-christmas .info-box h4 {
    color: #1b5e20;
}

/* Halloween Theme */
.party-detail.theme-halloween {
    border-top: 5px solid #ff6f00;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 50%, #ffffff 100%);
}

.party-detail.theme-halloween .party-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    padding: 30px 80px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.party-detail.theme-halloween .party-header h2 {
    color: #ffb74d;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.2em;
}

.party-detail.theme-halloween .party-theme {
    color: #ff6f00;
    font-weight: 600;
    font-size: 1.1em;
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes creep {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(30px) rotate(-5deg);
    }
}

.party-detail.theme-halloween .party-header::before {
    content: '🎃';
    position: absolute;
    font-size: 45px;
    animation: bob 2s ease-in-out infinite;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.party-detail.theme-halloween .party-header::after {
    content: '🦇';
    position: absolute;
    font-size: 35px;
    animation: creep 3s ease-in-out infinite;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.party-detail.theme-halloween .party-info-card {
    background-color: #ffe0b2;
    border-left-color: #ff6f00;
    color: #bf360c;
}

.party-detail.theme-halloween .party-info-card h4 {
    color: #bf360c;
}

.party-detail.theme-halloween .party-description,
.party-detail.theme-halloween .party-notes {
    background-color: #fff3e0;
    border-left-color: #ff6f00;
    color: #bf360c;
}

.party-detail.theme-halloween .form-group label {
    color: #bf360c;
}

.party-detail.theme-halloween .subtitle {
    color: #bf360c;
}

.party-detail.theme-halloween .info-box {
    background-color: #ffe0b2;
    border-left-color: #ff6f00;
    color: #bf360c;
}

.party-detail.theme-halloween .info-box h4 {
    color: #bf360c;
}

/* Thanksgiving Theme */
.party-detail.theme-thanksgiving {
    border-top: 5px solid #bf6e3f;
    background: linear-gradient(135deg, #fae8d6 0%, #fff5ee 100%);
}

.party-detail.theme-thanksgiving .party-header {
    background: linear-gradient(135deg, #8b4513, #704214);
    padding: 30px 80px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.party-detail.theme-thanksgiving .party-header h2 {
    color: #fff5ee;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.2em;
}

.party-detail.theme-thanksgiving .party-theme {
    color: #bf6e3f;
    font-weight: 600;
    font-size: 1.1em;
}

@keyframes wiggle-leaf {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

.party-detail.theme-thanksgiving .party-header::before {
    content: '🦃';
    position: absolute;
    font-size: 45px;
    animation: wiggle-leaf 2s ease-in-out infinite;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.party-detail.theme-thanksgiving .party-header::after {
    content: '🍂';
    position: absolute;
    font-size: 40px;
    animation: wiggle-leaf 2.5s ease-in-out infinite 0.5s;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

/* Housewarming Theme */
.party-detail.theme-housewarming {
    border-top: 5px solid #27ae60;
    background: linear-gradient(135deg, #d5f4e6 0%, #ffffff 100%);
}

.party-detail.theme-housewarming .party-header {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    padding: 30px 80px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.party-detail.theme-housewarming .party-header h2 {
    color: #d5f4e6;
    font-size: 2em;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.party-detail.theme-housewarming .party-theme {
    color: #186a3b;
    font-weight: 600;
    font-size: 1.1em;
}

@keyframes grow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.party-detail.theme-housewarming .party-header::before {
    content: '🏠';
    position: absolute;
    font-size: 50px;
    animation: grow 2s ease-in-out infinite;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.party-detail.theme-housewarming .party-header::after {
    content: '🌱';
    position: absolute;
    font-size: 40px;
    animation: float-up 4s ease-in infinite;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

/* Guest List Styling */
.guest-list-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guest-list-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.guest-list-section .subtitle {
    color: #7f8c8d;
    margin-bottom: 20px;
}

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

.guest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #bdc3c7;
    transition: all 0.2s ease;
}

.guest-item:hover {
    background: #f0f0f0;
    border-left-color: #95a5a6;
}

.guest-name {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.guest-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 15px;
}

.guest-status.status-coming {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.guest-status.status-not_coming {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.guest-status.status-maybe {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.guest-status.status-invited {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.guest-status.status-other {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Guest list stats */
.guest-list-stats {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.guest-list-stats .total-coming {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
}

.guest-list-stats .total-coming strong {
    color: #27ae60;
    font-size: 16px;
}

/* Plus ones badge */
.plus-ones-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

/* Checkbox group styling for guest list visibility */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2c3e50;
}

.checkbox-group small {
    display: block;
    margin-left: 26px;
    color: #7f8c8d;
    font-weight: normal;
}

/* Responsive adjustments for themes */
@media (max-width: 768px) {
    .party-detail.theme-christmas::before,
    .party-detail.theme-halloween::before,
    .party-detail.theme-thanksgiving::before,
    .party-detail.theme-housewarming::before {
        font-size: 35px;
    }

    .party-detail.theme-christmas::after,
    .party-detail.theme-halloween::after,
    .party-detail.theme-thanksgiving::after,
    .party-detail.theme-casual::after,
    .party-detail.theme-formal::after,
    .party-detail.theme-holiday::after,
    .party-detail.theme-housewarming::after {
        font-size: 40px;
    }

    .party-detail.theme-anniversary .party-header::before,
    .party-detail.theme-graduation .party-header::after {
        font-size: 30px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 15px;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .steps,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .export-buttons {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .party-info-grid {
        grid-template-columns: 1fr;
    }

    .guests-table {
        font-size: 14px;
    }

    .guests-table th,
    .guests-table td {
        padding: 8px;
    }

    .success-container,
    .error-container,
    .finalize-container,
    .create-container,
    .edit-container,
    .manage-container {
        padding: 20px;
    }

    .form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .link-display {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .export-buttons {
        grid-template-columns: 1fr;
    }

    .form-group label {
        font-size: 14px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
    }

    .nav {
        font-size: 14px;
        gap: 10px;
    }
}
