/* Shared styles across all pages */

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

/* Restore paragraph spacing inside rich-text content rendered by Quill */
.detail-value p,
.info-value p,
#event-description p {
    margin-bottom: 0;
}

/* Restore list indentation stripped by global reset */
.detail-value ol, .detail-value ul,
.info-value ol, .info-value ul,
#event-description ol, #event-description ul,
.content-section-body ol, .content-section-body ul {
    padding-left: 1.5em;
    margin-bottom: 0.25em;
}

.detail-value ol, .info-value ol,
#event-description ol, .content-section-body ol {
    list-style-type: decimal;
}

.detail-value ul, .info-value ul,
#event-description ul, .content-section-body ul {
    list-style-type: disc;
}

.detail-value li, .info-value li,
#event-description li, .content-section-body li {
    margin-bottom: 0.15em;
}

/* Quill indent classes (ql-indent-1 through ql-indent-8) */
.ql-indent-1 { padding-left: 3em; }
.ql-indent-2 { padding-left: 6em; }
.ql-indent-3 { padding-left: 9em; }
.ql-indent-4 { padding-left: 12em; }
.ql-indent-5 { padding-left: 15em; }

/* Quill uses empty <p><br></p> for blank lines — keep them as spacing */
.detail-value p:empty,
.info-value p:empty,
#event-description p:empty,
.detail-value p:has(> br:only-child),
.info-value p:has(> br:only-child),
#event-description p:has(> br:only-child) {
    margin-bottom: 0;
    line-height: 0.5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E6E7E8;
    min-height: 100vh;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.dark-mode {
    background: #2C2C2C;
    color: #E6E7E8;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

body.dark-mode .loading-overlay {
    background: rgba(44, 44, 44, 0.95);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .spinner {
    border: 4px solid #3a3a3a;
    border-top: 4px solid #00A2E1;
}

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

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

body.dark-mode .loading-text {
    color: #e0e0e0;
}

.loading-subtext {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

body.dark-mode .loading-subtext {
    color: #999;
}

/* Page Container */
.page-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.dashboard-header {
    background: white;
    padding: 5px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
}

body.dark-mode .dashboard-header {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 30px;
}

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

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

.logo-image {
    height: 18px;
    width: auto;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

.header-title {
    display: none;
}

.title-main {
    display: none;
}

.user-info,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
}

body.dark-mode .toggle-label {
    color: #C8C9CA;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 28px;
    background: #e0e0e0;
    border-radius: 14px;
    transition: background 0.3s ease;
    cursor: pointer;
}

body.dark-mode .toggle-switch {
    background: #5A5A5A;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
}

body.dark-mode .toggle-slider {
    transform: translateX(32px);
}

.dark-mode-toggle:hover {
    transform: none;
}

/* Pill Toggle (for header theme toggle) */
.theme-toggle-container {
    display: flex;
    align-items: center;
}

.pill-toggle {
    display: flex;
    align-items: center;
    background: #E0E0E0;
    border: 1px solid #C8C9CA;
    border-radius: 20px;
    overflow: hidden;
}

body.dark-mode .pill-toggle {
    background: #3a3a3a;
    border-color: #5a5a5a;
}

.pill-option {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .pill-option {
    color: #999;
}

.pill-option:hover:not(.active) {
    color: #333;
}

body.dark-mode .pill-option:hover:not(.active) {
    color: #ccc;
}

.pill-option.active {
    background: #4D6171;
    color: white;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .pill-option.active {
    background: #4D6171;
    color: white;
}

.pill-divider {
    width: 1px;
    height: 16px;
    background: #C8C9CA;
}

body.dark-mode .pill-divider {
    background: #5a5a5a;
}

/* ============================================
   Dropdown Pill Toggle (User Menu)
   ============================================ */

.dropdown-toggle-row {
    padding: 8px 16px;
}

.dropdown-pill-toggle {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e0e0e0;
}

body.dark-mode .dropdown-pill-toggle {
    background: #2a2a2a;
    border-color: #444;
}

/* Override generic pill styles within dropdown context */
.dropdown-pill-toggle .pill-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    color: #666;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-pill-toggle .pill-option:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-pill-toggle .pill-option.active {
    background: #4D6171;
    color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: default;
}

.dropdown-pill-toggle .pill-option.active:hover {
    background: #4D6171;
    color: white;
}

.dropdown-pill-toggle .pill-option svg {
    flex-shrink: 0;
}

.dropdown-pill-toggle .pill-option.active svg {
    color: white;
}

body.dark-mode .dropdown-pill-toggle .pill-option {
    color: #999;
}

body.dark-mode .dropdown-pill-toggle .pill-option:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .dropdown-pill-toggle .pill-option.active {
    background: #5a7186;
    color: white;
}

body.dark-mode .dropdown-pill-toggle .pill-option.active:hover {
    background: #5a7186;
}

.dropdown-pill-toggle .pill-divider {
    width: 1px;
    height: 20px;
    background: #d0d0d0;
    margin: 0 2px;
}

body.dark-mode .dropdown-pill-toggle .pill-divider {
    background: #555;
}

/* Admin view toggle - orange when active */
#adminViewToggle #adminViewBtn.active {
    background: #e67e22;
    color: white;
}

#adminViewToggle #adminViewBtn.active:hover {
    background: #e67e22;
}

body.dark-mode #adminViewToggle #adminViewBtn.active {
    background: #d35400;
}

body.dark-mode #adminViewToggle #adminViewBtn.active:hover {
    background: #d35400;
}

/* Admin toggle wrapper for disabled state */
.admin-toggle-wrapper {
    position: relative;
}

.admin-toggle-wrapper.disabled .dropdown-pill-toggle {
    opacity: 0.4;
    pointer-events: none;
}

.admin-toggle-unavailable {
    font-size: 10px;
    color: #999;
    text-align: center;
    margin-top: 4px;
    font-style: italic;
}

body.dark-mode .admin-toggle-unavailable {
    color: #666;
}

/* Buttons */
.logout-btn,
.sign-out-button {
    background: #E51938;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 1;
}

.logout-btn:hover,
.sign-out-button:hover {
    background: #c0142e;
}

.back-button {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid #0066cc;
    font-size: 14px;
    display: inline-block;
    line-height: 1;
}

.back-button:hover {
    background: #0066cc;
    color: white;
}

body.dark-mode .back-button {
    color: #00A2E1;
    border-color: #00A2E1;
}

body.dark-mode .back-button:hover {
    background: #00A2E1;
    color: #2C2C2C;
}

.back-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0052a3;
}

body.dark-mode .back-link {
    color: #00A2E1;
}

body.dark-mode .back-link:hover {
    color: #33b4e8;
}

.manager-login-button {
    color: white;
    background: #0066cc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
    line-height: 1;
}

.manager-login-button:hover {
    background: #0052a3;
}

body.dark-mode .manager-login-button {
    background: #00A2E1;
    color: #2C2C2C;
}

body.dark-mode .manager-login-button:hover {
    background: #33b4e8;
}

/* Footer Styles */
.dashboard-footer {
    margin-top: auto;
    padding: 20px 30px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

body.dark-mode .dashboard-footer {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-footer-inner {
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Footer inner uses same max-width as content */
.dashboard-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.copyright {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.dashboard-footer .dark-mode-toggle {
    position: absolute;
    right: 0;
}

body.dark-mode .copyright {
    color: #C8C9CA;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Content Wrapper - Used by all pages */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Public pages add top margin */
.page-container .content-wrapper {
    margin-top: 20px;
    flex: 1;
}

/* Responsive Design - Shared */
@media (max-width: 768px) {
    .dashboard-header-inner {
        padding: 0 15px;
        gap: 10px;
    }

    .header-left {
        flex: 0 0 auto;
    }

    .user-info,
    .header-right {
        flex: 0 0 auto;
        gap: 10px;
    }

    .logo-image {
        height: 16px;
    }

    .content-wrapper {
        padding: 15px;
    }

    .logout-btn,
    .sign-out-button,
    .back-button,
    .manager-login-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .dashboard-footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-header-inner {
        padding: 0 10px;
        gap: 5px;
    }

    .logo-image {
        height: 14px;
    }

    .user-info,
    .header-right {
        gap: 8px;
    }

    .dark-mode-toggle {
        font-size: 18px;
    }

    .logout-btn,
    .sign-out-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .content-wrapper {
        padding: 10px;
    }
}

/* ============================================
   Event Card & List Item Styles (Shared)
   ============================================ */

/* List View Item */
.event-list-item,
.event-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 20px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.event-list-item:hover,
.event-item:hover {
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
    background: #f0f4f8;
    border-color: #0066cc;
}

/* Grid View Card */
.event-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    width: 100%;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    border-color: #0066cc;
    transform: translateY(-2px);
}

.event-card h3 {
    font-size: 16px;
    color: #001D34;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.event-card-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    overflow: hidden;
}

.event-card-item .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.event-card-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card-item .icon svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.event-card-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
    padding-bottom: 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-width: 100%;
    word-break: break-word;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.event-card-registrations {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-card-registrations svg {
    width: 16px;
    height: 16px;
    color: #666;
}

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

/* Event Card Header - Contains title and visibility badge */
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.event-card-header h3 {
    margin-bottom: 0;
    flex: 1;
}

/* Visibility Badge */
.visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.visibility-badge.members-only {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFB74D;
}

.visibility-badge.members-only svg {
    width: 12px;
    height: 12px;
}

body.dark-mode .visibility-badge.members-only {
    background: rgba(255, 183, 77, 0.2);
    color: #FFB74D;
    border-color: rgba(255, 183, 77, 0.4);
}

/* Status Badge - Draft/Published */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge.draft {
    background: #FFF8E1;
    color: #F57C00;
    border: 1px solid #FFB300;
}

.status-badge.draft svg {
    width: 12px;
    height: 12px;
}

.status-badge.published {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #81C784;
}

.status-badge.published svg {
    width: 12px;
    height: 12px;
}

body.dark-mode .status-badge.draft {
    background: rgba(255, 179, 0, 0.2);
    color: #FFB300;
    border-color: rgba(255, 179, 0, 0.4);
}

body.dark-mode .status-badge.published {
    background: rgba(129, 199, 132, 0.2);
    color: #81C784;
    border-color: rgba(129, 199, 132, 0.4);
}

/* Event Badges Container */
.event-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Draft Event Card Styling */
.event-card.event-draft {
    border-left: 3px solid #F57C00;
    opacity: 0.95;
}

body.dark-mode .event-card.event-draft {
    border-left-color: #FFB300;
}

/* Visibility Status in Event Details */
.visibility-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.visibility-status.public {
    background: #E8F5E9;
    color: #2E7D32;
}

.visibility-status.members-only {
    background: #FFF3E0;
    color: #E65100;
}

body.dark-mode .visibility-status.public {
    background: rgba(76, 175, 80, 0.2);
    color: #81C784;
}

body.dark-mode .visibility-status.members-only {
    background: rgba(255, 183, 77, 0.2);
    color: #FFB74D;
}

/* Event Info Wrapper - Contains both rows */
.event-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Horizontal Divider */
.event-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0;
}

body.dark-mode .event-divider {
    border-top-color: #444;
}

/* Tags Row */
.event-tags-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

.event-tags-label {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

body.dark-mode .event-tags-label {
    color: #999;
}

.event-tags-row .event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.event-tag-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* List View Info - Table-like Column Structure */
.event-info {
    display: flex;
    align-items: stretch;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.event-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.event-col-header {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

body.dark-mode .event-col-header {
    color: #999;
}

.event-col-value {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .event-col-value {
    color: #E6E7E8;
}

/* Column Widths */
.event-col-name {
    flex: 1;
    min-width: 180px;
    font-weight: 600;
}

.event-col-name .event-col-value {
    color: #001D34;
    font-weight: 600;
}

body.dark-mode .event-col-name .event-col-value {
    color: #00A2E1;
}

.event-col-starts,
.event-col-ends {
    flex: 0 0 140px;
}

.event-col-location {
    flex: 0 0 120px;
}

.event-col-registrations {
    flex: 0 0 90px;
}

.event-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

/* Register Link (Public Pages) */
.register-link,
.register-link-list {
    color: #0066cc;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* Dark Mode - Event Cards & Lists */
body.dark-mode .event-list-item,
body.dark-mode .event-item {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

body.dark-mode .event-list-item:hover,
body.dark-mode .event-item:hover {
    background: #424242;
    border-color: #00A2E1;
}

body.dark-mode .event-card {
    background: #3A3A3A;
    border-color: #5A5A5A;
}

body.dark-mode .event-card:hover {
    background: #454545;
    border-color: #00A2E1;
}

body.dark-mode .event-card h3 {
    color: #00A2E1;
}

body.dark-mode .event-card-meta {
    border-color: #5A5A5A;
}

body.dark-mode .event-card-item {
    color: #C8C9CA;
}

body.dark-mode .event-card-description {
    color: #E6E7E8;
}

body.dark-mode .event-card-footer {
    border-color: #5A5A5A;
}

body.dark-mode .event-card-registrations {
    color: #C8C9CA;
}

body.dark-mode .event-info h3 {
    color: #00A2E1;
}

body.dark-mode .event-info p {
    color: #C8C9CA;
}

body.dark-mode .register-link,
body.dark-mode .register-link-list {
    color: #00A2E1;
}

/* Responsive - Event Cards & Lists */
@media (max-width: 768px) {
    .event-list-item,
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }

    .event-info h3 {
        font-size: 14px;
    }

    .event-info p {
        font-size: 12px;
    }

    .event-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .register-link,
    .register-link-list {
        font-size: 12px;
    }

    .event-card {
        padding: 15px;
    }

    .event-card h3 {
        font-size: 14px;
    }

    .event-card-item {
        font-size: 11px;
    }

    .event-card-item .icon {
        font-size: 12px;
    }

    .event-card-description {
        font-size: 12px;
    }

    .event-card-registrations {
        font-size: 11px;
    }

    .register-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .event-list-item,
    .event-item {
        padding: 12px;
    }

    .event-card {
        padding: 12px;
    }
}

/* ============================================
   Events Grid & List Layouts (Shared)
   ============================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 10px;
    align-items: start;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================
   Pagination Styles (Shared)
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.pagination-btn,
.page-button {
    background: #001D34;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.pagination-btn:hover:not(:disabled),
.page-button:hover:not(:disabled) {
    background: #003554;
    transform: translateY(-1px);
}

.pagination-btn:disabled,
.page-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Dark Mode Pagination */
body.dark-mode .pagination-btn,
body.dark-mode .page-button {
    background: #001D34;
}

body.dark-mode .pagination-btn:hover:not(:disabled),
body.dark-mode .page-button:hover:not(:disabled) {
    background: #003554;
}

body.dark-mode .pagination-btn:disabled,
body.dark-mode .page-button:disabled {
    background: #5A5A5A;
}

body.dark-mode .page-info {
    color: #C8C9CA;
}

/* ============================================
   Modal Styles (Shared)
   ============================================ */

/* Modal wrapper - contains overlay and content */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    z-index: 10001;
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    pointer-events: auto;
}

body.dark-mode .modal-content {
    background: #3A3A3A;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

body.dark-mode .modal-header h3 {
    color: #E6E7E8;
}

.modal-body {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

body.dark-mode .modal-body {
    color: #C8C9CA;
}

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

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.modal-btn-cancel:hover {
    background: #d0d0d0;
}

.modal-btn-confirm {
    background: #001D34;
    color: white;
}

.modal-btn-confirm:hover {
    background: #003554;
}

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

.modal-btn-danger:hover {
    background: #c0142e;
}

body.dark-mode .modal-btn-cancel {
    background: #5A5A5A;
    color: #E6E7E8;
}

body.dark-mode .modal-btn-cancel:hover {
    background: #6A6A6A;
}

body.dark-mode .modal-btn-confirm {
    background: #00A2E1;
}

body.dark-mode .modal-btn-confirm:hover {
    background: #0088be;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        font-size: 14px;
    }

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

    .modal-btn {
        width: 100%;
    }
}

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

.block { 
    display: block !important; 
}

.flex { 
    display: flex !important; 
}

.grid { 
    display: grid !important; 
}

/* Spacing Utilities */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

/* Flex Utilities */
.flex-between { 
    display: flex; 
    justify-content: space-between; 
}

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

.flex-gap-8 { gap: 8px; }
.flex-gap-10 { gap: 10px; }

/* Button Variants */
.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #c82333;
}

.btn-add {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

.btn-add:hover {
    background: #218838 !important;
}

.btn-save {
    background: #0066cc !important;
    color: white !important;
    border-color: #0066cc !important;
}

.btn-save:hover {
    background: #0052a3 !important;
}

.btn-cancel-action {
    background: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
}

.btn-cancel-action:hover {
    background: #5a6268 !important;
}

.btn-primary {
    background: #0066cc;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0052a3;
}

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

body.dark-mode .btn-primary {
    background: #00A2E1;
}

body.dark-mode .btn-primary:hover {
    background: #0088be;
}

body.dark-mode .btn-primary:disabled {
    background: #666;
}

/* ============================================
   Status Message Styles
   ============================================ */

.status-message {
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
    text-align: center;
    display: none;
}

.status-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.loading {
    display: block;
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

body.dark-mode .status-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #a3cfbb;
    border-color: rgba(40, 167, 69, 0.3);
}

body.dark-mode .status-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #f5c2c7;
    border-color: rgba(220, 53, 69, 0.3);
}

body.dark-mode .status-message.loading {
    background: rgba(0, 123, 255, 0.2);
    color: #9ec5fe;
    border-color: rgba(0, 123, 255, 0.3);
}

.status-message.warning {
    display: block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

body.dark-mode .status-message.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffe69c;
    border-color: rgba(255, 193, 7, 0.3);
}

/* ============================================
   Centered Card (Auth pages, confirmations, etc.)
   ============================================ */

.centered-card {
    max-width: 480px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .centered-card {
    background: #3A3A3A;
}

.centered-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.centered-card-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

body.dark-mode .centered-card-header h1 {
    color: #E6E7E8;
}

.centered-card-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

body.dark-mode .centered-card-header p {
    color: #C8C9CA;
}

.centered-card .form-group input[type="email"],
.centered-card .form-group input[type="text"],
.centered-card .form-group input[type="password"] {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    box-sizing: border-box;
}

.centered-card .form-group input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.centered-card .btn-primary {
    width: 100%;
}

/* ============================================
   Info Box
   ============================================ */

.info-box {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.info-box strong {
    color: #333;
}

body.dark-mode .info-box {
    background: #2A2A2A;
    color: #C8C9CA;
}

body.dark-mode .info-box strong {
    color: #E6E7E8;
}

/* Text Utilities */
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-danger { color: #dc3545; }
.text-success { color: #28a745; }
.text-muted { color: #999; }
.font-12 { font-size: 12px; }
.font-14 { font-size: 14px; }
.font-16 { font-size: 1rem; }
.font-18 { font-size: 1.1rem; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }

/* Margin zero utilities */
.m-0 { margin: 0; }

/* Spacing Utilities */
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mb-5 { margin-bottom: 5px; }
.mb-8 { margin-bottom: 8px; }
.mb-15 { margin-bottom: 15px; }
.mb-0 { margin-bottom: 0; }
.pb-10 { padding-bottom: 10px; }

/* Gap utilities */
.gap-half { gap: 0.5rem; }
.gap-1 { gap: 1rem; }

/* Flex utilities */
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.align-items-start { align-items: start; }

/* Border utilities */
.border-bottom-2 { 
    border-bottom: 2px solid var(--border-color);
}

/* Whitespace utilities */
.whitespace-nowrap { white-space: nowrap; }

/* Layout Utilities */
.flex-center { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Display Utilities */
.hidden {
    display: none !important;
}
.display-block { display: block; }
.display-grid { display: grid; }

/* Custom Field Styles */
.custom-field-card {
    background: var(--card-bg-secondary);
    border-left: 4px solid #0066cc;
}

.custom-field-add-card {
    border: 2px dashed var(--border-color);
    background: var(--card-bg-secondary);
}

.field-option-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.required-badge {
    background: #dc3545;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

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

.field-required-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.field-required-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.field-required-label span {
    font-size: 1rem;
    color: #212529;
    font-weight: 500;
}

body.dark-mode .field-required-label {
    background: #2A2A2A;
    border-color: #444;
}

body.dark-mode .field-required-label span {
    color: #E0E0E0;
}

.custom-field-builder {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.dark-mode .custom-field-builder {
    background: #2A2A2A;
    border-color: #444;
}

.existing-field-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

body.dark-mode .existing-field-item {
    background: #2A2A2A;
    border-color: #444;
}

/* Character counter states */
.char-counter-danger { color: #d32f2f !important; }
.char-counter-warning { color: #f57c00 !important; }
.char-counter-normal { color: var(--text-secondary) !important; }

/* Button state modifiers */
.btn-success-bg {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-warning-bg {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
}

/* Width utilities */
.w-50px { width: 50px; }

/* Visibility utilities */
.visibility-hidden { visibility: hidden; }

/* Font weight utilities */
.font-weight-500 { font-weight: 500; }

/* Required indicator */
.required-indicator {
    color: #dc3545;
}

body.dark-mode .required-indicator {
    color: #ff6b6b;
}

/* ============================================
   Common Form Styles
   ============================================ */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}

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

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

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

body.dark-mode .form-group small {
    color: #999;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.color-picker-wrapper input[type="text"] {
    flex: 1;
}

/* ============================================
   Common Button Styles
   ============================================ */

.btn-edit,
.btn-cancel {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: #f0f0f0;
    color: #333;
    transition: background 0.2s ease;
}

.btn-edit:hover,
.btn-cancel:hover {
    background: #e0e0e0;
}

body.dark-mode .btn-edit,
body.dark-mode .btn-cancel {
    background: #444;
    color: #e0e0e0;
}

body.dark-mode .btn-edit:hover,
body.dark-mode .btn-cancel:hover {
    background: #555;
}

.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: #ffebee;
    color: #d32f2f;
    transition: background 0.2s ease;
}

.btn-delete:hover {
    background: #ffcdd2;
}

body.dark-mode .btn-delete {
    background: #4a1f1f;
    color: #ff6b6b;
}

body.dark-mode .btn-delete:hover {
    background: #5a2525;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-close-modal:hover {
    background: #f0f0f0;
}

body.dark-mode .btn-close-modal {
    color: #999;
}

body.dark-mode .btn-close-modal:hover {
    background: #444;
}

/* ============================================
   Message Styles
   ============================================ */

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

body.dark-mode .error-message {
    background: #4a1f1f;
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

.success-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

body.dark-mode .success-message {
    background: #1f4a1f;
    border-left-color: #6bc76b;
    color: #6bc76b;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

body.dark-mode .loading {
    color: #999;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

body.dark-mode .empty-state {
    color: #999;
}

body.dark-mode .empty-state h3 {
    color: #e0e0e0;
}

/* ============================================
   Hero Section Buttons (Dashboard/Management Pages)
   ============================================ */

/* Back Link - Hero Style */
.hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
}

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

.hero .back-link svg {
    flex-shrink: 0;
}

body.dark-mode .hero .back-link {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .hero .back-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Create/Action Buttons - Green Style */
.btn-create-tag,
.btn-create-event {
    background: #65C296;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
    height: 35px;
    text-decoration: none;
}

.btn-create-tag:hover,
.btn-create-event:hover {
    background: #56B082;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 194, 150, 0.3);
}

.btn-create-tag .plus-icon,
.btn-create-event .plus-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

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

.mt-15 {
    margin-top: 15px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-15 {
    margin-bottom: 15px;
}

.padding-20 {
    padding: 20px;
}

.ml-8 {
    margin-left: 8px;
}

.w-80 {
    width: 80px;
}

.w-120 {
    width: 120px;
}

.w-150 {
    width: 150px;
}

.gap-8 {
    gap: 8px;
}

.text-secondary {
    color: #666;
}

body.dark-mode .text-secondary {
    color: #999;
}

.error-text {
    color: #dc2626;
    font-size: 14px;
    margin-top: 10px;
}

body.dark-mode .error-text {
    color: #ff6b6b;
}

.inline-flex {
    display: inline-flex;
}

.align-center {
    align-items: center;
}

.no-margin {
    margin: 0;
}

/* Admin pages utility classes */
.token-info {
    margin-top: 30px;
}

.token-info-list {
    margin: 10px 0 0 20px;
}

.expiry-info {
    margin-top: 15px;
}

.expiry-text {
    color: #666;
}

body.dark-mode .expiry-text {
    color: #999;
}

/* ============================================
   My Events Page Styles
   ============================================ */

.my-events-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.my-events-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 24px;
    padding: 8px 0;
}

.my-events-container .back-link:hover {
    color: #0052a3;
}

body.dark-mode .my-events-container .back-link {
    color: #00A2E1;
}

body.dark-mode .my-events-container .back-link:hover {
    color: #66c7ef;
}

.my-events-container .page-header {
    margin-bottom: 32px;
}

.my-events-container .page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #001D34;
    margin: 0 0 8px 0;
}

body.dark-mode .my-events-container .page-header h1 {
    color: #E6E7E8;
}

.my-events-container .welcome-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

body.dark-mode .my-events-container .welcome-text {
    color: #999;
}

.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.registration-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

body.dark-mode .registration-card {
    background: #3A3A3A;
    border-color: #5A5A5A;
}

.registration-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

.registration-card .event-title {
    font-size: 20px;
    font-weight: 600;
    color: #001D34;
    margin: 0 0 4px 0;
}

body.dark-mode .registration-card .event-title {
    color: #E6E7E8;
}

.registration-card .event-title a {
    color: inherit;
    text-decoration: none;
}

.registration-card .event-title a:hover {
    color: #0066cc;
}

body.dark-mode .registration-card .event-title a:hover {
    color: #00A2E1;
}

.registration-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.registration-status.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.registration-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.registration-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

body.dark-mode .registration-status.status-confirmed {
    background: rgba(40, 167, 69, 0.2);
    color: #a3cfbb;
}

body.dark-mode .registration-status.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffe69c;
}

body.dark-mode .registration-status.status-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #f5c2c7;
}

.registration-card .event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

body.dark-mode .registration-card .event-details {
    color: #999;
}

.registration-card .event-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.registration-card .event-detail svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.registration-meta {
    font-size: 13px;
    color: #888;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

body.dark-mode .registration-meta {
    color: #999;
    border-top-color: #5A5A5A;
}

/* My Events - Loading State */
.my-events-container .loading-state {
    text-align: center;
    padding: 60px 24px;
    color: #666;
}

body.dark-mode .my-events-container .loading-state {
    color: #999;
}

.my-events-container .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

body.dark-mode .my-events-container .loading-spinner {
    border-color: #5A5A5A;
    border-top-color: #00A2E1;
}

/* My Events - Error State */
.my-events-container .error-state {
    text-align: center;
    padding: 60px 24px;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

body.dark-mode .my-events-container .error-state {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.my-events-container .error-state h2 {
    color: #991b1b;
    margin: 0 0 12px 0;
}

body.dark-mode .my-events-container .error-state h2 {
    color: #fca5a5;
}

.my-events-container .error-state p {
    color: #7f1d1d;
    margin: 0 0 24px 0;
}

body.dark-mode .my-events-container .error-state p {
    color: #fecaca;
}







/* ===========================================
   My Events View (SPA) Styles
   =========================================== */

/* My Events Header Row */
.my-events-header {
    display: flex;
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 4px;
}

body.dark-mode .my-events-header {
    background: #2a2a2a;
}

.my-events-header .header-col {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

body.dark-mode .my-events-header .header-col {
    color: #A0A0A0;
}

.my-events-header .header-name {
    flex: 1;
    min-width: 180px;
}

.my-events-header .header-start {
    flex: 0 0 140px;
}

.my-events-header .header-location {
    flex: 0 0 120px;
}

.my-events-header .header-status {
    flex: 0 0 140px;
}

.my-events-header .header-actions {
    flex: 0 0 60px;
    text-align: center;
}

/* My Events Status Column */
.event-col-status {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-col-subvalue {
    font-size: 11px;
    color: #666;
}

body.dark-mode .event-col-subvalue {
    color: #A0A0A0;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

.status-badge.status-upcoming {
    background: #dcfce7;
    color: #166534;
}

body.dark-mode .status-badge.status-upcoming {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.status-badge.status-past {
    background: #f3f4f6;
    color: #6b7280;
}

body.dark-mode .status-badge.status-past {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* Small Edit Button */
.btn-edit-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-small:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

body.dark-mode .btn-edit-small {
    border-color: #444;
    color: #A0A0A0;
}

body.dark-mode .btn-edit-small:hover {
    background: #00A2E1;
    border-color: #00A2E1;
    color: #1E1E1E;
}

.empty-filter-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

body.dark-mode .empty-filter-state {
    color: #A0A0A0;
}

/* Auth Required State buttons */
#myEventsSection .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

#myEventsSection .btn-primary:hover {
    background: #0052a3;
}

#myEventsSection .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

#myEventsSection .btn-secondary:hover {
    background: #0066cc;
    color: white;
}

body.dark-mode #myEventsSection .btn-primary {
    background: #00A2E1;
}

body.dark-mode #myEventsSection .btn-primary:hover {
    background: #0088c7;
}

body.dark-mode #myEventsSection .btn-secondary {
    color: #00A2E1;
    border-color: #00A2E1;
}

body.dark-mode #myEventsSection .btn-secondary:hover {
    background: #00A2E1;
    color: #1E1E1E;
}

/* Edit Registration Modal */
.edit-registration-modal {
    max-width: 500px;
    width: 90%;
}

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

body.dark-mode .edit-registration-modal .modal-header {
    border-color: #3a3a3a;
}

.edit-registration-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.edit-registration-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.edit-registration-modal .modal-close:hover {
    color: #333;
}

body.dark-mode .edit-registration-modal .modal-close {
    color: #A0A0A0;
}

body.dark-mode .edit-registration-modal .modal-close:hover {
    color: #ECECEC;
}

.edit-registration-modal .modal-body {
    padding: 24px;
}

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

.edit-registration-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

body.dark-mode .edit-registration-modal .form-group label {
    color: #ECECEC;
}

.edit-registration-modal .form-group input,
.edit-registration-modal .form-group select,
.edit-registration-modal .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
}

body.dark-mode .edit-registration-modal .form-group input,
body.dark-mode .edit-registration-modal .form-group select,
body.dark-mode .edit-registration-modal .form-group textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #ECECEC;
}

.edit-registration-modal .form-group input:focus,
.edit-registration-modal .form-group select:focus,
.edit-registration-modal .form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

body.dark-mode .edit-registration-modal .form-group input:focus,
body.dark-mode .edit-registration-modal .form-group select:focus,
body.dark-mode .edit-registration-modal .form-group textarea:focus {
    border-color: #00A2E1;
    box-shadow: 0 0 0 2px rgba(0, 162, 225, 0.2);
}

.edit-registration-modal .form-group input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

body.dark-mode .edit-registration-modal .form-group input:disabled {
    background: #1a1a1a;
    color: #666;
}

.edit-registration-modal .form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

body.dark-mode .edit-registration-modal .form-hint {
    color: #888;
}

.edit-registration-modal .form-section-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

body.dark-mode .edit-registration-modal .form-section-header {
    color: #ECECEC;
    border-color: #3a3a3a;
}

.edit-registration-modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.edit-registration-modal .checkbox-label input[type="checkbox"] {
    width: auto;
}

.edit-registration-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

body.dark-mode .edit-registration-modal .modal-actions {
    border-color: #3a3a3a;
}

.edit-registration-modal .btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #d1d5db;
    color: #666;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-registration-modal .btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

body.dark-mode .edit-registration-modal .btn-secondary {
    border-color: #444;
    color: #A0A0A0;
}

body.dark-mode .edit-registration-modal .btn-secondary:hover {
    background: #333;
    border-color: #666;
}

.edit-registration-modal .btn-primary {
    padding: 10px 20px;
    background: #0066cc;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-registration-modal .btn-primary:hover {
    background: #0052a3;
}

.edit-registration-modal .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

body.dark-mode .edit-registration-modal .btn-primary {
    background: #00A2E1;
}

body.dark-mode .edit-registration-modal .btn-primary:hover {
    background: #0088c7;
}

body.dark-mode .edit-registration-modal .btn-primary:disabled {
    background: #444;
}

/* Responsive - My Events on mobile */
@media (max-width: 768px) {
    .my-events-header {
        display: none;
    }
    
    .my-event-item .event-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .my-event-item .event-col {
        flex: none !important;
        width: 100%;
    }
    
    .my-event-item .event-actions {
        width: 100%;
        margin-top: 8px;
    }
    
    .my-event-item .btn-edit-small {
        width: 100%;
    }
    
    .edit-registration-modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}



/* ===========================================
   UI Component Library Styles
   =========================================== */

/* Guest Info Display (for magic link users) */
.guest-info {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.guest-email {
    font-size: 14px;
    opacity: 0.9;
}

.theme-toggle-mini {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 6px;
}

.theme-toggle-mini .theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle-mini .theme-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle-mini .theme-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Profile Photo in Avatar */
.profile-avatar .profile-photo,
.profile-avatar-large .profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Toast Notifications */
.ui-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

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

.ui-toast-success {
    background: #059669;
}

.ui-toast-error {
    background: #dc2626;
}

.ui-toast-warning {
    background: #d97706;
}

.ui-toast-info {
    background: #0066cc;
}

.ui-toast-message {
    flex: 1;
    font-size: 14px;
}

.ui-toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.ui-toast-close:hover {
    opacity: 1;
}

body.dark-mode .ui-toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

