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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #667eea;
    font-size: 28px;
}

.header-actions {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

/* Event Actions Section (Left) */
.event-actions {
    display: flex;
    gap: 10px;
    padding-right: 30px;
    border-right: 2px solid #e2e8f0;
}

/* Admin Pages - Purple Theme */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Profile & User Pages - Same Purple Theme */
.profile-container {
    max-width: 1400px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    margin-bottom: 20px;
    margin-right: 10px;
}

.back-link:hover {
    background: rgba(255,255,255,0.25);
}

.admin-header, .profile-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.admin-header h1, .profile-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.admin-header p, .profile-header p {
    margin: 0;
    opacity: 0.9;
}

/* Profile-specific header with avatar */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.profile-info h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.profile-info p {
    margin: 0;
    font-size: 16px;
}

/* Profile sections - white cards */
.profile-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

/* Info grid for account details */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.info-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

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

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

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

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

.password-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

/* Uniform height for all buttons */
.btn-uniform {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.btn-small.btn-uniform {
    height: 40px;
    padding: 0 15px;
    font-size: 13px;
}

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

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

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

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

.btn-danger:hover {
    background: #e53e3e;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
}

/* Sticky sections */
.sticky-section {
    position: sticky;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sticky-section.summary {
    top: 0;
    z-index: 102;
}

.sticky-section.actions-section {
    top: 130px; /* Position below summary (summary height ~130px) */
    z-index: 101;
}

/* When scrolled, reduce summary height and adjust actions position */
.sticky-section.summary.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
}

.sticky-section.actions-section.scrolled {
    top: 70px; /* Reduced position when summary is compact */
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Hide section labels when scrolled */
.sticky-section.scrolled .section-header-desktop {
    display: none !important;
}

/* Event Dashboard */
.dashboard {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: none;
}

.dashboard.active {
    display: block;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.event-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.event-card.active {
    border-color: #667eea;
    background: #eef2ff;
}

.event-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 18px;
}

.event-info {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.event-info strong {
    color: #4a5568;
}

.event-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.stat {
    font-size: 13px;
}

.stat-value {
    font-weight: 700;
    color: #667eea;
}

.event-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

/* Main Content */
.main-content {
    display: none;
}

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

.content-header {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-title h2 {
    color: #2d3748;
    font-size: 24px;
}

.back-btn {
    background: #e2e8f0;
    color: #4a5568;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #cbd5e0;
}

/* Summary Section */
.summary {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.summary h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 8px;
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.rsvp-section h3 {
    color: #92400e;
    margin-bottom: 15px;
    font-size: 18px;
}

.rsvp-actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Section headers */
.section-header-desktop {
    display: block;
}

.section-header-desktop h3 {
    margin: 0 0 15px 0;
}

/* Unassigned header */
.unassigned-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-item {
    background: #f7fafc;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.summary-item.warning {
    border-left-color: #f6ad55;
    background: #fffaf0;
}

.summary-item.danger {
    border-left-color: #fc8181;
    background: #fff5f5;
}

.summary-label {
    color: #718096;
    font-size: 10px;
    margin-bottom: 3px;
    line-height: 1.2;
}

.summary-value {
    color: #2d3748;
    font-size: 20px;
    font-weight: 700;
}

/* Actions Section */
.actions-section {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.actions-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Hamburger positioning - NOT fixed, relative to content */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* Tables Section */
.tables-section {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tables-section h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 18px;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.table-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.table-card.empty {
    border-color: #e2e8f0;
}

.table-card.normal {
    border-color: #48bb78;
}

.table-card.warning {
    border-color: #f6ad55;
    background: #fffaf0;
}

.table-card.danger {
    border-color: #fc8181;
    background: #fff5f5;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.table-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.table-settings-btn {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.table-settings-btn:hover {
    background: #e2e8f0;
    color: #667eea;
}

.table-card.drag-over {
    background: #eef2ff;
    border-color: #667eea;
    transform: scale(1.02);
}

.table-number {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.table-capacity {
    font-size: 14px;
    color: #718096;
}

.table-capacity.warning {
    color: #dd6b20;
    font-weight: 600;
}

.table-capacity.danger {
    color: #c53030;
    font-weight: 700;
}

.guest-list {
    margin-top: 10px;
}

.guest-item {
    background: white;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-left: 3px solid #667eea;
    cursor: move;
    transition: all 0.3s;
}

.guest-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.guest-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.guest-name {
    color: #2d3748;
    flex: 1;
}

.guest-quantity {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.guest-actions {
    display: flex;
    gap: 5px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #718096;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #667eea;
}

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

.empty-table {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Higher z-index for guest modal when opened from table settings */
.modal#guestModal {
    z-index: 1100;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

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

.modal-header h3 {
    color: #2d3748;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
}

.close-btn:hover {
    color: #2d3748;
}

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

.form-group label {
    display: block;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

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

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

.form-group small {
    display: block;
    color: #718096;
    margin-top: 5px;
    font-size: 12px;
}

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

.csv-drop-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.csv-drop-zone:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.csv-drop-zone.dragover {
    border-color: #667eea;
    background: #eef2ff;
}

.csv-instructions {
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    background: #f7fafc;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.csv-instructions ul {
    margin-left: 20px;
    margin-top: 10px;
}

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

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

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    animation: slideInRight 0.3s;
}

.notification.success {
    background: #48bb78;
    color: white;
}

.notification.error {
    background: #f56565;
    color: white;
}

.notification.info {
    background: #4299e1;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .tables-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Tags System */
.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
}

.tag-badge .remove-tag {
    cursor: pointer;
    margin-left: 3px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tag-badge .remove-tag:hover {
    opacity: 1;
}

.tag-quick-add {
    padding: 5px 12px;
    font-size: 11px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.tag-quick-add:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ===========================
   COLLAPSIBLE SECTIONS
   =========================== */

.collapsible-section {
    position: relative;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.collapsible-header h3 {
    margin: 0;
}

.collapse-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #667eea;
    font-weight: bold;
}

.collapse-icon.collapsed {
    transform: rotate(-90deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===========================
   MOBILE MENU STYLES
   =========================== */

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: fixed;
    top: 20px;
    left: 20px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #667eea;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: #5568d3;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px 60px; /* Extra left padding for hamburger */
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 20px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background 0.2s;
}

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

.mobile-menu-items {
    padding: 10px;
}

.mobile-menu-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e0, transparent);
    margin: 20px 15px;
}

.mobile-menu-section-header {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.2s;
}

.mobile-menu-item:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateX(5px);
}

.mobile-menu-item:active {
    transform: translateX(5px) scale(0.98);
}

/* Show hamburger menu on mobile */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        position: fixed !important; /* Keep fixed at top */
        left: 15px !important;
        top: 15px !important;
        z-index: 1002 !important; /* Above everything */
        margin-bottom: 0;
    }
    
    /* Change hamburger color to dark green for better visibility */
    .hamburger-menu span {
        background: #22543d !important; /* Dark green */
        box-shadow: 0 0 3px rgba(0,0,0,0.3);
    }
    
    /* Balanced padding on both sides */
    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .content-header {
        padding-left: 50px; /* Room for hamburger */
        padding-right: 10px;
    }
    
    /* Move back button to left on mobile */
    .back-btn {
        margin-left: -35px;
        font-size: 13px;
        padding: 6px 12px;
    }
    
    /* Sections with balanced padding */
    .summary,
    .actions-section,
    .rsvp-section,
    .tables-section,
    #unassignedSection {
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 8px; /* Slight radius for polish */
    }
    
    /* Tables grid */
    .tables-grid {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Table cards with slight radius */
    .table-card {
        border-radius: 8px !important;
    }
    
    /* Fallback if :has() not supported */
    .header.hide-on-mobile {
        display: none !important;
    }
    
    /* Hide desktop section headers on mobile */
    .section-header-desktop {
        display: none !important;
    }
    
    /* Mobile collapse headers - consistent right alignment */
    .mobile-collapse-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .mobile-collapse-header h3 {
        margin: 0;
        flex: 1;
    }
    
    /* Unassigned header - match mobile collapse header */
    .unassigned-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 15px !important;
    }
    
    .unassigned-header h3 {
        margin: 0 !important;
        flex: 1 !important;
    }
    
    /* All collapse buttons same size and position */
    .collapse-toggle-btn,
    .unassigned-toggle {
        background: #f59e0b !important;
        color: white !important;
        border: none !important;
        padding: 8px 16px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        transition: all 0.2s !important;
        height: 40px !important;
        min-width: 100px !important;
        flex-shrink: 0 !important;
    }
    
    /* Mobile collapse content */
    .mobile-collapse-content {
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    
    .mobile-collapse-content.collapsed {
        max-height: 0 !important;
        opacity: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-collapse-content:not(.collapsed) {
        max-height: 2000px !important;
        opacity: 1 !important;
    }
    
    /* Summary content - show grid when expanded */
    #summaryContent:not(.collapsed) .summary-grid {
        display: grid !important;
    }
    
    /* Actions content - show message when expanded */
    #actionsContent:not(.collapsed) {
        padding: 15px !important;
        background: #eef2ff !important;
        border-radius: 6px !important;
        color: #4338ca !important;
        text-align: center !important;
        font-size: 13px !important;
    }
    
    #actionsContent:not(.collapsed)::before {
        content: "All actions available in menu (tap menu icon top-left)" !important;
        display: block !important;
    }
    
    /* Hide action buttons on mobile */
    #actionsContent .actions-grid {
        display: none !important;
    }
    
    /* RSVP content - show message when expanded */
    #rsvpContent:not(.collapsed) {
        padding: 15px !important;
        background: #fef3c7 !important;
        border-radius: 6px !important;
        color: #92400e !important;
        text-align: center !important;
        font-size: 13px !important;
    }
    
    #rsvpContent:not(.collapsed)::before {
        content: "RSVP actions available in menu (tap menu icon top-left)" !important;
        display: block !important;
    }
    
    /* Hide RSVP buttons on mobile */
    #rsvpContent .rsvp-actions-buttons {
        display: none !important;
    }
    
    /* Hide Actions and RSVP sections on mobile - all in menu */
    .actions-section.mobile-collapsible,
    .rsvp-section.mobile-collapsible {
        display: none !important;
    }
    
    /* Adjust header for mobile */
    .header h1 {
        font-size: 20px;
    }
    
    .content-header .header-actions {
        display: none; /* Hide settings button, accessible via menu */
    }
    
    /* Make close button bigger on mobile */
    .close-btn {
        font-size: 36px !important;
        padding: 10px !important;
        line-height: 1 !important;
        min-width: 50px !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Hide hamburger when modal is open */
    .modal.active ~ .hamburger-menu,
    body:has(.modal.active) .hamburger-menu {
        display: none !important;
    }
    
    /* Mobile-friendly guest table */
    #allGuestsModal .modal-content {
        max-width: 100% !important;
        width: 95% !important;
        margin: 10px;
    }
    
    /* Table container with frozen header */
    #allGuestsListContainer {
        position: relative;
        max-height: 500px !important;
        overflow: auto !important;
    }
    
    /* Freeze header row */
    #allGuestsTable thead {
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
        background: white !important;
    }
    
    #allGuestsTable thead th {
        background: #f7fafc !important;
        position: sticky !important;
        top: 0 !important;
    }
    
    /* Freeze name column */
    #allGuestsTable th:first-child,
    #allGuestsTable td:first-child {
        position: sticky !important;
        left: 0 !important;
        background: white !important;
        z-index: 10 !important;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
        min-width: 120px !important; /* Double width */
        max-width: 120px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    #allGuestsTable thead th:first-child {
        z-index: 25 !important; /* Above body cells */
        background: #f7fafc !important;
    }
    
    /* Family column - same width as name */
    #allGuestsTable th:nth-child(2),
    #allGuestsTable td:nth-child(2) {
        min-width: 120px !important;
        max-width: 120px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    /* Other columns - compact */
    #allGuestsTable th:not(:first-child):not(:nth-child(2)),
    #allGuestsTable td:not(:first-child):not(:nth-child(2)) {
        min-width: 80px;
        padding: 8px 4px !important;
    }
    
    /* Make table scrollable */
    #allGuestsTable {
        width: 100%;
        border-collapse: collapse;
    }
    
    /* Improve filter layout on mobile */
    #allGuestsModal > .modal-content > div[style*="flex"]:nth-of-type(2) {
        flex-direction: column !important;
    }
    
    #allGuestsModal select {
        width: 100% !important;
    }
    
    /* Stack guest table columns better on mobile */
    .guest-table {
        font-size: 13px;
    }
    
    .guest-table th,
    .guest-table td {
        padding: 8px 4px !important;
    }
    
    /* Compact guest cards for mobile */
    .guest-card {
        padding: 8px !important;
        font-size: 12px !important;
    }
    
    /* Better modal sizing */
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
    }
    
    /* Remove sticky on mobile */
    .sticky-section {
        position: relative;
        top: auto;
    }
    
    /* Tables grid - 1 column on mobile, no left padding */
    .tables-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tables-section {
        padding-left: 0 !important;
    }
    
    /* Event grid - 1 column on mobile */
    .event-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Summary grid - 2 columns on mobile for better fit */
    .summary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .mobile-collapse-header {
        display: none !important;
    }
    
    .mobile-collapse-content {
        max-height: none !important;
        opacity: 1 !important;
    }
    
    .section-header-desktop {
        display: block !important;
    }
}

/* Tablet sizes */
@media (min-width: 769px) and (max-width: 1024px) {
    .tables-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .event-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   wtables v2.13.04 - User Menu UI Fixes
   ============================================ */

/* Dashboard hamburger (mobile only - for user menu) */
.dashboard-hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: fixed;
    top: 15px;
    left: 15px;
}

.dashboard-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #22543d;
    border-radius: 2px;
    transition: all 0.3s;
}

.dashboard-hamburger:hover span {
    background: #2f855a;
}

@media (max-width: 768px) {
    .dashboard-hamburger {
        display: flex !important;
    }
}

/* User Menu in Dashboard Header (desktop only) */
.user-menu-dashboard {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 16px;
    background: #f7fafc;
    border-radius: 8px;
    margin-left: 15px;
}

.user-menu-dashboard .user-name {
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.user-menu-dashboard .user-menu-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.user-menu-dashboard .user-menu-link:hover {
    background: #edf2f7;
}

.user-menu-dashboard .user-menu-link.logout {
    color: #e53e3e;
}

.user-menu-dashboard .user-menu-link.logout:hover {
    background: #fff5f5;
}

/* User Menu in Event Content Header - REMOVED */
/* This section is intentionally removed - user menu only in dashboard header */

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-title {
    flex: 1;
    min-width: 200px;
}

/* Mobile Menu User Section */
.mobile-menu-user-info {
    padding: 12px 20px;
    background: #f7fafc;
    border-radius: 8px;
    margin: 0 10px 8px 10px;
    font-size: 13px;
    color: #4a5568;
}

.mobile-menu-link {
    display: block !important;
    text-decoration: none !important;
}

.mobile-menu-logout {
    color: #e53e3e !important;
    border-color: #feb2b2 !important;
}

.mobile-menu-logout:hover {
    background: #fff5f5 !important;
    border-color: #fc8181 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Hide dashboard user menu on mobile (use hamburger instead) */
    .user-menu-dashboard {
        display: none;
    }
}

/* Desktop - hide mobile menu items */
@media (min-width: 769px) {
    .mobile-menu-user-info {
        display: none;
    }
}

/* ========================================
   PROFILE PAGE STYLES (v2.15.01)
   ======================================== */

/* Back to Dashboard Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.back-link:hover {
    gap: 12px;
    color: #5a67d8;
}

/* Profile Container */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header with Avatar */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-info h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.profile-info p {
    margin: 0;
    opacity: 0.9;
}

/* Profile Sections */
.profile-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Profile Mobile Responsive */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
    }
    
    .profile-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .profile-info h1 {
        font-size: 22px;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    .info-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   RESPONSIVE STYLES - Mobile Adaptations
   ============================================ */

@media (max-width: 968px) {
    .event-actions {
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .admin-header h1 {
        font-size: 24px;
    }
    
    .admin-header {
        padding: 20px;
    }
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* Landing page has NO body padding/background - uses own design */
body.landing-page {
    background: white;
    padding: 0;
    margin: 0;
}

.landing-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.landing-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.landing-header-tagline {
    flex: 1;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-header-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

@media (max-width: 768px) {
    .landing-header-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .landing-logo {
        order: 1;
        width: 100%;
    }
    
    .landing-logo img {
        height: 45px;
    }
    
    .landing-header-btn {
        order: 2;
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .landing-header-tagline {
        order: 3;
        width: 100%;
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 56px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin: 0 0 40px 0;
    opacity: 0.9;
}

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

.btn-primary, .btn-secondary {
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-block;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: #2d3748;
    margin: 0 0 60px 0;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* How It Works */
.how-it-works {
    padding: 80px 20px;
    background: #f7fafc;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.step h3 {
    font-size: 22px;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.step p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

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

.cta-section h2 {
    font-size: 42px;
    margin: 0 0 15px 0;
}

.cta-section p {
    font-size: 20px;
    margin: 0 0 40px 0;
    opacity: 0.9;
}

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

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features {
        padding: 60px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .how-it-works {
        padding: 60px 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
}
