/* ===== ADMIN PORTAL - SOFT UI MINIMAL THEME ===== */
/* Note: Core variables are in /css/variables.css */

/* Admin-specific variable extensions */
:root {
    /* Legacy aliases - kept for compatibility during migration */
    --bg-main: var(--bg-primary);
    --white: #FFFFFF;
    --active-bg: #f4f2ef;
    --text-dark: #111827;
    --text-gray: #374151;
    --text-label: #6B7280;
    --section-label: #6f6e6b;
    --border-light: var(--border-subtle);
    --shadow-card: var(--shadow-md);
    --shadow-search: var(--shadow-sm);
    --accent-purple: #181514;
    --green-text: var(--success);
    --green-bg: var(--success-bg);
    --red-text: var(--error);
    --red-bg: var(--error-bg);
    --icon-container-bg: #F3F4F6;
}

/* ===== ADMIN PORTAL LAYOUT ===== */
/* Note: Base portal styles are in /css/base.css */

.admin-portal {
    background: var(--bg-main);
}

html[data-theme="light"] .admin-portal {
    background: var(--bg-main);
}

html[data-theme="light"] .admin-portal .admin-content,
.admin-portal .admin-content {
    background: transparent;
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 36px 40px;
    min-height: 100vh;
    position: relative;
}

/* Ensure all content elements appear above the wave decoration */
.admin-portal .admin-content > *,
.admin-portal .admin-content section,
.admin-portal .admin-content .dashboard-header,
.admin-portal .admin-content .stats-row,
.admin-portal .admin-content .content-section {
    position: relative;
    z-index: 2;
}

/* ===== SIDEBAR ===== */
/* Using #adminSidebar for high specificity to override styles.css */
#adminSidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: var(--sidebar-width) !important;
    height: 100vh !important;
    min-height: auto !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 100 !important;
    padding: 24px 20px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(0);
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-right: 1px solid #e5e5e5 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Sidebar children */
#adminSidebar > * {
    visibility: visible;
    opacity: 1;
    position: static;
}

/* Reset nav styles inside sidebar - prevent landing page nav styles from applying */
#adminSidebar nav,
#adminSidebar .sidebar-nav {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

/* Logo Section */
#adminSidebar .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 0 8px;
    flex-shrink: 0;
}

#adminSidebar .sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

#adminSidebar .sidebar-logo .logo-text-svg {
    height: 22px;
    width: auto;
    top: 3px;
    position: relative;
    top: 3px;
}

/* Sidebar Divider */
#adminSidebar .sidebar-divider {
    height: 1px;
    background: #e5e4e4;
    margin: 12px 8px;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
}

/* Sidebar Links */
#adminSidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 2px 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    background: transparent;
    background-image: none;
    width: 230px;
}

#adminSidebar .sidebar-link:hover {
    background: #f4f2ef;
    background-image: none;
    color: var(--text-primary);
}

#adminSidebar .sidebar-link.active {
    background: #f4f2ef;
    background-image: none;
    color: #181514;
    font-weight: 600;
    padding: 14px 20px;
    margin: 4px 0;
    border-radius: 20px;
    width: 230px;
}

#adminSidebar .sidebar-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 1.5;
    flex-shrink: 0;
}

#adminSidebar .sidebar-link.active svg {
    stroke: #181514;
}

/* Sidebar Bottom */
#adminSidebar .sidebar-bottom {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

#adminSidebar .sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

#adminSidebar .user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

#adminSidebar .user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Mobile Sidebar */
@media (max-width: 900px) {
    #adminSidebar {
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 200 !important;
        padding: 20px 16px !important;
        -webkit-overflow-scrolling: touch;
    }

    #adminSidebar.open {
        transform: translateX(0) !important;
    }

    .sidebar-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 150 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-backdrop.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ===== DASHBOARD HEADER ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.greeting-section {
    display: flex;
    flex-direction: column;
}

.greeting-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.greeting-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

/* Header Search - Pill shaped */
.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    padding: 12px 20px;
    min-width: 350px;
    height: 48px;
    box-shadow: var(--shadow-search);
}

.header-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

/* Page Header Row */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Page Title */
[data-theme="light"] .page-title {
    color: var(--text-dark);
    font-weight: 600;
}

/* Search Box - Pill shaped (same as dashboard header-search) */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0 20px;
    min-width: 300px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-search);
}

[data-theme="light"] .search-box,
.admin-portal .search-box {
    background: #FFFFFF;
    border: 1px solid #e5e4e4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .search-box:focus-within,
.admin-portal .search-box:focus-within {
    border-color: #181514;
    box-shadow: 0 0 0 3px rgba(24, 21, 20, 0.05);
    background: #FFFFFF;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== UNIFIED PAGE TEMPLATE ===== */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.page-header-btn:hover {
    background: var(--accent-hover);
}

.page-header-btn.secondary {
    background: var(--btn-white-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.page-header-btn.secondary:hover {
    border-color: var(--accent);
}

.page-header-btn .btn-icon {
    display: flex;
    align-items: center;
}

.page-header-btn .btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Page Toolbar */
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toolbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 20px;
    min-width: 300px;
    height: 44px;
    transition: all 0.2s ease;
}

.toolbar-search:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(24, 21, 20, 0.05);
}

.toolbar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
}

.toolbar-search input::placeholder {
    color: var(--text-muted);
}

.toolbar-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 14px;
    background: var(--btn-white-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 14px;
    background: var(--btn-white-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-tab:hover {
    border-color: var(--accent);
}

.filter-tab.active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

/* Filter Group with Label */
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Page Content */
.page-content {
    margin-top: 1rem;
}

/* Block Actions in Header */
.block-actions {
    display: flex;
    gap: 8px;
}

.block-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.block-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Settings page blocks - reuse detail-block */
#page-settings .page-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-search {
        min-width: unset;
        width: 100%;
    }

    .toolbar-filters {
        width: 100%;
        overflow-x: auto;
    }

    .filter-buttons {
        flex-wrap: nowrap;
    }
}

/* Venues Grid */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.venue-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Light mode venue card - visible border */
[data-theme="light"] .venue-card {
    background: #ffffff;
    border: 1px solid #e0e0e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.venue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .venue-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d5;
}

.venue-card-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
}

.venue-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #181514;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    border: 1px solid #e5e4e4;
    overflow: hidden;
}

/* Venue avatar with logo */
.venue-avatar.has-logo {
    background: #ffffff;
}

/* Fill mode - covers the frame, may crop */
.venue-avatar img.fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fit mode - shows entire image, avatar background shows through */
.venue-avatar img.fit {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.venue-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.venue-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.venue-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.venue-card-body {
    padding: 1.25rem;
}

.venue-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.reviewed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #0dac38;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: auto;
}

.venue-location {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.venue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.venue-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(139, 92, 246, 0.15);
    color: #7C3AED;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.venue-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.venue-stat {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.venue-stat strong {
    color: var(--text-primary);
}

/* User Row - Legacy card style (kept for compatibility) */
.users-list .user-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.users-list .user-row:hover {
    background: #f9f8f7;
    border-color: #d5d4d4;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #181514;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta {
    flex-shrink: 0;
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.admin {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* Action Button Small */
.action-btn.small {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

/* Loading & Empty States */
.loading-state,
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.connected {
    background: #e5e4e4;
    color: #181514;
    border: 1px solid #0dac38;
}

.status-badge.disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ===== SETTINGS PAGE STYLING ===== */
#page-settings .settings-card {
    background: #ffffff;
    border: 1px solid #e5e4e4;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

#page-settings .settings-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e4e4;
}

#page-settings .form-group {
    margin-bottom: 1.25rem;
}

#page-settings .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-label);
    margin-bottom: 0.5rem;
}

#page-settings .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e4e4;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#page-settings .form-group input:focus {
    outline: none;
    border-color: #181514;
    box-shadow: 0 0 0 3px rgba(24, 21, 20, 0.05);
}

#page-settings .save-btn,
#page-settings .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

#page-settings .save-btn:hover,
#page-settings .btn-primary:hover {
    background: #333;
}

/* Stat Card Icons */
.stat-icon svg {
    width: 20px;
    height: 20px;
}

/* Users List Container */
.users-list {
    display: flex;
    flex-direction: column;
}

/* Events List in Admin - Card Grid */
#allEventsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
}

#allEventsList .event-row {
    cursor: default;
}

#allEventsList .empty-state {
    grid-column: 1 / -1;
}

/* ===== IMAGE UPLOAD SECTION ===== */
.image-upload-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.current-image {
    width: 150px;
    height: 100px;
    border-radius: 12px;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 2px dashed var(--border-color, rgba(255, 255, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.current-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.image-upload-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.image-upload-controls input[type="url"] {
    width: 100%;
}

.upload-btn-row {
    display: flex;
    gap: 0.5rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--btn-white-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: border-color var(--transition);
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--btn-white-bg);
    border-color: var(--text-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--text-primary);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Tag Accordion */
.tag-accordion-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
}

.tag-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tag-accordion-arrow {
    transition: transform 0.2s ease;
}

.tag-accordion-section.open .tag-accordion-arrow {
    transform: rotate(180deg);
}

.tag-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    cursor: default;
}

.tag-accordion-section.open .tag-accordion-body {
    max-height: 500px;
}

.tag-accordion-body .tag-categories {
    padding: 12px 14px 14px;
}

/* Wide Modal */
.modal.modal-wide {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Large Modal for Edit Forms */
.modal.modal-large {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.modal-large.modal-fixed {
    overflow: hidden;
}

.modal.modal-large .modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Image Upload Controls Full Width */
.image-upload-controls.full-width {
    width: 100%;
}

/* Card Previews */
.card-previews {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
}

.previews-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.previews-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.preview-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.preview-square {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    background: var(--bg-dark, #1a1a2e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-rectangle {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: var(--bg-dark, #1a1a2e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Light mode preview boxes */
[data-theme="light"] .preview-square,
[data-theme="light"] .preview-rectangle {
    background: #ffffff;
    border: 1px solid #d1d1d6;
}

/* Fill mode - covers the frame, may crop */
.preview-square img.fill,
.preview-rectangle img.fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fit mode - shows entire image with white background */
.preview-square img.fit,
.preview-rectangle img.fit {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===== Geocode Button ===== */
.address-geocode-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.geocode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    height: 44px;
}

.geocode-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== TYPE FILTER BUTTONS (Venues Page) ===== */
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.type-filter-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.type-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #181514;
    background: #ffffff;
    border: 1px solid #e5e4e4;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .type-btn {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.type-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Type-specific colors for active filter buttons */
.type-btn[data-type="bar"].active {
    background: #8B4513;
    border-color: #8B4513;
    color: white;
}
.type-btn[data-type="culture"].active {
    background: #DAA520;
    border-color: #DAA520;
    color: white;
}
.type-btn[data-type="health"].active {
    background: #2E8B57;
    border-color: #2E8B57;
    color: white;
}
.type-btn[data-type="sauna"].active {
    background: #4682B4;
    border-color: #4682B4;
    color: white;
}
.type-btn[data-type="shop"].active {
    background: #708090;
    border-color: #708090;
    color: white;
}
.type-btn[data-type="social"].active {
    background: #E67E22;
    border-color: #E67E22;
    color: white;
}

/* ===== STYLED SELECT DROPDOWN (Edit Modal) ===== */
.styled-select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    width: 100%;
    transition: all 0.2s;
}

[data-theme="dark"] .styled-select {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.styled-select:hover {
    border-color: #181514;
}

.styled-select:focus {
    outline: none;
    border-color: #181514;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .styled-select {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Venue Type Badge on Card - black border, white background */
.venue-type-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #181514;
    background: #ffffff;
    color: #181514;
}

/* All type badges use same style */
.venue-type-badge.type-bar,
.venue-type-badge.type-culture,
.venue-type-badge.type-health,
.venue-type-badge.type-sauna,
.venue-type-badge.type-shop,
.venue-type-badge.type-social {
    background: #ffffff;
    color: #181514;
    border-color: #181514;
}

/* Party verified badge */
.venue-type-badge.type-verified {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

/* Logo Background Badge - for display in overview */
.logo-background-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.logo-background-badge .color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Logo Background Picker - Compact Swatch Design */
.logo-background-row {
    margin-top: 12px;
}

.logo-background-row > label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.logo-bg-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.logo-bg-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 52px;
}

.logo-bg-swatch:hover {
    border-color: var(--accent);
}

.logo-bg-swatch.active {
    border-color: var(--accent);
    background: rgba(209, 115, 89, 0.06);
}

.swatch-color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.swatch-color.black { background: #000000; }
.swatch-color.white { background: #FFFFFF; border: 1px solid var(--border); }
.swatch-color.adaptive { background: linear-gradient(135deg, #000 50%, #fff 50%); border: 1px solid var(--border); }
.swatch-color.custom {
    background: var(--bg-primary);
    border: 1.5px dashed var(--border);
    color: var(--text-muted);
}

.logo-bg-swatch:hover .swatch-color.custom,
.logo-bg-swatch.active .swatch-color.custom {
    border-color: var(--accent);
    color: var(--accent);
}

.swatch-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.logo-bg-swatch.active .swatch-label {
    color: var(--accent);
    font-weight: 600;
}

/* Custom Hex Input - Compact */
.custom-hex-wrapper {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.custom-hex-wrapper.show {
    display: flex;
}

.custom-hex-input {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.custom-hex-input:focus {
    outline: none;
    border-color: var(--accent);
}

.hex-preview {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #000000;
    flex-shrink: 0;
}

/* Logo Background Display - for overview */
.logo-bg-display {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border);
    vertical-align: middle;
    margin-right: 4px;
}

.logo-bg-display.black {
    background-color: #000000;
}

.logo-bg-display.white {
    background-color: #FFFFFF;
}

.logo-bg-display.adaptive {
    background: linear-gradient(135deg, #000 50%, #fff 50%);
}

/* Venue Status badge - active has green border */
.venue-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e5e4e4;
    color: #181514;
    border: 1px solid #0dac38;
}

.venue-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #92400E;
    border-color: rgba(251, 191, 36, 0.3);
}

.venue-status.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #991B1B;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Type-specific venue card header backgrounds */
.venue-card-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.venue-card-header.type-bar {
    background: rgba(139, 69, 19, 0.08);
}
.venue-card-header.type-culture {
    background: rgba(218, 165, 32, 0.08);
}
.venue-card-header.type-party {
    background: var(--bg-hover);
}
.venue-card-header.type-health {
    background: rgba(46, 139, 87, 0.08);
}
.venue-card-header.type-sauna {
    background: rgba(70, 130, 180, 0.08);
}
.venue-card-header.type-shop {
    background: rgba(112, 128, 144, 0.08);
}
.venue-card-header.type-social {
    background: rgba(230, 126, 34, 0.08);
}

/* Venue avatar with border */
.venue-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    border: 1px solid #e5e4e4;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Type-specific avatar backgrounds (when no logo) */
.venue-avatar.type-bar { background: #5D3A1A; }
.venue-avatar.type-culture { background: #8B6914; }
.venue-avatar.type-party { background: var(--accent); }
.venue-avatar.type-health { background: #1D5C3A; }
.venue-avatar.type-sauna { background: #2E5A7A; }
.venue-avatar.type-shop { background: #4A5568; }
.venue-avatar.type-social { background: #9A5518; }

/* Venue avatar with logo */
.venue-avatar.has-logo {
    background: #ffffff;
    border-color: #e0e0e5;
}

/* ===== EXTRA LARGE MODAL WITH FIXED HEADER/FOOTER ===== */
.modal.modal-xlarge {
    max-width: 1400px;
    width: 98%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.modal-fixed {
    overflow: hidden;
}

.modal-header-fixed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

[data-theme="light"] .modal-header-fixed {
    border-bottom-color: #e5e5e7;
}

.modal-header-fixed h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer-fixed {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

[data-theme="light"] .modal-footer-fixed {
    border-top-color: #e5e5e7;
    background: #fafafa;
}

/* ===== VENUE EVENTS SECTION ===== */
.venue-events-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

[data-theme="light"] .venue-events-section {
    border-top-color: #e5e5e7;
}

.venue-events-section .section-header h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.events-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box.small {
    min-width: 180px;
    padding: 0.4rem 0.75rem;
}

.search-box.small input {
    font-size: 0.85rem;
}

.event-filter-btns {
    display: flex;
    gap: 0.35rem;
}

.event-filter-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    background: transparent;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .event-filter-btn {
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.2);
}

.event-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.event-filter-btn.active {
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-text);
}

/* Venue Events List */
.venue-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.venue-event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="light"] .venue-event-item {
    background: #ffffff;
    border-color: #e5e4e4;
}

.venue-event-item:hover {
    border-color: #d5d4d4;
    background: #f4f2ef;
}

.venue-event-item.expanded {
    flex-direction: column;
    align-items: stretch;
}

.venue-event-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.venue-event-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    flex-shrink: 0;
    overflow: hidden;
}

.venue-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-event-info {
    flex: 1;
    min-width: 0;
}

.venue-event-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-event-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.venue-event-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

.venue-event-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid;
}

.venue-event-status.upcoming {
    background: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
    border-color: rgba(139, 92, 246, 0.3);
}

.venue-event-status.past {
    background: rgba(156, 163, 175, 0.15);
    color: #4B5563;
    border-color: rgba(156, 163, 175, 0.3);
}

/* Event Details (expanded) */
.venue-event-details {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

[data-theme="light"] .venue-event-details {
    border-top-color: #e5e5e7;
}

.venue-event-details p {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.venue-event-details .detail-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.venue-event-details .detail-label {
    color: var(--text-muted);
    min-width: 80px;
}

.venue-event-details .detail-value {
    color: var(--text-primary);
}

/* Pagination */
.events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

[data-theme="light"] .events-pagination {
    border-top-color: #e5e5e7;
}

.pagination-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== BODY SCROLL LOCK WHEN MODAL OPEN ===== */
body.modal-open {
    overflow: hidden;
}

/* ===== THREE-COLUMN MODAL LAYOUT ===== */
.modal-three-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 1.5rem;
    height: 100%;
}

.modal-column-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-column-center {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    padding-left: 1.5rem;
    overflow: hidden;
}

[data-theme="light"] .modal-column-center {
    border-left-color: #e5e5e7;
}

.modal-column-center .venue-events-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-column-center .venue-events-list {
    flex: 1;
    max-height: none;
    overflow-y: auto;
}

.modal-column-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    padding-left: 1.5rem;
}

[data-theme="light"] .modal-column-right {
    border-left-color: #e5e5e7;
}

/* Venue Statistics Section */
.venue-stats-section h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.venue-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.venue-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
}

[data-theme="light"] .venue-stat-item {
    background: #fafafa;
    border-color: #e5e5e7;
}

.venue-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.venue-stat-icon.pink { background: #ec4899; color: white; }
.venue-stat-icon.blue { background: #3b82f6; color: white; }
.venue-stat-icon.green { background: #22c55e; color: white; }
.venue-stat-icon.purple { background: #181514; color: white; }
.venue-stat-icon.orange { background: #f97316; color: white; }

.venue-stat-icon svg {
    width: 18px;
    height: 18px;
}

.venue-stat-info {
    flex: 1;
    min-width: 0;
}

.venue-stat-info .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.venue-stat-info .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== IMAGE LIGHTBOX ===== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.image-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ec4899;
}

/* ===== EDITABLE EVENT DETAILS ===== */
.event-edit-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.event-edit-form .form-group {
    margin-bottom: 0;
}

.event-edit-form .form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.event-edit-form .form-group input,
.event-edit-form .form-group textarea {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.event-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.event-edit-actions button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.event-edit-actions .save-event-btn {
    background: var(--accent);
    color: var(--accent-text);
    border: none;
}

.event-edit-actions .save-event-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.event-edit-actions .cancel-event-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
}

/* Event Image Click Area */
.venue-event-thumb.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.venue-event-thumb.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Expanded Event Image */
.event-detail-image {
    width: 100%;
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-detail-image:hover img {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1100px) {
    .modal-three-columns {
        grid-template-columns: 1fr 1fr;
    }

    .modal-column-right {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
        padding-left: 0;
        padding-top: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .modal-column-right .venue-stats-section h3 {
        width: 100%;
    }

    .modal-column-right .venue-stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .modal-column-right .venue-stat-item {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 900px) {
    .modal-three-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-column-center {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
        padding-top: 1rem;
    }

    [data-theme="light"] .modal-column-center {
        border-top-color: #e5e5e7;
    }
}

@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

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

    .users-list .user-row {
        flex-wrap: wrap;
    }

    .users-list .user-meta {
        width: 100%;
        margin-top: 0.5rem;
    }

    .image-upload-section {
        flex-direction: column;
    }

    .current-image {
        width: 100%;
        height: 150px;
    }

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

    .type-filter-btns {
        flex-wrap: wrap;
    }

    .type-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ===== VENUE CARD EDIT BUTTON ===== */
.venue-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.venue-edit-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d1d6;
    background: #ffffff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .venue-edit-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.venue-edit-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
    transform: scale(1.05);
}

/* ===== VENUE DETAIL PAGE ===== */
.detail-toolbar {
    flex-wrap: wrap;
    gap: 1rem;
}

/* Venue Detail Header */
.detail-venue-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
}

[data-theme="light"] .detail-venue-header {
    background: #ffffff;
    border-color: #e5e4e4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Type-specific header backgrounds */
.detail-venue-header.type-bar { background: rgba(139, 69, 19, 0.1); }
.detail-venue-header.type-culture { background: rgba(218, 165, 32, 0.1); }
.detail-venue-header.type-health { background: rgba(46, 139, 87, 0.1); }
.detail-venue-header.type-sauna { background: rgba(70, 130, 180, 0.1); }
.detail-venue-header.type-shop { background: rgba(112, 128, 144, 0.1); }
.detail-venue-header.type-social { background: rgba(230, 126, 34, 0.1); }

.detail-venue-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    flex-shrink: 0;
}

/* Type-specific detail logo backgrounds */
.detail-venue-logo.type-bar { background: #5D3A1A; }
.detail-venue-logo.type-culture { background: #8B6914; }
.detail-venue-logo.type-health { background: #1D5C3A; }
.detail-venue-logo.type-sauna { background: #2E5A7A; }
.detail-venue-logo.type-shop { background: #4A5568; }
.detail-venue-logo.type-social { background: #9A5518; }

.detail-venue-logo.has-logo {
    background: #ffffff;
    border-color: #e0e0e5;
}

.detail-venue-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-venue-info {
    flex: 1;
}

.detail-venue-info h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stats Bar - Dashboard style cards */
.detail-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .detail-stats-bar {
    gap: 24px;
}

.detail-stat {
    background: linear-gradient(to bottom, #f3efea 0%, #ffffff 100%);
    border: 1px solid #e5e4e4;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.detail-stat:not(:last-child) {
    border-right: none;
}

[data-theme="light"] .detail-stat:not(:last-child) {
    border-right: none;
}

.detail-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 4px;
}

.detail-stat-label {
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    padding-bottom: 0.5rem;
}

[data-theme="light"] .detail-tabs {
    border-bottom-color: #e0e0e5;
}

.detail-tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -3px;
}

.detail-tab-btn:hover {
    color: var(--text-primary);
}

.detail-tab-btn.active {
    color: #181514;
    border-bottom-color: #181514;
}

/* Tab Content */
.detail-tab-content {
    display: none;
}

.detail-tab-content.active {
    display: block;
}

/* Overview Tab */
.overview-details {
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
}

[data-theme="light"] .overview-details {
    background: #ffffff;
    border-color: #e0e0e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.overview-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.edit-overview-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.edit-overview-btn:hover {
    border-color: var(--accent);
}

.overview-grid {
    display: grid;
    gap: 1.25rem;
}

.overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.overview-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.overview-value a {
    color: #181514;
    text-decoration: none;
}

.overview-value a:hover {
    text-decoration: underline;
}

/* Happy Hours Tab */
.happy-hours-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-happy-hour-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-happy-hour-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.add-happy-hour-btn svg {
    width: 16px;
    height: 16px;
}

/* Events toolbar alignment */
.events-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.events-toolbar .search-box.small {
    flex: 1;
    min-width: 150px;
}

.events-toolbar .event-filter-btns {
    display: flex;
    gap: 0.25rem;
}

.happy-hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.happy-hour-day {
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

[data-theme="light"] .happy-hour-day {
    background: #ffffff;
    border-color: #e0e0e5;
}

.happy-hour-day h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #181514;
}

.happy-hour-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
    position: relative;
}

.happy-hour-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.happy-hour-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.happy-hour-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #181514;
    min-width: 110px;
    flex-shrink: 0;
}

.happy-hour-deals {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.deal-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f4f2ef;
    color: #181514;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.happy-hour-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hh-edit-btn,
.hh-delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d1d6;
    background: #ffffff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.hh-edit-btn:hover,
.hh-delete-btn:hover {
    border-color: var(--accent);
}

.hh-inactive-badge {
    position: absolute;
    top: 0.5rem;
    right: 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
    border-radius: 4px;
}

/* Medium Modal */
.modal.modal-medium {
    max-width: 500px;
    width: 95%;
}

.modal.modal-wide .modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Styled Input for time picker */
.styled-input {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    width: 100%;
    transition: all 0.2s;
}

.styled-input:hover {
    border-color: #181514;
}

.styled-input:focus {
    outline: none;
    border-color: #181514;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* ===== EDIT MODAL FIELD TYPES ===== */

/* File upload button */
.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--btn-white-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition);
}

.file-upload-btn:hover {
    border-color: var(--accent);
}

.file-upload-btn svg {
    flex-shrink: 0;
}

/* Form divider/separator */
.form-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px;
    gap: 12px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
}

.form-divider:empty::before {
    display: block;
}

.form-divider:empty::after {
    display: none;
}

/* Fieldset group */
.form-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0 0 16px;
}

.form-fieldset legend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 8px;
}

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

/* Image preview container */
.image-preview-container {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.image-preview-container.hidden {
    display: none;
}

.image-preview-frame {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.image-preview-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Logo background swatch picker */
.logo-bg-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.logo-bg-swatch {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s;
    position: relative;
}

.logo-bg-swatch:hover {
    transform: scale(1.1);
}

.logo-bg-swatch.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.logo-bg-swatch.black {
    background: #000000;
}

.logo-bg-swatch.white {
    background: #FFFFFF;
}

.logo-bg-swatch.adaptive {
    background: linear-gradient(135deg, #000 50%, #fff 50%);
}

.logo-bg-swatch.custom {
    background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
}

/* Custom hex input */
.custom-hex-wrapper {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.custom-hex-wrapper.show {
    display: flex;
}

.custom-hex-wrapper input {
    width: 100px;
    padding: 6px 10px;
    font-size: 0.875rem;
}

.hex-preview {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Events Tab in Detail Page */
#tab-events .events-toolbar {
    margin-bottom: 1rem;
}

#tab-events .venue-events-list {
    max-height: none;
}

/* Responsive for Detail Page */
@media (max-width: 768px) {
    .detail-toolbar {
        flex-direction: column;
    }

    .detail-venue-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-venue-info h1 {
        font-size: 1.5rem;
    }

    .detail-stats-bar {
        flex-wrap: wrap;
    }

    .detail-stat {
        min-width: 45%;
        flex: 1 1 45%;
    }

    .detail-stat:not(:last-child) {
        border-right: none;
    }

    .detail-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-tab-btn {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .happy-hour-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .happy-hour-time {
        min-width: auto;
    }
}

/* ===== EXPORT/IMPORT STYLES ===== */

/* Header Button Group */
.header-btn-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

/* Add Venue button - terra-cotta accent */
.header-btn:not(.secondary) {
    background: var(--accent);
    color: var(--accent-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-btn:not(.secondary):hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Export/Import buttons - white background */
.header-btn.secondary {
    background: var(--btn-white-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-btn.secondary:hover {
    border-color: var(--accent);
}

.header-btn svg {
    width: 16px;
    height: 16px;
}

/* Export Modal Styles */
.export-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Import Modal Styles */
.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #d1d1d6;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-upload-area:hover {
    border-color: #181514;
    background: rgba(139, 92, 246, 0.05);
}

.file-upload-area svg {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.file-upload-area p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.file-upload-area .file-name {
    display: block;
    margin-top: 0.5rem;
    color: #181514;
    font-weight: 500;
    font-size: 0.85rem;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.import-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.85rem;
}

.import-info p {
    margin: 0 0 0.25rem 0;
    color: #374151;
}

.import-info .csv-format {
    font-family: monospace;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    margin: 0.5rem 0;
}

.import-info .csv-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Submit button with icon */
.submit-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    background: #181514;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #2a2524;
    transform: translateY(-1px);
}

/* Responsive for header button group */
@media (max-width: 600px) {
    .header-btn-group {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .header-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .header-btn span {
        display: none;
    }
}

/* ===== HAPPY HOURS TABLE (matches user-row/report-row pattern) ===== */
.hh-table {
    width: calc(100% - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 16px;
}

.hh-table-header {
    display: grid;
    grid-template-columns: 100px 140px 1fr 90px 40px;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.hh-table-body,
.hh-table .list-body {
    background: var(--bg-card);
}

.hh-row {
    display: grid;
    grid-template-columns: 100px 140px 1fr 90px 40px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    align-items: center;
}

.hh-row:last-child {
    border-bottom: none;
}

.hh-row:hover {
    background: #faf9f8;
}

.hh-row .col-day {
    font-weight: 500;
    color: var(--text-primary);
}

.hh-row .col-time {
    color: var(--text-secondary);
}

.hh-row .col-deals {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-row .col-status {
    text-align: right;
}

/* Happy Hour status badge */
.hh-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hh-status-badge.active {
    background: var(--success-bg);
    color: var(--success);
}

.hh-status-badge.inactive {
    background: var(--bg-hover);
    color: var(--text-muted);
}

/* Shared row action button (used in scraping lists for refresh) */
.row-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.row-action-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

.col-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

/* Shared row delete button (used in happy hours, tags, scraping lists) */
.row-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.row-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.col-delete {
    display: flex;
    justify-content: flex-end;
}

/* ===== TAGS TABLE (detail page list) ===== */
.tags-table {
    width: calc(100% - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 16px;
}

.tags-row {
    display: grid;
    grid-template-columns: 150px 1fr 100px 40px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    align-items: center;
}

.tags-row:last-child {
    border-bottom: none;
}

.tags-row:hover {
    background: var(--bg-hover);
}

.tags-row .col-pattern {
    font-weight: 500;
    color: var(--text-primary);
}

.tags-row .col-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags-row .col-tags .tag-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tags-row .col-type {
    text-align: right;
}

/* ===== SCRAPING TABLE (detail page list) ===== */
/* Scraping Modal - Large 2-column layout */
.scraping-modal-large {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.scraping-modal-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-modal);
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.scraping-modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.scraping-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--bg-modal);
    flex-shrink: 0;
    border-top: 1px solid var(--border);
}

.scraping-modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.scraping-col-left,
.scraping-col-right {
    min-width: 0;
}

@media (max-width: 700px) {
    .scraping-modal-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.scraping-table {
    width: calc(100% - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 16px;
}

.scraping-row {
    display: grid;
    grid-template-columns: 120px 90px 1fr 40px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    align-items: center;
}

.scraping-row:last-child {
    border-bottom: none;
}

.scraping-row:hover {
    background: var(--bg-hover);
}

.scraping-row .col-method {
    font-weight: 500;
}

.scraping-row .col-url {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Happy Hours - Mobile Responsive */
@media (max-width: 768px) {
    .hh-table-header {
        display: none;
    }

    .hh-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
    }

    .hh-row .col-deals {
        grid-column: 1 / -1;
    }

    .hh-row .col-status {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hh-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

/* ===== DUAL LISTBOX (Day Picker) ===== */
.dual-listbox {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.dual-listbox-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-input, #ffffff);
}

.dual-listbox-header {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-hover, #f9f8f7);
}

.dual-listbox-list {
    flex: 1;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
}

.dual-listbox-item {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.1s ease;
}

.dual-listbox-item:hover {
    background: var(--bg-hover, #f5f5f5);
}

.dual-listbox-item.highlighted {
    background: var(--accent);
    color: #ffffff;
}

.dual-listbox-empty {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.dual-listbox-arrows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.dual-listbox-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card, #ffffff);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.dual-listbox-btn:hover {
    border-color: var(--accent);
}

/* ===== TIME RANGE SLIDER ===== */
.time-slider-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.time-slider-separator {
    color: var(--text-muted);
}

.time-slider-container {
    padding: 8px 10px 0;
    user-select: none;
    touch-action: none;
}

.time-slider-track {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
}

.time-slider-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    pointer-events: none;
}

.time-slider-handle {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.15s ease;
}

.time-slider-handle:hover,
.time-slider-handle:active {
    box-shadow: 0 0 0 4px rgba(209, 115, 89, 0.2);
    cursor: grabbing;
}

.time-slider-labels {
    position: relative;
    height: 18px;
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.time-slider-labels span {
    position: absolute;
    transform: translateX(-50%);
}

.time-slider-labels span:first-child {
    transform: translateX(0);
}

.time-slider-labels span:last-child {
    transform: translateX(-50%);
}

/* ===== STRUCTURED DEAL ROWS ===== */
.deals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

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

.deal-type-select {
    width: 110px;
    min-width: 110px;
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-input, #ffffff) url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-primary);
    cursor: pointer;
}

.deal-type-select,
.deal-item-input,
.deal-value-input {
    height: 40px;
    box-sizing: border-box;
}

.deal-value-wrap {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 80px;
    width: 90px;
}

.deal-value-wrap.hidden {
    display: none;
}

.deal-value-prefix {
    position: absolute;
    left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.deal-value-suffix {
    position: absolute;
    right: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.deal-value-wrap .deal-value-input {
    width: 100%;
    padding: 10px 24px 10px 26px !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input, #ffffff);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    -moz-appearance: textfield;
}

.deal-value-input::-webkit-outer-spin-button,
.deal-value-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.deal-item-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-input, #ffffff);
    color: var(--text-primary);
    min-width: 0;
}

.deal-type-select:focus,
.deal-item-input:focus,
.deal-value-input:focus {
    outline: none;
    border-color: var(--accent);
}

.remove-deal-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-deal-btn:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

.add-deal-btn {
    padding: 8px 12px;
    background: var(--btn-white-bg, #ffffff);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.add-deal-btn:hover {
    background: var(--btn-white-bg, #ffffff);
    border-color: var(--accent);
}

/* HH Modal Error */
.hh-modal-error {
    display: none;
    color: #dc2626;
    font-size: 0.85rem;
    text-align: center;
    padding: 0 24px 16px;
    margin: 0;
}

/* Selected tab dark text */
.admin-portal .detail-tab-btn.active {
    color: #181514;
    border-bottom-color: #181514;
}

/* Refresh button in tab toolbars */
.refresh-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #e5e7eb;
    color: #181514;
    border-color: #181514;
}

.refresh-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== STAT CARDS ===== */
.admin-portal .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.admin-portal .stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    padding: 20px;
    text-align: center;
}

.admin-portal .stat-card-top {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.admin-portal .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: transparent;
}

.admin-portal .stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 1.5;
}

/* Hide stat-change badges */
.admin-portal .stat-change {
    display: none;
}

.admin-portal .stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.admin-portal .stat-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== CHART & ACTIVITY CARDS ===== */
.admin-portal .chart-card,
.admin-portal .activity-card {
    background: #ffffff;
    border: 1px solid #e5e4e4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}


/* Recent Activity item dividers */
.admin-portal .activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-portal .activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e4e4;
}

.admin-portal .activity-item:first-child {
    border-top: none;
}

.admin-portal .activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Platform Activity quick filters */
.admin-portal .period-btn {
    background: transparent;
    border: 1px solid #e5e4e4;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-portal .period-btn:hover {
    background: #f4f2ef;
    border-color: #d5d4d4;
}

.admin-portal .period-btn.active {
    background: #f4f2ef;
    border-color: #d5d4d4;
    color: #181514;
    font-weight: 500;
}

html[data-theme="light"] .admin-portal .content-row {
    border-bottom: 1px solid #e5e4e4;
    padding-bottom: 32px;
    margin-bottom: 32px;
}

/* ===== VENUE CARDS ===== */
[data-theme="light"] .venue-card,
.admin-portal .venue-card {
    background: var(--white);
    border: 1px solid #e5e4e4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .venue-card:hover,
.admin-portal .venue-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--accent);
}

[data-theme="light"] .venue-card-body h3,
.admin-portal .venue-card-body h3 {
    color: var(--text-dark);
}

[data-theme="light"] .venue-card-footer,
.admin-portal .venue-card-footer {
    border-top: 1px solid #e5e4e4;
    background: #ffffff;
}

/* ===== WARM THEME BUTTONS ===== */
/* Primary action button - terra-cotta accent */
[data-theme="light"] .action-btn.primary,
[data-theme="light"] .add-venue-btn {
    background: var(--accent);
    border: none;
    color: var(--accent-text);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

[data-theme="light"] .submit-btn {
    background: #181514;
    border: none;
    color: #fff;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

[data-theme="light"] .action-btn.primary:hover,
[data-theme="light"] .add-venue-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

[data-theme="light"] .submit-btn:hover {
    background: #2a2524;
    transform: translateY(-1px);
}

/* Icon buttons (edit/delete in user list) */
.admin-portal .action-btn.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e5e4e4;
    border-radius: 10px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-portal .action-btn.icon-btn:hover {
    background: #f4f2ef;
    border-color: #d5d4d4;
    color: #181514;
}

.admin-portal .action-btn.icon-btn.delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.admin-portal .action-btn.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Secondary action button */
[data-theme="light"] .action-btn.secondary {
    background: #ffffff;
    border: 1px solid #e5e4e4;
    color: #374151;
    border-radius: var(--radius-sm);
}

/* Export/Import buttons - white background */
.admin-portal .header-btn.secondary {
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.admin-portal .header-btn.secondary:hover {
    border-color: var(--accent);
}

/* Add Venue button - terra-cotta accent */
.admin-portal .header-btn:not(.secondary) {
    background: var(--accent);
    color: var(--accent-text);
}

.admin-portal .header-btn:not(.secondary):hover {
    background: var(--accent-hover);
}

/* ===== WARM THEME MODALS ===== */
[data-theme="light"] .modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-header-fixed,
[data-theme="light"] .modal-header {
    border-bottom-color: var(--border-light);
    background: var(--bg-modal);
}

[data-theme="light"] .modal-header-fixed h2,
[data-theme="light"] .modal-header h2 {
    color: var(--text-dark);
}

[data-theme="light"] .modal-body,
[data-theme="light"] .modal-body-scroll {
    background: var(--bg-modal);
}

[data-theme="light"] .modal-footer-fixed,
[data-theme="light"] .modal-footer {
    border-top-color: var(--border-light);
    background: var(--bg-modal);
}

/* ===== WARM THEME FORM INPUTS ===== */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select,
[data-theme="light"] .styled-input,
[data-theme="light"] .styled-select {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .styled-input:focus,
[data-theme="light"] .styled-select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

[data-theme="light"] .form-group label {
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== WARM THEME DETAIL PAGE ===== */
[data-theme="light"] .detail-venue-header {
    background: var(--white);
    border-color: var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Remove wrapper background - individual stats have their own cards */
[data-theme="light"] .detail-stats-bar {
    background: transparent;
    border: none;
    box-shadow: none;
}

[data-theme="light"] .detail-stat-value {
    color: var(--text-dark);
}

[data-theme="light"] .detail-stat-label {
    color: var(--text-gray);
}

[data-theme="light"] .detail-tabs {
    border-bottom-color: var(--border-light);
}

[data-theme="light"] .detail-tab-btn {
    color: var(--text-gray);
}

[data-theme="light"] .detail-tab-btn:hover {
    color: var(--text-dark);
}

[data-theme="light"] .detail-tab-btn.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

/* Overview panel */
[data-theme="light"] .overview-details {
    background: var(--white);
    border-color: var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

[data-theme="light"] .overview-label {
    color: var(--text-muted);
}

[data-theme="light"] .overview-value {
    color: var(--text-dark);
}

/* Happy hours cards */
[data-theme="light"] .happy-hour-day {
    background: var(--white);
    border-color: var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

[data-theme="light"] .happy-hour-day h4 {
    color: var(--accent-purple);
}

[data-theme="light"] .happy-hour-time {
    color: var(--text-dark);
}

[data-theme="light"] .deal-tag {
    color: var(--accent-purple);
}

/* Events list items */
[data-theme="light"] .venue-event-item {
    background: #ffffff;
    border-color: #e5e4e4;
    border-radius: var(--radius-md);
}

[data-theme="light"] .venue-event-item:hover {
    border-color: #d5d4d4;
    background: #f4f2ef;
}

[data-theme="light"] .venue-event-info h4 {
    color: var(--text-dark);
}

[data-theme="light"] .venue-event-info p {
    color: var(--text-gray);
}

/* ===== WARM THEME STATUS BADGES (Pill shaped) ===== */
[data-theme="light"] .venue-status {
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
}

[data-theme="light"] .venue-status.active,
[data-theme="light"] .venue-status:not(.pending):not(.inactive) {
    background: #ECFDF5;
    color: var(--accent-green);
    border-color: rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .venue-status.pending {
    background: #FFF7ED;
    color: var(--accent-gold);
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .venue-status.inactive {
    background: #FEF2F2;
    color: var(--accent-coral);
    border-color: rgba(248, 113, 113, 0.2);
}

/* Event status badges - pill shaped */
[data-theme="light"] .venue-event-status {
    border-radius: 50px;
    padding: 0.2rem 0.6rem;
}

[data-theme="light"] .venue-event-status.upcoming {
    background: var(--cream-light);
    color: var(--accent-purple);
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .venue-event-status.past {
    background: #F3F4F6;
    color: var(--text-gray);
    border-color: rgba(156, 163, 175, 0.2);
}

/* ===== WARM THEME TABLES & LISTS ===== */
[data-theme="light"] .users-list .user-row {
    background: var(--white);
    border-color: var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

[data-theme="light"] .user-info h4 {
    color: var(--text-dark);
}

[data-theme="light"] .user-info p {
    color: var(--text-gray);
}

/* Role badges - pill shaped */
[data-theme="light"] .role-badge {
    border-radius: 50px;
    background: #EFF6FF;
    color: var(--chart-blue);
}

[data-theme="light"] .role-badge.admin {
    background: var(--cream-light);
    color: #EC4899;
}

/* ===== WARM THEME PAGINATION ===== */
[data-theme="light"] .pagination-btn {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    border-radius: var(--radius-sm);
}

[data-theme="light"] .pagination-btn:hover:not(:disabled) {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

[data-theme="light"] .pagination-info {
    color: var(--text-gray);
}

/* ===== WARM THEME FILE UPLOAD ===== */
[data-theme="light"] .file-upload-area {
    background: var(--warm-bg);
    border-color: var(--border-light);
    border-radius: var(--radius-md);
}

[data-theme="light"] .file-upload-area:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.02);
}

/* ===== WARM THEME HEADER ===== */
[data-theme="light"] .header-logo {
    color: var(--text-dark);
    font-weight: 600;
}

[data-theme="light"] .admin-header-bar .theme-toggle {
    background: var(--warm-bg);
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    border-radius: var(--radius-sm);
}

[data-theme="light"] .admin-header-bar .theme-toggle:hover {
    background: var(--cream-accent);
    color: var(--text-dark);
}

/* ===== WARM LOADING STATES ===== */
[data-theme="light"] .loading-state,
[data-theme="light"] .empty-state {
    color: var(--text-gray);
}

/* ===== CHART STYLING ===== */
[data-theme="light"] .chart-container {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 101;
    color: var(--text-dark);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile content area */
    html[data-theme="light"] .admin-portal .admin-content,
    .admin-portal .admin-content {
        margin-left: 0;
        padding: 24px 20px;
        padding-top: 80px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
    }

    .header-search {
        width: 100%;
        min-width: unset;
    }

    .greeting-title {
        font-size: 24px;
    }

    /* Sidebar links on mobile */
    #adminSidebar .sidebar-link {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .admin-portal .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    html[data-theme="light"] .admin-portal .admin-content {
        padding: 16px;
        padding-top: 72px;
    }

    .greeting-title {
        font-size: 22px;
    }

    .greeting-subtitle {
        font-size: 13px;
    }

    .admin-portal .stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-portal .stat-card h3 {
        font-size: 1.5rem;
    }

    .admin-portal .stat-card {
        padding: 16px;
    }
}

/* ===== PARTY CARD STYLES ===== */

/* Party card preview frame - 200x150 with edge color background */
.party-card-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.party-preview-frame {
    width: 200px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    position: relative;
}

.party-preview-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.party-preview-frame .image-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Party card in grid - fit mode with edge color */
.party-card .venue-card-header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.party-card .venue-avatar {
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-card .venue-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Party detail header background */
.detail-venue-header.type-party {
    background: rgba(209, 115, 89, 0.1);
}

.detail-venue-logo.type-party {
    background: var(--accent);
}

/* Verified badge in party detail */
.venue-type-badge.type-verified {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

/* Overview Cards for Party/Venue Details */
.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.overview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.overview-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.overview-card .edit-overview-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.overview-card .edit-overview-btn:hover {
    border-color: var(--accent);
}

.overview-card .edit-overview-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

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

.overview-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overview-item.full-width {
    grid-column: 1 / -1;
}

.overview-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

.overview-value a:hover {
    text-decoration: underline;
}

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

/* ===== SCRAPING TAB ===== */
.scraping-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-scraping-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-scraping-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.add-scraping-btn svg {
    width: 16px;
    height: 16px;
}

.scraping-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Selector Hints List in Modal */
.selector-hints-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.selector-hint-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.selector-hint-row .hint-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--bg-input);
    color: var(--text-primary);
}

.selector-hint-row .hint-input:focus {
    outline: none;
    border-color: var(--accent);
}

.remove-hint-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--btn-white-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    flex-shrink: 0;
}

.remove-hint-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ===== USER DETAIL PAGE ===== */

/* User Avatar */
.detail-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #e8a090 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(209, 115, 89, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.detail-user-avatar.large {
    width: 100px;
    height: 100px;
    font-size: 2rem;
}

.detail-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

/* User Info Layout - Avatar left, Details right */
.user-info-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.user-info-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: capitalize;
}

.user-provider-badge.google {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.user-provider-badge.apple {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.user-info-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    width: 120px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.type-badge.user {
    background: #f3f4f6;
    color: var(--text-gray);
}

.type-badge.venue {
    background: #dbeafe;
    color: #1d4ed8;
}

.type-badge.admin {
    background: #fce7f3;
    color: #be185d;
}

/* User Edit Form */
.user-edit-form {
    padding-top: 8px;
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.edit-form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.edit-cancel-btn,
.edit-save-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.edit-cancel-btn {
    background: var(--btn-white-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.edit-cancel-btn:hover {
    border-color: var(--accent);
}

.edit-save-btn {
    background: var(--accent);
    color: white;
    border: none;
}

.edit-save-btn:hover {
    background: var(--accent-hover);
}

/* Overview Section */
.overview-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.overview-section h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.section-header h3 {
    margin: 0;
}

/* Edit Button */
.edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition);
}

.edit-btn:hover {
    border-color: var(--accent);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Form Group (Edit Mode) */
.info-grid.edit-mode {
    gap: 16px;
}

/* Admin-specific form-actions override */
.info-grid .form-actions {
    grid-column: 1 / -1;
    margin-top: 8px;
}

/* FCM Tokens */
.fcm-tokens-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fcm-token-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f8f7;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.token-index {
    font-weight: 600;
    color: var(--accent);
    min-width: 24px;
}

.token-value {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-gray);
    background: transparent;
    word-break: break-all;
}

/* Favorites */
.favorites-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.favorites-section h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.favorite-item {
    padding: 10px 16px;
    background: #f9f8f7;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition), transform var(--transition);
}

.favorite-item:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.favorite-item code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-gray);
    background: transparent;
}

/* Saved Searches Table */
.searches-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 100px 120px;
    gap: 16px;
    padding: 14px 20px;
    background: #f9f8f7;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 100px 120px;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: background var(--transition);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: #faf9f8;
}

.col-query {
    font-weight: 500;
}

.col-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: #d1fae5;
    color: #059669;
}

.status-badge.inactive {
    background: #f3f4f6;
    color: var(--text-muted);
}

/* Notifications Table */
.notifications-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.notifications-table .table-header {
    grid-template-columns: 140px 1fr 160px 90px 100px;
}

.notifications-table .table-row {
    grid-template-columns: 140px 1fr 160px 90px 100px;
    align-items: flex-start;
}

.table-row.clickable {
    cursor: pointer;
}

.table-row.clickable:hover {
    background: #faf9f8;
}

.col-title {
    font-weight: 500;
}

.col-message {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.col-event,
.col-venue {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.col-date {
    text-align: right;
    white-space: nowrap;
}

.type-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f3f4f6;
    color: var(--text-gray);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Legacy notification styles (kept for backwards compatibility) */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.read-badge {
    padding: 4px 10px;
    background: #f3f4f6;
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.unread-badge {
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loading State */
.loading-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .table-header {
        display: none;
    }

    .table-row {
        padding: 16px;
    }

    .col-query::before { content: 'Query: '; font-weight: 600; }
    .col-tags::before { content: 'Tags: '; font-weight: 600; }
    .col-enabled::before { content: 'Enabled: '; font-weight: 600; }
    .col-date::before { content: 'Created: '; font-weight: 600; }

    .user-info-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .info-row label {
        width: auto;
    }

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

    .notifications-table .table-header,
    .notifications-table .table-row {
        grid-template-columns: 1fr;
    }

    .col-title::before { content: 'Title: '; font-weight: 600; }
    .col-message::before { content: 'Message: '; font-weight: 600; }
    .col-event::before { content: 'Event: '; font-weight: 600; }
    .col-type::before { content: 'Type: '; font-weight: 600; }
}

/* ===== VENUE PHOTOS GRID ===== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-header-row h3 {
    margin: 0;
}

.photo-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.section-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.venue-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.photo-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--active-bg);
    border: 2px solid var(--border);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.photo-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-tile:active {
    cursor: grabbing;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.photo-tile.dragging {
    opacity: 0.4;
    transform: scale(0.98);
    border: 2px dashed var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.photo-tile.drag-over {
    border-color: var(--accent);
    border-width: 3px;
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(209, 115, 89, 0.2);
}

/* Drag Handle */
.photo-drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: grab;
}

.photo-drag-handle:active {
    cursor: grabbing;
}

/* Delete Button - Always visible */
.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.photo-delete-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.photo-order-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-add-tile {
    border: 2px dashed var(--border);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.photo-add-tile:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(209, 115, 89, 0.05);
    transform: none;
    box-shadow: none;
}

.photo-add-tile span {
    font-size: 0.85rem;
    font-weight: 500;
}

.photo-add-tile svg {
    opacity: 0.7;
}

.photo-add-tile:hover svg {
    opacity: 1;
}

/* Delete Photo Modal */
.delete-photo-modal {
    max-width: 400px;
}

.delete-photo-modal .modal-body {
    text-align: center;
}

.delete-photo-modal .modal-body p {
    margin: 16px 0 0 0;
    color: var(--text-gray);
}

.delete-photo-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--active-bg);
    border: 1px solid var(--border);
}

.delete-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Danger Button for Delete Modal */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

/* ===== TAG DEFAULTS TAB ===== */
.tags-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-tag-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-tag-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.add-tag-btn svg {
    width: 16px;
    height: 16px;
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tag-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
}

.tag-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tag-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-type-badge.party {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.tag-type-badge.event {
    background: rgba(209, 115, 89, 0.1);
    color: var(--accent);
}

.tag-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--active-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Tag Default Modal */
.tag-default-modal {
    max-width: 560px;
}

.tag-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag-category h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-checkbox:hover {
    border-color: var(--accent);
}

.tag-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.tag-checkbox:has(input:checked) {
    background: rgba(209, 115, 89, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.required-mark {
    color: var(--accent);
    margin-left: 2px;
}

.empty-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 8px;
}

/* ===== SHARED LIST TABLE COMPONENT ===== */
/* Note: .list-table is used inside containers that already have styling (users-table, reports-table, etc.)
   So we keep it minimal - no borders/backgrounds that would double up */
.list-table {
    width: 100%;
}

/* .list-body is the row container generated by renderUnifiedTable */
.list-body {
    /* No specific styles needed - inherits from parent table */
}

/* ===== USERS TABLE ===== */
.users-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.users-table-header {
    display: grid;
    grid-template-columns: 1.5fr 2fr 120px 1.5fr 120px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table-header .sortable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.users-table-header .sortable:hover {
    color: var(--accent);
}

.users-table-header .sortable::after {
    content: '↕';
    font-size: 0.65rem;
    opacity: 0.5;
}

.users-table-header .sortable.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.users-table-header .sortable.sort-desc::after {
    content: '↓';
    opacity: 1;
}

.users-table-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.user-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 120px 1.5fr 120px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    align-items: center;
}

.user-row:last-child {
    border-bottom: none;
}

.user-row:hover {
    background: #faf9f8;
}

.user-row .col-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Avatar used by shared component */
.user-row .col-name .avatar-small,
.user-row .col-name .user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.user-row .col-name .avatar-small img,
.user-row .col-name .user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-row .col-email {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-row .col-venue {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-row .col-created {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* User type badges */
.user-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.user-type-badge.type-admin {
    background: #fce7f3;
    color: #be185d;
}

.user-type-badge.type-venue_manager {
    background: #dbeafe;
    color: #1e40af;
}

.user-type-badge.type-party_organizer {
    background: #f3e8ff;
    color: #7c3aed;
}

.user-type-badge.type-user {
    background: #f3f4f6;
    color: var(--text-secondary);
}

/* Responsive for users table */
@media (max-width: 1024px) {
    .users-table-header,
    .user-row {
        grid-template-columns: 1.2fr 1.5fr 100px 1fr 100px;
        gap: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .users-table-header {
        display: none;
    }

    .user-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .user-row .col-name {
        font-size: 1rem;
    }

    .user-row .col-email {
        font-size: 0.85rem;
    }
}

/* ===== PARTIES TABLE ===== */
.parties-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.parties-table-header {
    display: grid;
    grid-template-columns: 1.5fr 2fr 120px 80px 90px 70px 100px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parties-table-header .sortable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.parties-table-header .sortable:hover {
    color: var(--accent);
}

.parties-table-header .sortable::after {
    content: '↕';
    font-size: 0.65rem;
    opacity: 0.5;
}

.parties-table-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.party-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 120px 80px 90px 70px 100px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
    align-items: center;
}

.party-row:last-child {
    border-bottom: none;
}

.party-row:hover {
    background: #faf9f8;
}

.party-row .col-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.party-row .col-name .party-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.party-row .col-name .party-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.party-row .col-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.party-row .col-instagram {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.party-row .col-website {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.party-row .col-website .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.party-row .col-website .status-dot.active {
    background: var(--success);
}

.party-row .col-status {
    font-size: 0.85rem;
}

.party-row .col-events {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.party-row .col-created {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.party-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.party-status-badge.verified {
    background: #d1fae5;
    color: #065f46;
}

/* Responsive for parties table */
@media (max-width: 1200px) {
    .parties-table-header,
    .party-row {
        grid-template-columns: 1.3fr 1.5fr 100px 70px 80px 60px 90px;
        gap: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 900px) {
    .parties-table-header {
        display: none;
    }

    .party-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .party-row .col-name {
        font-size: 1rem;
    }

    .party-row .col-description {
        white-space: normal;
    }
}

/* ===== ORGANIZATIONS TABLE ===== */
.organizations-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.organizations-table-header {
    display: grid;
    grid-template-columns: 1.5fr 100px 2fr 120px 80px 90px 70px 100px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organizations-table-header .sortable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.organizations-table-header .sortable:hover {
    color: var(--accent);
}

.organizations-table-header .sortable::after {
    content: '↕';
    font-size: 0.65rem;
    opacity: 0.5;
}

.organizations-table-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.org-row {
    display: grid;
    grid-template-columns: 1.5fr 100px 2fr 120px 80px 90px 70px 100px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
    align-items: center;
}

.org-row:last-child {
    border-bottom: none;
}

.org-row:hover {
    background: #faf9f8;
}

.org-row .col-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.org-row .col-name .org-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.org-row .col-name .org-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-row .col-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.org-row .col-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-row .col-instagram {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.org-row .col-website {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.org-row .col-website .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.org-row .col-website .status-dot.active {
    background: var(--success);
}

.org-row .col-status {
    font-size: 0.85rem;
}

.org-row .col-events {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.org-row .col-created {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.org-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.org-status-badge.verified {
    background: #d1fae5;
    color: #065f46;
}

/* Responsive for organizations table */
@media (max-width: 1200px) {
    .organizations-table-header,
    .org-row {
        grid-template-columns: 1.3fr 90px 1.5fr 100px 70px 80px 60px 90px;
        gap: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 900px) {
    .organizations-table-header {
        display: none;
    }

    .org-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .org-row .col-name {
        font-size: 1rem;
    }

    .org-row .col-description {
        white-space: normal;
    }
}

/* ===== FESTIVALS TABLE ===== */
.festivals-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.festivals-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 100px 1.2fr 90px 100px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.festival-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 100px 1.2fr 90px 100px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
    align-items: center;
}

.festival-row:last-child {
    border-bottom: none;
}

.festival-row:hover {
    background: #faf9f8;
}

.festival-row .col-name {
    font-weight: 500;
}

.festival-row .col-city,
.festival-row .col-tag,
.festival-row .col-dates,
.festival-row .col-days {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.festival-row .col-status {
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .festivals-table-header,
    .festival-row {
        grid-template-columns: 1.3fr 1fr 90px 1fr 80px 90px;
        gap: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 900px) {
    .festivals-table-header {
        display: none;
    }

    .festival-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
}

/* ===== PHOTO SUBMISSIONS TABLE ===== */
.photo-submissions-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.photo-submissions-table-header {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 100px 120px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submission-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 100px 120px;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
    align-items: center;
}

.submission-row:last-child {
    border-bottom: none;
}

.submission-row:hover {
    background: #faf9f8;
}

.submission-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.submission-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submission-row .col-venue {
    font-weight: 500;
}

.submission-row .col-user,
.submission-row .col-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.submission-photo-preview {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--radius-md);
    object-fit: contain;
    cursor: pointer;
}

@media (max-width: 900px) {
    .photo-submissions-table-header {
        display: none;
    }

    .submission-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
}

/* ===== PARTNER NEWS TABLE ===== */
.partner-news-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.partner-news-table-header {
    display: grid;
    grid-template-columns: 2fr 120px 100px 100px 80px 110px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-news-table-header .sortable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-news-table-header .sortable:hover {
    color: var(--accent);
}

.partner-news-table-header .sortable::after {
    content: '↕';
    font-size: 0.65rem;
    opacity: 0.5;
}

.partner-news-table-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.news-row {
    display: grid;
    grid-template-columns: 2fr 120px 100px 100px 80px 110px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
    align-items: center;
}

.news-row:last-child {
    border-bottom: none;
}

.news-row:hover {
    background: #faf9f8;
}

.news-row .col-title {
    font-size: 0.9rem;
}

.news-row .col-audience,
.news-row .col-icon,
.news-row .col-pinned {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.news-row .col-status {
    font-size: 0.85rem;
}

.news-row .col-created {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .partner-news-table-header {
        display: none;
    }

    .news-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
}

/* Partner News page overrides */
#page-partner-news .page-header-btn:not(.secondary),
#page-venues .page-header-btn:not(.secondary) {
    background: var(--text-primary);
    color: #ffffff;
}

#page-partner-news .page-header-btn:not(.secondary):hover,
#page-venues .page-header-btn:not(.secondary):hover {
    background: #333;
}

#page-partner-news .filter-tab.active,
#page-reports .filter-tab.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

#page-venues .filter-btn.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

#page-parties .page-header-btn:not(.secondary),
#page-organizations .page-header-btn:not(.secondary),
#page-festivals .page-header-btn:not(.secondary) {
    background: var(--text-primary);
    color: #ffffff;
}

#page-parties .page-header-btn:not(.secondary):hover,
#page-organizations .page-header-btn:not(.secondary):hover,
#page-festivals .page-header-btn:not(.secondary):hover {
    background: #333;
}

#newsFormModal .btn-primary {
    background: var(--text-primary);
    color: #ffffff;
}

#newsFormModal .btn-primary:hover {
    background: #333;
}

/* News Quill editor */
#newsFormModal .quill-wrapper {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

#newsFormModal .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg-hover, #f9f8f7);
    padding: 8px;
}

#newsFormModal .ql-container.ql-snow {
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans', sans-serif;
    font-size: 0.9rem;
}

#newsFormEditor .ql-editor {
    min-height: 150px;
    max-height: 300px;
    padding: 12px 14px;
}

#newsFormEditor .ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
}

#newsFormModal .quill-emoji-picker {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    width: 280px;
    max-height: 200px;
    overflow-y: auto;
}

#newsFormModal .quill-emoji-picker.open {
    display: flex;
}

#newsFormModal .quill-emoji-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
}

#newsFormModal .quill-emoji-btn:hover {
    background: var(--bg-hover, #f5f4f2);
}

/* ===== SIDEBAR BADGE ===== */
.sidebar-badge {
    margin-left: auto;
    background: #cc3434;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* ===== PARTNER APPLICATIONS PAGE ===== */
#page-partner-applications .page-header-btn:not(.secondary) {
    background: var(--text-primary);
    color: #ffffff;
}

#page-partner-applications .filter-tab.active,
#page-photo-submissions .filter-tab.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

/* ===== PARTNER APPLICATIONS TABLE ===== */
.partner-applications-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.partner-applications-table-header {
    display: grid;
    grid-template-columns: 1.5fr 120px 1.5fr 100px 110px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-applications-table-header .sortable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-applications-table-header .sortable:hover {
    color: var(--accent);
}

.partner-applications-table-header .sortable::after {
    content: '↕';
    font-size: 0.65rem;
    opacity: 0.5;
}

.app-row {
    display: grid;
    grid-template-columns: 1.5fr 120px 1.5fr 100px 110px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
    align-items: center;
}

.app-row:last-child {
    border-bottom: none;
}

.app-row:hover {
    background: #faf9f8;
}

.app-row .col-name {
    font-weight: 500;
}

.app-row .col-type,
.app-row .col-contact,
.app-row .col-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .partner-applications-table-header,
    .app-row {
        grid-template-columns: 1.3fr 100px 1.3fr 90px 100px;
        gap: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 900px) {
    .partner-applications-table-header {
        display: none;
    }

    .app-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
}

/* No bounce on modal buttons */
.modal-footer .btn-primary:hover,
.modal-footer .btn-secondary:hover,
.modal-footer .btn-danger:hover,
.modal-footer .btn-success:hover {
    transform: none !important;
}

/* ===== APPROVE & REJECT MODALS ===== */
.reject-modal {
    max-width: 480px;
}

.reject-warning-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    color: #cc3434;
    font-size: 0.9rem;
    font-weight: 500;
}

.reject-warning-box svg {
    flex-shrink: 0;
}

/* ===== APPROVE MODAL ===== */
.approve-modal {
    max-width: 520px;
}

.approve-modal-info {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.approve-section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.approve-prematch-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.approve-entity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.approve-entity-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.approve-entity-card.selected {
    border-color: #015a22;
    background: #f0fdf4;
}

.approve-entity-info {
    flex: 1;
    min-width: 0;
}

.approve-entity-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.approve-entity-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.approve-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 16px 0 8px;
    transition: border-color 0.2s ease;
}

.approve-search-row:focus-within {
    border-color: var(--accent);
}

.approve-search-row input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
}

.approve-search-row input::placeholder {
    color: var(--text-muted);
}

.approve-entity-results {
    max-height: 200px;
    overflow-y: auto;
}

.approve-selected-entity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    margin-top: 12px;
    color: #015a22;
    font-size: 0.9rem;
    font-weight: 500;
}

.approve-selected-entity span {
    flex: 1;
}

.approve-clear-btn {
    background: none;
    border: none;
    color: #015a22;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.6;
}

.approve-clear-btn:hover {
    opacity: 1;
}


/* ===== REPORTS TABLE ===== */
.reports-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.reports-table-header {
    display: grid;
    grid-template-columns: 2fr 100px 140px 1.5fr 100px 120px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reports-table-header .sortable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reports-table-header .sortable:hover {
    color: var(--accent);
}

.reports-table-header .sortable::after {
    content: '↕';
    font-size: 0.65rem;
    opacity: 0.5;
}

.reports-table-header .sortable.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.reports-table-header .sortable.sort-desc::after {
    content: '↓';
    opacity: 1;
}

.reports-table-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.report-row {
    display: grid;
    grid-template-columns: 2fr 100px 140px 1.5fr 100px 120px;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
}

.report-row:last-child {
    border-bottom: none;
}

.report-row:hover {
    background: #faf9f8;
}

.report-row .col-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-row .col-reporter {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.report-row .col-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Type badges */
.report-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.report-type-badge.type-venue {
    background: #dbeafe;
    color: #1e40af;
}

.report-type-badge.type-event {
    background: #fce7f3;
    color: #be185d;
}

.report-type-badge.type-party {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Report type labels */
.report-issue-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f3f4f6;
    color: var(--text-secondary);
}

/* Status badges */
.report-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.report-status-badge.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.report-status-badge.status-resolved {
    background: #d1fae5;
    color: #059669;
}

.report-status-badge.status-dismissed {
    background: #f3f4f6;
    color: var(--text-muted);
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--btn-white-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-tab:hover {
    border-color: var(--accent);
}

.filter-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Reports toolbar */
#page-reports .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== UNIFIED DETAIL PAGE ===== */

/* Detail Header: Avatar + Info + Actions */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.detail-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    flex-shrink: 0;
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-avatar.type-bar { background: rgba(139, 69, 19, 0.1); color: #5D3A1A; }
.detail-avatar.type-culture { background: rgba(218, 165, 32, 0.1); color: #8B6914; }
.detail-avatar.type-health { background: rgba(46, 139, 87, 0.1); color: #1D5C3A; }
.detail-avatar.type-sauna { background: rgba(70, 130, 180, 0.1); color: #2E5A7A; }
.detail-avatar.type-shop { background: rgba(112, 128, 144, 0.1); color: #4A5568; }
.detail-avatar.type-social { background: rgba(230, 126, 34, 0.1); color: #9A5518; }
.detail-avatar.type-party { background: rgba(209, 115, 89, 0.1); color: var(--accent); }
.detail-avatar.type-organization { background: rgba(14, 165, 233, 0.1); color: #0284c7; }
.detail-avatar.type-community { background: rgba(14, 165, 233, 0.1); color: #0284c7; }
.detail-avatar.type-sports { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.detail-avatar.type-health { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.detail-avatar.type-nonprofit { background: rgba(168, 85, 247, 0.1); color: #9333ea; }
.detail-avatar.type-advocacy { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.detail-avatar.type-user { background: rgba(99, 102, 241, 0.1); color: #4F46E5; }
.detail-avatar.type-report { background: rgba(239, 68, 68, 0.1); color: #DC2626; }

.detail-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}

.detail-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.detail-badge.type-bar { background: rgba(139, 69, 19, 0.1); color: #5D3A1A; }
.detail-badge.type-culture { background: rgba(218, 165, 32, 0.1); color: #8B6914; }
.detail-badge.type-health { background: rgba(46, 139, 87, 0.1); color: #1D5C3A; }
.detail-badge.type-sauna { background: rgba(70, 130, 180, 0.1); color: #2E5A7A; }
.detail-badge.type-shop { background: rgba(112, 128, 144, 0.1); color: #4A5568; }
.detail-badge.type-social { background: rgba(230, 126, 34, 0.1); color: #9A5518; }
.detail-badge.type-party { background: rgba(209, 115, 89, 0.1); color: var(--accent); }
.detail-badge.type-organization { background: rgba(14, 165, 233, 0.1); color: #0284c7; }
.detail-badge.type-community { background: rgba(14, 165, 233, 0.2); color: #0284c7; }
.detail-badge.type-sports { background: rgba(34, 197, 94, 0.2); color: #16a34a; }
.detail-badge.type-health { background: rgba(239, 68, 68, 0.2); color: #dc2626; }
.detail-badge.type-nonprofit { background: rgba(168, 85, 247, 0.2); color: #9333ea; }
.detail-badge.type-advocacy { background: rgba(245, 158, 11, 0.2); color: #d97706; }
.detail-badge.type-admin { background: rgba(99, 102, 241, 0.1); color: #4F46E5; }
.detail-badge.type-venue { background: rgba(16, 185, 129, 0.1); color: #059669; }
.detail-badge.status-pending { background: #fef3c7; color: #b45309; }
.detail-badge.status-approved { background: #d1fae5; color: #015a22; }
.detail-badge.status-rejected { background: #fee2e2; color: #cc3434; }
.detail-badge.type-user { background: rgba(107, 114, 128, 0.1); color: #4B5563; }
.detail-badge.status-pending { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.detail-badge.status-resolved { background: rgba(16, 185, 129, 0.1); color: #059669; }
.detail-badge.status-dismissed { background: rgba(107, 114, 128, 0.1); color: #4B5563; }

.detail-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Compact action buttons (Salesforce-style) */
.detail-header-actions .btn-secondary,
.detail-header-actions .btn-primary,
.detail-header-actions .btn-danger,
.detail-header-actions .btn-success {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-header-actions .btn-secondary:hover,
.detail-header-actions .btn-primary:hover,
.detail-header-actions .btn-danger:hover,
.detail-header-actions .btn-success:hover {
    transform: none;
}

.detail-header-actions .btn-danger {
    background: #fef2f2;
    color: #cc3434;
    border: 1px solid #fecaca;
}

.detail-header-actions .btn-danger:hover {
    background: #fee2e2;
    transform: none !important;
}

.detail-header-actions .btn-success {
    background: #f0fdf4;
    color: #015a22;
    border: 1px solid #bbf7d0;
}

.detail-header-actions .btn-success:hover {
    background: #dcfce7;
    transform: none !important;
}

.detail-header-actions .btn-secondary svg,
.detail-header-actions .btn-primary svg,
.detail-header-actions .btn-danger svg,
.detail-header-actions .btn-success svg {
    width: 14px;
    height: 14px;
}

.detail-header-actions .action-separator {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}

/* Detail Stats Bar - dashboard stat card style */
#page-detail .detail-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 24px;
}

#page-detail .detail-stat {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px;
    text-align: left;
    transition: all 0.2s ease;
}

#page-detail .detail-stat:hover {
    box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.08);
}

#page-detail .detail-stat-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 8px;
}

#page-detail .detail-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Compact buttons inside detail blocks */
#page-detail .detail-block .btn-secondary,
#page-detail .detail-block .btn-primary,
#page-detail .detail-block .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

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

#page-detail .photo-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Detail Tabs */
#page-detail .detail-tabs {
    display: flex;
    gap: 4px;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, #ffffff 40%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

#page-detail .detail-tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

#page-detail .detail-tab-btn:hover {
    color: var(--text-primary);
}

#page-detail .detail-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    font-weight: 600;
}

/* Detail Content Grid: Main + Sidebar */
.detail-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    background: #ffffff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px;
}

/* Full-width layout for tabs that don't need sidebar */
.detail-content-grid.full-width {
    grid-template-columns: 1fr;
}

.detail-content-grid.full-width .detail-content-sidebar {
    display: none;
}

.detail-content-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-content-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .detail-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    #page-detail .detail-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    #page-detail .detail-stat {
        padding: 16px;
    }

    #page-detail .detail-stat-value {
        font-size: 1.5rem;
    }
}

/* ===== REPORT DETAIL PAGE (LEGACY - TO BE REMOVED) ===== */
/* Report detail header (no icon) */
.report-detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.report-detail-header .detail-venue-info {
    flex: 1;
}

.report-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.report-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.report-meta-separator {
    color: var(--text-muted);
}

.report-meta-text {
    color: var(--text-muted);
}

.report-action-bar {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.report-action-bar .btn-secondary,
.report-action-bar .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.report-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.report-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.detail-block-header h3 {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.detail-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-block-content {
    padding: 20px;
}

.block-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.detail-field {
    margin-bottom: 16px;
}

.detail-field:last-child {
    margin-bottom: 0;
}

.detail-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-field .detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.detail-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-description {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-link:hover {
    border-color: var(--accent);
    background: rgba(209, 115, 89, 0.05);
}

.report-snapshot {
    background: #f9f8f7;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 0.8rem;
    font-family: 'Monaco', 'Menlo', monospace;
    overflow-x: auto;
    max-height: 200px;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

#detailReportAdminNotes {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 12px;
}

#detailReportAdminNotes:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-save-notes {
    padding: 8px 16px;
    background: var(--btn-white-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-save-notes:hover {
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .report-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive for reports table */
@media (max-width: 1024px) {
    .reports-table-header,
    .report-row {
        grid-template-columns: 1.5fr 80px 120px 1fr 90px 100px;
        gap: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .reports-table-header {
        display: none;
    }

    .report-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .report-row .col-item-name {
        font-size: 1rem;
    }

    .report-row .col-reporter {
        font-size: 0.85rem;
    }

    #page-reports .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

/* ===== UNIFIED CARD COMPONENT ===== */

/* Base card styles */
.card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

/* Card header */
.card-header {
    padding: 0 1.25rem;
    margin: -1.25rem -1.25rem 1rem -1.25rem;
    height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

/* Card avatar */
.card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #181514;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Type-specific avatar backgrounds */
.card-avatar.type-bar { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.card-avatar.type-culture { background: linear-gradient(135deg, #3B82F6, #93C5FD); }
.card-avatar.type-party { background: linear-gradient(135deg, #D17359, #FB923C); }
.card-avatar.type-health { background: linear-gradient(135deg, #22C55E, #86EFAC); }
.card-avatar.type-sauna { background: linear-gradient(135deg, #EA580C, #FBBF24); }
.card-avatar.type-shop { background: linear-gradient(135deg, #A855F7, #C084FC); }
.card-avatar.type-social { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.card-avatar.type-event { background: var(--accent); }

/* Avatar images */
.card-avatar img.fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-avatar img.fit {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card badge */
.card-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.2);
    color: #7C3AED;
}

/* Type-specific badge colors */
.card-badge.type-bar { background: rgba(236, 72, 153, 0.2); color: #EC4899; }
.card-badge.type-culture { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }
.card-badge.type-party { background: rgba(209, 115, 89, 0.2); color: var(--accent); }
.card-badge.type-health { background: rgba(34, 197, 94, 0.2); color: #22C55E; }
.card-badge.type-sauna { background: rgba(234, 88, 12, 0.2); color: #EA580C; }
.card-badge.type-shop { background: rgba(168, 85, 247, 0.2); color: #A855F7; }
.card-badge.type-social { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }
.card-badge.type-event { background: rgba(209, 115, 89, 0.2); color: var(--accent); }

/* Card body */
.card-body {
    padding: 1.25rem;
}

.card-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.card-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Card tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(139, 92, 246, 0.15);
    color: #7C3AED;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Card footer */
.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card stat */
.card-stat {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-stat strong {
    color: var(--text-primary);
}

/* Card edit button */
.card-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition);
}

.card-edit-btn:hover {
    border-color: var(--accent);
}

.card-edit-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
}

/* Card status */
.card-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.card-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
}

.card-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* ===== EVENT CARDS ===== */

/* Events grid for detail pages */
.events-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Event card - matches partner portal style with large image header */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Event card image header */
.event-card-header {
    height: 160px;
    background: var(--bg-hover);
    position: relative;
    overflow: hidden;
}

.event-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.event-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Event card body */
.event-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.event-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-date-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Event card footer */
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.event-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-views svg {
    width: 16px;
    height: 16px;
}

.event-views strong {
    color: var(--text-primary);
}

.event-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}

.event-status.past {
    background: rgba(107, 114, 128, 0.15);
    color: #6B7280;
}

@media (max-width: 640px) {
    .events-card-grid {
        grid-template-columns: 1fr;
    }

    .event-card-header {
        height: 140px;
    }
}
