/* Force sidebar station icon sizing, override all other rules */
.event-details-sidebar .station-icon,
.event-details-sidebar .role-station-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.event-details-sidebar .station-icon img,
.event-details-sidebar .role-station-icon img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ==========================================
   CSS VARIABLES - THEMING SYSTEM
   ========================================== */
:root {
    /* Light mode (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-input: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-secondary: #8b5cf6;
    
    --header-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --nav-gradient: linear-gradient(135deg, #2d1b4e 0%, #1e1333 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --error: #ef4444;
    --error-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    
    /* Dropdown/overlay backgrounds */
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --dropdown-bg: #ffffff;
    --tooltip-bg: #1e293b;
    --tooltip-text: #ffffff;
    
    /* Modal */
    --modal-bg: #ffffff;
    --modal-header-bg: #f8fafc;
}

[data-theme="dark"] {
    /* Dark mode */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-input: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --accent-primary: #818cf8;
    --accent-primary-hover: #a5b4fc;
    --accent-secondary: #a78bfa;
    
    --header-gradient: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
    --nav-gradient: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    
    --success: #34d399;
    --success-bg: #064e3b;
    --warning: #fbbf24;
    --warning-bg: #78350f;
    --error: #f87171;
    --error-bg: #7f1d1d;
    --info: #60a5fa;
    --info-bg: #1e3a5f;
    
    /* Dropdown/overlay backgrounds */
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --dropdown-bg: #1e293b;
    --tooltip-bg: #334155;
    --tooltip-text: #f1f5f9;
    
    /* Modal */
    --modal-bg: #1e293b;
    --modal-header-bg: #0f172a;
}

/* Smooth theme transitions */
*, *::before, *::after {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER - Main Top Bar
   ========================================== */
.header {
    background: var(--header-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-brand i {
    font-size: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-create {
    background: #10b981;
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-create:hover {
    background: #059669;
    transform: translateY(-1px);
}

.header-icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-icon-btn .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #667eea;
}

.user-profile-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ==========================================
   NAVIGATION BAR - Secondary Tab Navigation
   ========================================== */
.nav-bar {
    background: var(--nav-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 56px;
    z-index: 99;
}

.nav-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-tabs {
    display: flex;
    gap: 0;
}

.nav-tab {
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.nav-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab:hover i {
    opacity: 1;
}

.nav-tab.active {
    color: white;
    border-bottom-color: white;
    font-weight: 600;
}

.nav-tab.active i {
    opacity: 1;
}

/* Tab-specific colors - brighter for dark background */
.nav-tab[data-tab="all-events"]:hover,
.nav-tab[data-tab="all-events"].active {
    color: #c4b5fd;
    border-bottom-color: #a78bfa;
}

.nav-tab[data-tab="my-parties"]:hover,
.nav-tab[data-tab="my-parties"].active {
    color: #6ee7b7;
    border-bottom-color: #34d399;
}

.nav-tab[data-tab="friends-parties"]:hover,
.nav-tab[data-tab="friends-parties"].active {
    color: #93c5fd;
    border-bottom-color: #60a5fa;
}

.nav-tab[data-tab="favorited-hosts"]:hover,
.nav-tab[data-tab="favorited-hosts"].active {
    color: #fcd34d;
    border-bottom-color: #fbbf24;
}

.nav-tab[data-tab="about"]:hover,
.nav-tab[data-tab="about"].active {
    color: #cbd5e1;
    border-bottom-color: #94a3b8;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.nav-bar .view-toggle-container {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 8px;
}

.nav-bar .view-btn {
    position: relative;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-bar .view-btn:hover {
    color: white;
}

.nav-bar .view-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Styled tooltip for view buttons */
.view-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

.view-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #1e293b;
}

.view-btn:hover .view-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Keep old nav-menu and nav-link for backwards compatibility */
.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

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

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
}

.btn-sandy {
    background: linear-gradient(135deg, #f5e6d3, #e8d5b7);
    color: #3e2723;
    border: 1px solid #d4c4a8;
}

.btn-sandy:hover {
    background: linear-gradient(135deg, #f0dcc4, #e0d0b0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 192, 123, 0.4);
}

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

/* Timezone indicator - inline with section header */
.timezone-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: auto;
    margin-right: 1rem;
    position: relative;
    cursor: help;
}

.timezone-indicator i {
    color: #6366f1;
    font-size: 0.7rem;
}

.timezone-indicator .tz-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1e293b;
    color: white;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.timezone-indicator .tz-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 1rem;
    border: 6px solid transparent;
    border-bottom-color: #1e293b;
}

.timezone-indicator:hover .tz-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.timezone-indicator .tz-tooltip .tz-label {
    color: #94a3b8;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.15rem;
}

.timezone-indicator .tz-tooltip .tz-value {
    font-weight: 500;
    display: block;
}

.timezone-indicator .tz-tooltip .tz-hint {
    color: #6366f1;
    font-size: 0.7rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

a.tz-hint:hover {
    color: #a5b4fc;
}

/* Filter Dropdown Container */
.filter-dropdown-container {
    position: relative;
}

.filter-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    font-weight: 600;
    margin-left: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Twitch pill styling */
.filter-pill.twitch-pill {
    border-color: #9146FF;
    color: #9146FF;
}

.filter-pill.twitch-pill:hover {
    background: rgba(145, 70, 255, 0.1);
}

.filter-pill.twitch-pill.active {
    background: #9146FF;
    border-color: #9146FF;
    color: white;
}

/* TikTok pill styling */
.filter-pill.tiktok-pill {
    border-color: #000000;
    color: #000000;
}

.filter-pill.tiktok-pill:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-pill.tiktok-pill.active {
    background: #000000;
    border-color: #000000;
    color: white;
}

/* Filter Dropdown Panel */
.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dropdown-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    min-width: 320px;
    z-index: 200;
    display: none;
    border: 1px solid var(--border-color);
}

.filter-dropdown.active {
    display: block;
}

.filter-dropdown-section {
    margin-bottom: 0.85rem;
}

.filter-dropdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    display: block;
}

.filter-dropdown-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.filter-dropdown .filter-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 16px;
    font-size: 0.75rem;
}

.filter-dropdown .filter-pill i {
    font-size: 0.7rem;
}

.filter-dropdown-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.filter-dropdown-footer .filter-clear-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.filter-dropdown-footer .filter-clear-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.filter-dropdown-footer .filter-apply-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-dropdown-footer .filter-apply-btn:hover {
    background: #4f46e5;
}

/* Filter Pill Styles */
.filter-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-pill i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.filter-pill:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

.filter-pill.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.filter-pill.active i {
    opacity: 1;
}

/* Event type specific colors when active */
.filter-pill[data-value="cooking"].active {
    background: #f97316;
    border-color: #f97316;
}

.filter-pill[data-value="fishing"].active {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.filter-pill[data-value="hunting"].active {
    background: #84cc16;
    border-color: #84cc16;
}

.filter-pill[data-value="bug-catching"].active {
    background: #eab308;
    border-color: #eab308;
}

.filter-pill[data-value="mining"].active {
    background: #a855f7;
    border-color: #a855f7;
}

.filter-pill[data-value="foraging"].active {
    background: #22c55e;
    border-color: #22c55e;
}

.filter-pill[data-value="decorating"].active {
    background: #ec4899;
    border-color: #ec4899;
}

.filter-pill[data-value="tower"].active {
    background: #ef4444;
    border-color: #ef4444;
}

.filter-pill[data-value="trade"].active {
    background: #f59e0b;
    border-color: #f59e0b;
}

/* Coming soon - hidden until feature is ready */
.filter-pill.coming-soon {
    display: none;
}

.filter-pill[data-value="social"].active {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

/* Status pills */
.filter-pill[data-value="ongoing"].active {
    background: #10b981;
    border-color: #10b981;
}

.filter-pill[data-value="scheduled"].active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.filter-pill[data-value="completed"].active {
    background: #6b7280;
    border-color: #6b7280;
}

/* Option pill (Discord) */
.filter-pill.option-pill {
    border-color: #cbd5e1;
}

.filter-pill.option-pill:hover {
    border-color: #5865F2;
    color: #5865F2;
    background: #eef2ff;
}

.filter-pill.option-pill.active {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
}

/* Legacy filter styles - kept for compatibility */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.filter-clear-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.filter-clear-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.filter-apply-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-apply-btn:hover {
    background: #4f46e5;
}

/* Events Section */
.events-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.event-category h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--text-primary);
}

.event-category h2 i {
    color: var(--accent-primary);
}

/* Collapsible Section Header - Sleek Design */
h2.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    border-radius: 0;
}

h2.section-header.collapsible {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

h2.section-header.collapsible:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.section-icon {
    font-size: 1.1rem;
}

.section-icon.ongoing {
    color: #10b981;
}

.section-icon.scheduled {
    color: #4f46e5;
}

.section-title {
    flex: 1;
    font-weight: 600;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
}

.section-chevron {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

h2.section-header.collapsed .section-chevron {
    transform: rotate(-90deg);
}

h2.section-header:hover .section-chevron {
    color: #4f46e5;
}

/* Section content wrapper */
.section-content {
    display: block;
}

.event-category.collapsed .section-content {
    display: none;
}

/* Show More Button */
.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.show-more-btn i {
    font-size: 0.85rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* View mode classes for events-grid */
.events-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.events-grid.compact-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==========================================
   VIEW TOGGLE BUTTONS
   ========================================== */
.view-toggle-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.view-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* ==========================================
   NEW EVENT CARD DESIGN - Palia Currency Colors
   ========================================== */
.event-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

/* Card Header with gradient based on event type */
.event-card-header {
    padding: 1rem 1.25rem;
    position: relative;
    color: white;
}

/* Palia Currency Colors - Matched to in-game currency icons */
.event-card-header.cooking { background: linear-gradient(135deg, #FF7EB3 0%, #E85A9C 100%); }
.event-card-header.fishing { background: linear-gradient(135deg, #0ACDEB 0%, #0891B2 100%); }
.event-card-header.hunting { background: linear-gradient(135deg, #F5A623 0%, #D4920A 100%); }
.event-card-header.bug-catching { background: linear-gradient(135deg, #D4830A 0%, #A65D00 100%); }
.event-card-header.mining { background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%); }
.event-card-header.foraging { background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%); }
.event-card-header.social { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); }
.event-card-header.decorating { background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%); }
.event-card-header.tower { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.event-card-header.trade { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }

.event-card-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.event-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-card-status.ongoing {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    animation: pulse-live 2s ease-in-out infinite;
}

.event-card-status.scheduled {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
}

.event-card-status.completed {
    background: rgba(100, 116, 139, 0.9);
    color: white;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Card Body */
.event-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.event-card-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.event-card-meta-row i {
    width: 16px;
    color: var(--text-muted);
}

.event-card-host {
    color: var(--text-primary);
    font-weight: 500;
}

.event-card-host-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
}

.event-card-host-indicators {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
}

.event-card-host-indicators .friend-badge {
    color: #3b82f6;
    font-size: 0.75rem;
}

.event-card-host-indicators .favorite-star {
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.event-card-host-indicators .favorite-star:hover,
.event-card-host-indicators .favorite-star.favorited {
    color: #fbbf24;
}

/* Friend Involvement Badge (for Friends Parties tab) */
.friend-involvement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.75rem 0;
}

.friend-involvement-badge.hosting {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.friend-involvement-badge.hosting i {
    color: #d97706;
}

.friend-involvement-badge.participating {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.friend-involvement-badge.participating i {
    color: #3b82f6;
}

.friend-involvement-badge.favorited {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.friend-involvement-badge.favorited i {
    color: #f59e0b;
}

/* ==========================================
   Role Badges for My Parties (Dark Frosted Glass)
   Semi-transparent dark background with bright text
   Works on ALL header colors
   ========================================== */

/* Card with role styling - Hosting (Orange/Amber) */
.event-card.role-hosting {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, transparent 25%), var(--bg-card);
}

/* Card with role styling - Joined/Participant (Teal) */
.event-card.role-joined {
    border-left: 4px solid #06b6d4;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.08) 0%, transparent 25%), var(--bg-card);
}

/* Role indicator badge (appears in header) - Dark Frosted Glass Style */
.role-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-indicator-badge.hosting {
    color: #fbbf24;
}

.role-indicator-badge.hosting::before {
    content: '🔥';
    font-size: 10px;
}

.role-indicator-badge.joined {
    color: #67e8f9;
}

.role-indicator-badge.joined::before {
    content: '✓';
    font-size: 11px;
    font-weight: 900;
}

/* List view role badge */
.event-list-card.role-hosting {
    border-left: 4px solid #f59e0b;
}

.event-list-card.role-joined {
    border-left: 4px solid #06b6d4;
}

.role-badge-list {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-badge-list.hosting {
    color: #fbbf24;
}

.role-badge-list.hosting::before {
    content: '🔥';
    font-size: 10px;
}

.role-badge-list.joined {
    color: #67e8f9;
}

.role-badge-list.joined::before {
    content: '✓';
    font-size: 11px;
    font-weight: 900;
}

/* Compact view role indicator (small dot) */
.event-compact-card.role-hosting {
    border-left: 3px solid #f59e0b;
}

.event-compact-card.role-joined {
    border-left: 3px solid #06b6d4;
}

.role-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.role-dot.hosting {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.role-dot.joined {
    background: #67e8f9;
    box-shadow: 0 0 6px rgba(103, 232, 249, 0.6);
}

/* My Parties Legend */
.my-parties-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 13px;
}

.my-parties-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.my-parties-legend .legend-item.hosting {
    color: #fbbf24;
}

.my-parties-legend .legend-item.hosting::before {
    content: '🔥';
    font-size: 10px;
}

.my-parties-legend .legend-item.joined {
    color: #67e8f9;
}

.my-parties-legend .legend-item.joined::before {
    content: '✓';
    font-size: 11px;
    font-weight: 900;
}

/* Empty State Cards (for Favorited Hosts, Friends Parties tabs) */
.empty-state-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 480px;
    margin: 2rem auto;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.empty-state-card.loading {
    padding: 2rem;
    background: transparent;
    box-shadow: none;
    color: var(--text-secondary);
    border: none;
}

.empty-state-card.loading i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.empty-state-icon.favorites {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.empty-state-icon.waiting {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #6366f1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.empty-state-icon.sign-in {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #9333ea;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.empty-state-icon.no-events {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.15);
}

.empty-state-icon.friends {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.empty-state-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.empty-state-card .empty-state-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.empty-state-tips {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}

.empty-state-tips .tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.875rem;
}

.empty-state-tips .tip:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
}

.empty-state-tips .tip i:first-child {
    color: #6d28d9;
    margin-top: 2px;
    flex-shrink: 0;
}

.favorited-hosts-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #92400e;
    margin: 1rem 0;
}

.empty-state-card .btn {
    margin-top: 0.5rem;
}

.empty-state-card .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.empty-state-card .btn-secondary:hover {
    background: #e5e7eb;
}

/* Card Footer */
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.event-card-participants {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.event-card-participants-avatars {
    display: flex;
}

.event-card-participants-avatars .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    margin-left: -6px;
    border: 2px solid var(--bg-tertiary);
}

.event-card-participants-avatars .avatar:first-child {
    margin-left: 0;
}

.event-card-countdown {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
}

.event-card-countdown.live {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.event-card-countdown.scheduled {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.event-card-countdown.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Dark theme countdown colors - brighter for visibility */
[data-theme="dark"] .event-card-countdown.live {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .event-card-countdown.scheduled {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .event-card-countdown.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ==========================================
   LIST VIEW CARD STYLES
   ========================================== */
.events-grid.list-view .event-card {
    flex-direction: row;
    align-items: stretch;
    max-height: 140px;
}

.events-grid.list-view .event-card-header {
    min-width: 60px;
    max-width: 60px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 16px 0 0 16px;
}

.events-grid.list-view .event-card-header .event-card-type-badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
}

.events-grid.list-view .event-card-header .event-card-title,
.events-grid.list-view .event-card-header .event-card-status {
    display: none;
}

.events-grid.list-view .event-card-body {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    min-width: 0;
    align-items: center;
}

.events-grid.list-view .event-card-description {
    display: none;
}

.events-grid.list-view .event-card-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.events-grid.list-view .event-card-meta-item {
    font-size: 0.875rem;
}

/* List view title in body */
.events-grid.list-view .event-card-body::before {
    content: attr(data-title);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    min-width: 200px;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events-grid.list-view .event-card-footer {
    flex-direction: column;
    justify-content: center;
    min-width: 120px;
    border-top: none;
    border-left: 1px solid var(--border-color);
    border-radius: 0 16px 16px 0;
}

/* ==========================================
   COMPACT VIEW CARD STYLES
   ========================================== */
.events-grid.compact-view .event-card {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    gap: 1rem;
    min-height: 48px;
    max-height: 48px;
}

.events-grid.compact-view .event-card-header {
    min-width: 8px;
    max-width: 8px;
    padding: 0;
    border-radius: 4px;
    align-self: stretch;
}

.events-grid.compact-view .event-card-header .event-card-type-badge,
.events-grid.compact-view .event-card-header .event-card-title,
.events-grid.compact-view .event-card-header .event-card-status {
    display: none;
}

.events-grid.compact-view .event-card-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    min-width: 0;
}

.events-grid.compact-view .event-card-description,
.events-grid.compact-view .event-card-type-specific {
    display: none;
}

.events-grid.compact-view .event-card-meta {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
}

.events-grid.compact-view .event-card-meta-item {
    font-size: 0.8125rem;
}

/* Compact view title in body */
.events-grid.compact-view .event-card-body::before {
    content: attr(data-title);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    min-width: 180px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events-grid.compact-view .event-card-footer {
    display: none;
}

/* ==========================================
   NEW LIST CARD STYLES (for list and compact views)
   ========================================== */

/* List view container styles */
.events-grid.list-view,
.events-grid.compact-view {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Base list card */
.list-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

/* Type icon */
.list-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

/* Palia Currency Colors */
.list-card-icon.cooking { background: linear-gradient(135deg, #FF7EB3 0%, #E85A9C 100%); }
.list-card-icon.fishing { background: linear-gradient(135deg, #0ACDEB 0%, #0891B2 100%); }
.list-card-icon.hunting { background: linear-gradient(135deg, #F5A623 0%, #D4920A 100%); }
.list-card-icon.bug-catching { background: linear-gradient(135deg, #D4830A 0%, #A65D00 100%); }
.list-card-icon.mining { background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%); }
.list-card-icon.foraging { background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%); }
.list-card-icon.social { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); }
.list-card-icon.decorating { background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%); }

/* Main content */
.list-card-content {
    flex: 1;
    min-width: 0;
}

.list-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.list-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.list-card-badges {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.list-card-status {
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.list-card-status.ongoing {
    background: var(--success-bg);
    color: var(--success);
}

.list-card-status.scheduled {
    background: var(--info-bg);
    color: var(--accent-primary);
}

.list-card-status.private {
    background: var(--warning-bg);
    color: var(--warning);
}

.list-card-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.list-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.list-card-meta-item i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.list-card-meta-item.host-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-card-host-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Right side info */
.list-card-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.list-card-participants {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.list-card-countdown {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.list-card-countdown.scheduled {
    background: var(--info-bg);
    color: var(--accent-primary);
}

.list-card-countdown.live {
    background: var(--success-bg);
    color: var(--success);
}

.list-card .favorite-star {
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.list-card .favorite-star.favorited,
.list-card .favorite-star:hover {
    color: #fbbf24;
}

/* Compact List Variant */
.list-card.compact {
    padding: 0.625rem 1rem;
}

.list-card.compact .list-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 8px;
}

.list-card.compact .list-card-top {
    margin-bottom: 0.125rem;
}

.list-card.compact .list-card-title {
    font-size: 0.9375rem;
}

.list-card.compact .list-card-bottom {
    gap: 0.75rem;
    font-size: 0.75rem;
}

.list-card.compact .list-card-bottom span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.list-card.compact .list-card-bottom i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.list-card.compact .host-with-star {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.list-card.compact .host-with-star .favorite-star {
    font-size: 0.7rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
}

.list-card.compact .host-with-star .favorite-star:hover {
    color: #fbbf24;
}

.list-card.compact .host-with-star .favorite-star.favorited {
    color: #fbbf24;
}

.list-card.compact .list-card-right {
    gap: 0.75rem;
}

.list-card.compact .list-card-countdown {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .list-card {
        flex-wrap: wrap;
    }

    .list-card-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e2e8f0;
    }
    
    .list-card.compact .list-card-bottom {
        flex-wrap: wrap;
    }
}

/* Privacy badge in new card */
.event-card .privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.event-card .privacy-badge.private {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.event-card .privacy-badge.public {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

/* Privacy badges */
.event-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
}

.event-privacy-badge.public {
    background-color: #dbeafe;
    color: #1e40af;
}

.event-privacy-badge.private {
    background-color: #fef3c7;
    color: #92400e;
}

.event-privacy-badge i {
    font-size: 0.6rem;
}

/* Host row with indicators */
.event-host-row {
    flex-wrap: wrap;
}

.event-host-name {
    flex: 1;
    min-width: 0;
}

.event-host-indicators {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.25rem;
}

/* Friend badge for event cards */
.event-host-friend-badge {
    color: #10b981 !important;
    font-size: 0.75rem;
    width: auto !important;
}

/* Favorite star for event cards */
.event-host-favorite-star {
    margin-left: 0;
    color: #d1d5db !important;
    cursor: pointer;
    transition: all 0.2s;
    width: auto !important;
}

.event-host-favorite-star:hover {
    color: #fbbf24 !important;
    transform: scale(1.15);
}

.event-host-favorite-star.favorited {
    color: #fbbf24 !important;
}

.event-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto; /* Push actions to bottom */
    padding-top: 0.8rem;
}

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

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.event-status.ongoing {
    background-color: #d1fae5;
    color: #065f46;
}

.event-status.scheduled {
    background-color: #dbeafe;
    color: #1e40af;
}

.event-status.completed {
    background-color: #f3f4f6;
    color: #374151;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: var(--modal-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border-color);
}

/* ============================================
   EVENT CREATION WIZARD STYLES
   ============================================ */

.wizard-modal {
    max-width: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wizard-header {
    position: relative;
    background: var(--header-gradient);
    padding: 1.25rem 1.5rem;
}

.wizard-header .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: white;
    opacity: 0.8;
}

.wizard-header .modal-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.wizard-steps-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    transition: all 0.3s;
}

.wizard-step .step-number {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.wizard-step.active {
    color: white;
}

.wizard-step.active .step-number {
    background: white;
    color: #6366f1;
}

.wizard-step.completed {
    color: rgba(255,255,255,0.9);
}

.wizard-step.completed .step-number {
    background: #10b981;
    color: white;
}

.wizard-step .step-label {
    font-weight: 500;
}

.wizard-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.wizard-step-content {
    display: none;
    padding: 1.5rem;
}

.wizard-step-content.active {
    display: block;
}

.wizard-step-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.wizard-footer .btn-secondary {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
}

.wizard-footer .btn-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f8fafc;
}

.wizard-footer .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.wizard-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.wizard-footer .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wizard-footer .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Event Type Grid (Step 1) */
.event-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.event-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-card);
}

.event-type-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.event-type-card input[type="radio"] {
    display: none;
}

.event-type-card.selected,
.event-type-card:has(input:checked) {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.event-type-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.event-type-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Optional Tag */
.optional-tag {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

/* Form Hints */
.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

/* Visibility Options (Step 3) */
.visibility-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.visibility-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.visibility-option:hover {
    border-color: #6366f1;
}

.visibility-option input[type="radio"] {
    display: none;
}

.visibility-option.active,
.visibility-option:has(input:checked) {
    border-color: #6366f1;
    background: #f0f1ff;
}

.visibility-option i {
    font-size: 1.25rem;
    color: #94a3b8;
}

.visibility-option.active i,
.visibility-option:has(input:checked) i {
    color: #6366f1;
}

.visibility-text {
    display: flex;
    flex-direction: column;
}

.visibility-title {
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.9rem;
}

.visibility-option.active .visibility-title,
.visibility-option:has(input:checked) .visibility-title {
    color: #1e293b;
}

.visibility-desc {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
}

.visibility-option.active .visibility-desc,
.visibility-option:has(input:checked) .visibility-desc {
    color: #64748b;
}

/* Review Step (Step 4) */
.review-preview-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.review-preview-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 0.75rem;
}

.review-preview-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.review-card-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 1rem 1.25rem;
    color: white;
}

.review-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.review-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.review-card-body {
    padding: 1rem 1.25rem;
}

.review-card-description {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #374151;
}

.review-card-meta-item i {
    color: #6b7280;
    font-size: 0.75rem;
}

.review-card-host {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #1f2937;
}

.review-card-host-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
}

.review-edit-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-edit-btn {
    padding: 0.5rem 0.85rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.review-edit-btn:hover {
    background: rgba(255,255,255,0.2);
}

.review-checklist-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-checklist-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
}

.review-checklist-status {
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.review-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.review-checklist-item.complete {
    border-color: #d1fae5;
    background: #f0fdf4;
}

.review-checklist-item.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.review-checklist-icon {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.review-checklist-item.complete .review-checklist-icon {
    background: #10b981;
    color: white;
}

.review-checklist-item.warning .review-checklist-icon {
    background: #f59e0b;
    color: white;
}

.review-checklist-label {
    flex: 1;
    font-size: 0.8rem;
    color: #374151;
}

.review-checklist-hint {
    font-size: 0.7rem;
    color: #b45309;
    margin-top: 0.1rem;
}

.review-checklist-action {
    font-size: 0.7rem;
    color: #6366f1;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.review-checklist-action:hover {
    text-decoration: underline;
}

.review-info-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #1e40af;
}

.review-info-note i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* All Good Banner */
.review-all-good {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 8px;
    color: #065f46;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-input);
    color: var(--text-primary);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Cooking Roles Styles */
.cooking-roles-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
    border-radius: 8px;
    padding: 1rem;
}

.roles-container {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.7);
}

.role-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.role-item:hover {
    background: linear-gradient(135deg, #fefefe 0%, #f0f9ff 100%);
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.role-item:last-child {
    margin-bottom: 0;
}

.role-name-display {
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.role-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-station-icon, .station-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0891b2;
    border-radius: 4px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.25);
    position: relative;
}

.role-station-icon img, .station-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 1px 2px rgba(8, 145, 178, 0.6))
            drop-shadow(-1px -1px 0 rgba(0, 0, 0, 0.8)) 
            drop-shadow(1px -1px 0 rgba(0, 0, 0, 0.8)) 
            drop-shadow(-1px 1px 0 rgba(0, 0, 0, 0.8)) 
            drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

.ingredient-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid #667eea;
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
    display: inline-block; /* Ensure proper box model */
}

.ingredient-emoji {
    font-size: 1.2rem;
    margin: 0 2px;
}

/* Role Form Controls */
.role-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.role-name {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: white;
    transition: all 0.2s ease;
}

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

.role-count {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    background: white;
    transition: all 0.2s ease;
}

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

/* Enhanced Lock Button */
.btn-remove-role.role-lock-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.25);
}

.btn-remove-role.role-lock-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

/* Recipe Selection Enhancement */
#recipeSelect {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

#recipeQuantity {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* Add Role Button Enhancement */
#addRoleBtn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

#addRoleBtn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
}

/* Bug Catching Styles */
.bug-catching-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Custom Bug Dropdown with Images - Dark Mode Compatible */
.custom-bug-dropdown {
    position: relative;
    width: 100%;
}

.custom-bug-dropdown .dropdown-toggle {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-input, var(--bg-card));
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.custom-bug-dropdown .dropdown-toggle:hover {
    border-color: var(--text-muted);
}

.custom-bug-dropdown .dropdown-toggle.active {
    border-color: var(--success, #059669);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.custom-bug-dropdown .dropdown-toggle::after {
    content: "▼";
    position: absolute;
    right: 16px;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.custom-bug-dropdown .dropdown-toggle.active::after {
    transform: rotate(180deg);
}

/* Selected item image in dropdown toggle */
.dropdown-selected-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.dropdown-selected-text {
    font-weight: 500;
    color: var(--text-primary);
}

.custom-bug-dropdown .dropdown-placeholder {
    color: var(--text-muted);
}

.custom-bug-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--dropdown-bg, var(--bg-card));
    border: 2px solid var(--success, #059669);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.custom-bug-dropdown .dropdown-menu.show {
    display: block;
}

.custom-bug-dropdown .dropdown-group {
    border-bottom: 1px solid var(--border-color);
}

.custom-bug-dropdown .dropdown-group:last-child {
    border-bottom: none;
}

.custom-bug-dropdown .dropdown-group-label {
    padding: 12px 16px;
    background-color: var(--bg-tertiary, var(--bg-secondary));
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.custom-bug-dropdown .dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-light, var(--border-color));
    background-color: var(--dropdown-bg, var(--bg-card));
}

.custom-bug-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.custom-bug-dropdown .dropdown-item:hover {
    background-color: var(--bg-hover);
}

.custom-bug-dropdown .dropdown-item.selected {
    background-color: var(--success-bg, #dcfce7);
    color: var(--success, #059669);
}

.custom-bug-dropdown .dropdown-item-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background-color: var(--bg-tertiary, var(--bg-secondary));
    padding: 2px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    display: block;
    min-width: 32px;
    min-height: 32px;
}

.custom-bug-dropdown .dropdown-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-bug-dropdown .dropdown-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.custom-bug-dropdown .dropdown-item-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bug-info {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--success-bg, rgba(76, 175, 80, 0.1));
    border-radius: 12px;
    border: 1px solid var(--success, rgba(76, 175, 80, 0.3));
}

.bug-details {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bug-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background-color: var(--bg-tertiary, rgba(255, 255, 255, 0.2));
    padding: 8px;
    border: 2px solid var(--success, rgba(76, 175, 80, 0.2));
    flex-shrink: 0;
}

.bug-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.bug-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background-color: var(--bg-card, rgba(255, 255, 255, 0.5));
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(76, 175, 80, 0.2));
}

.bug-stat .stat-label {
    font-weight: 700;
    color: var(--text-secondary, #374151);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.bug-stat .stat-value {
    color: var(--success, #059669);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Special styling for longer text fields in bugs */
.bug-stat.long-text .stat-value {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Responsive grid for bug stats */
@media (min-width: 768px) {
    .bug-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .bug-stat.full-width {
        grid-column: 1 / -1;
    }
}

/* Bug hunting event card styles */
.bug-hunting-info {
    background-color: #f0f9ff;
    border: 1px solid #0284c7;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.hunting-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.hunting-detail i {
    color: #0284c7;
    width: 16px;
}

.bug-event-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(2, 132, 199, 0.2);
}

.bug-event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.bug-event-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bug-event-stat .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.bug-event-stat .stat-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0284c7;
}

/* Hunting Styles */
.hunting-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.creature-info {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.creature-details {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.creature-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border: 2px solid rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
}

.creature-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.creature-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.creature-stat .stat-label {
    font-weight: 700;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.creature-stat .stat-value {
    color: #ea580c;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Special styling for longer text fields */
.creature-stat.long-text .stat-value {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Dark mode for creature stats */
[data-theme="dark"] .creature-info {
    background-color: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.4);
}

[data-theme="dark"] .creature-image {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(234, 88, 12, 0.3);
}

[data-theme="dark"] .creature-stat {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .creature-stat .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .creature-stat .stat-value {
    color: #fb923c;
}

/* ===== Forageable Info Styles ===== */
.forageable-info {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.forageable-details {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.forageable-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border: 2px solid rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.forageable-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.forageable-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.forageable-stat .stat-label {
    font-weight: 700;
    color: #374151;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.forageable-stat .stat-value {
    color: #15803d;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Rarity badge in forageable stat - not clickable */
.forageable-stat .stat-value.stat-badge {
    cursor: default;
    pointer-events: none;
}

.forageable-stat.full-width {
    grid-column: 1 / -1;
}

.forageable-stat.long-text .stat-value {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Foraging Event Card Styles */
.foraging-info {
    background-color: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.foraging-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.foraging-detail i {
    color: #16a34a;
    width: 16px;
}

.forageable-event-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.forageable-event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.forageable-event-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.forageable-event-stat .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.forageable-event-stat .stat-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #16a34a;
}

/* Responsive grid for creature stats */
@media (min-width: 768px) {
    .creature-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .creature-stat.full-width {
        grid-column: 1 / -1;
    }
}

/* Hunting event card styles */
.hunting-event-info {
    background-color: #fef2f2;
    border: 1px solid #dc2626;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.hunting-event-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
}

.hunting-event-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hunting-event-stat .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.hunting-event-stat .stat-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #dc2626;
}

@media (max-width: 768px) {
    .bug-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .bug-stats {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .bug-event-info {
        grid-template-columns: 1fr;
    }
}

/* Recipe Dropdown Styles */
.form-group select optgroup {
    font-weight: bold;
    font-style: normal;
    color: #374151;
    background-color: #f9fafb;
}

.form-group select optgroup option {
    font-weight: normal;
    padding-left: 1rem;
    color: #6b7280;
}

.form-group select option {
    padding: 0.5rem;
}

.form-group select option:hover,
.form-group select option:focus {
    background-color: #4f46e5;
    color: white;
}

.roles-container {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8fafc;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s ease;
}

.role-item:hover {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(102, 126, 234, 0.3);
}

.role-item:last-child {
    margin-bottom: 0;
}

.role-name {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
    transition: border-color 0.2s ease;
}

.role-name:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.role-name-display {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    padding: 0.25rem 0;
}

.role-count {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    background: white;
    transition: border-color 0.2s ease;
}

.role-count:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.role-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-remove-role {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-remove-role:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Lock style for cooking event role removal buttons */
.btn-remove-role.role-lock-btn {
    background: #6b7280;
    color: #ffffff;
    border: 1px solid #4b5563;
}

.btn-remove-role.role-lock-btn:hover {
    background: #4b5563;
    color: #ffd700;
    border-color: #374151;
    transform: scale(1.1);
}

.btn-remove-role.role-lock-btn.locked {
    background: #dc2626;
    color: #ffffff;
    border-color: #b91c1c;
}

.btn-remove-role.role-lock-btn.locked:hover {
    background: #b91c1c;
    color: #fecaca;
    border-color: #991b1b;
    transform: scale(1.1);
}

/* Role Icons Styling */
.role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-right: 0.5rem;
}

.role-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0.75rem;
    padding: 0.3rem;
    border-radius: 6px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.station-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    padding: 0.3rem;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 6px;
    cursor: help;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.station-icon:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.ingredient-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
    transition: all 0.2s ease;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
}

.ingredient-icon:hover {
    border-color: #5a67d8;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Clickable Fruit Selection Styles */
.clickable-fruit {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
}

.clickable-fruit:hover {
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
    transform: scale(1.15) !important;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}

.clickable-fruit::before {
    content: "🔄";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 12px;
    background: rgba(16, 185, 129, 0.95);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.clickable-fruit:hover::before {
    animation: spin 0.5s ease-in-out;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

.ingredient-emoji {
    font-size: 1.4rem;
    padding: 0.2rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0,0,0,0.15);
    display: inline-block;
    transition: all 0.2s ease;
    cursor: help;
}

.ingredient-emoji:hover {
    transform: scale(1.1);
    border-color: rgba(102, 126, 234, 0.4);
}

.role-assignments {
    margin-top: 1rem;
}

.role-assignment, .role-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.role-assignment:last-child, .role-summary-item:last-child {
    margin-bottom: 0;
}

.role-assignment .role-info, .role-summary-item .role-info {
    font-weight: 500;
}

.role-assignment .role-progress, .role-summary-item .role-progress {
    font-size: 0.9rem;
    color: #64748b;
}

.role-summary {
    margin-top: 0.5rem;
}

.role-summary-compact {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
}

.role-compact {
    font-size: 0.8rem;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #334155;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-actions {
        order: 2;
        justify-content: center;
    }

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

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

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Fishing Event Styles */
.fishing-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #0ea5e9;
}

.fish-info {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.fish-details {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.fish-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #0ea5e9;
    background: #f8fafc;
}

.fish-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.fish-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 6px;
    border-bottom: none;
}

.fish-stat .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.fish-stat .stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0ea5e9;
    text-align: right;
}

.fish-stat.full-width {
    grid-column: 1 / -1;
}

.fish-stat.long-text .stat-value {
    max-width: 300px;
    word-wrap: break-word;
    text-align: right;
    font-size: 0.8rem;
}

.fishing-info h4 {
    color: #0ea5e9;
    margin-bottom: 0.5rem;
}

.fishing-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.fish-event-details {
    margin-top: 0.5rem;
}

.fish-event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.fish-event-stat {
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.fish-event-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.fish-event-stat .stat-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

/* Event type indicator colors for fishing */
.event-type.fishing {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* Mining Styles */
.mineral-info {
    width: 100%;
    overflow: visible;
}

.mineral-details {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.mineral-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #8b5cf6;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.15);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mineral-image:hover {
    transform: scale(1.05);
}

.mineral-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0; /* Allow shrinking */
    width: 100%;
}

/* Top row with key stats - auto-fit for responsive layout */
.mineral-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* On larger screens, use 4 columns */
@media (min-width: 500px) {
    .mineral-stats-row:first-child {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mineral-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    min-height: 55px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Removed hover effect - these are info badges, not clickable */

.mineral-stat .stat-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    white-space: nowrap;
    line-height: 1;
}

.mineral-stat .stat-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    width: 100%;
}

/* Second row styling */
.mineral-stats-row:nth-child(2) {
    grid-template-columns: 1fr 2fr;
}

.mineral-stats-row:nth-child(2) .mineral-stat:first-child {
    justify-content: center;
}

.mineral-stats-row:nth-child(2) .mineral-stat:last-child {
    align-items: flex-start;
    text-align: left;
    justify-content: center;
}

/* Consistent badge styling */
.stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.6rem;
    text-align: center;
    min-width: 40px;
    max-width: 100%;
    height: 22px;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    box-sizing: border-box;
}

/* Badge color schemes */
#mineralExperience.stat-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

#mineralValue.stat-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.rarity-common.stat-badge { 
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); 
    color: white; 
}
.rarity-uncommon.stat-badge { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
}
.rarity-rare.stat-badge { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
    color: white; 
}
.rarity-epic.stat-badge { 
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); 
    color: white; 
}

.pickaxe-makeshift.stat-badge { 
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); 
    color: white; 
}
.pickaxe-standard.stat-badge { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
}
.pickaxe-fine.stat-badge { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
    color: white; 
}
.pickaxe-exquisite.stat-badge { 
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); 
    color: white; 
}

/* Full width sections */
.mineral-stat.full-width {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    height: auto;
    min-height: 60px;
    align-items: flex-start;
    text-align: left;
    padding: 1.25rem;
}

.mineral-stat.long-text .stat-label {
    text-align: left;
    margin-bottom: 0.75rem;
}

.mineral-stat.long-text .stat-value {
    text-align: left;
    line-height: 1.6;
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
}

/* Responsive adjustments for smaller containers */
@media (max-width: 600px) {
    /* Wizard responsive */
    .event-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wizard-steps-bar {
        gap: 0.25rem;
    }
    
    .wizard-step {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .wizard-step .step-number {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }
    
    .wizard-step .step-label {
        display: none;
    }
    
    .wizard-step.active .step-label {
        display: block;
    }
    
    .review-card-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .visibility-options {
        grid-template-columns: 1fr;
    }
    
    .mineral-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .mineral-stats-row:nth-child(2) {
        grid-template-columns: 1fr;
    }
    
    .stat-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.4rem;
        min-width: 50px;
        height: 22px;
    }
    
    .mineral-stat {
        min-height: 65px;
        padding: 0.5rem;
    }
    
    .mineral-stat .stat-label {
        font-size: 0.6rem;
    }
}

/* Extra responsive for very small containers */
.mineral-details[style*="width"] .stat-badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
    min-width: 45px;
    height: 22px;
}

/* Enhanced Notes section */
#mineralNotes {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    font-style: italic;
    line-height: 1.5;
    color: #0f172a;
}

#mineralNotes a {
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

#mineralNotes a:hover {
    color: #0284c7;
    text-decoration: underline;
}

#mineralDropsFromSection .stat-value {
    background-color: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #475569;
    font-style: italic;
}

/* Enhanced mineral dropdown styling */
#mineralSelect {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 400px; /* Ensure adequate width for experience values */
    width: 100%;
}

#mineralSelect:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

#mineralSelect optgroup {
    font-weight: 700;
    color: #374151;
    background: #f9fafb;
}

#mineralSelect option {
    padding: 0.5rem;
    background: #ffffff;
    color: #1f2937;
}

.mining-info h4 {
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.mining-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.mineral-event-details {
    margin-top: 0.5rem;
}

.mineral-event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.mineral-event-stat {
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.mineral-event-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mineral-event-stat .stat-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

/* Event type indicator colors for mining */
.event-type.mining {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Event type indicator colors for fishing */
.event-type.fishing {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* Biome Map Styles */
.biome-map-container {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px solid #cbd5e1;
}

.biome-map-container h4 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.biome-map-container h4::before {
    content: "🗺️";
    font-size: 1.2em;
}

.biome-map-display {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.biome-map-image {
    flex-shrink: 0;
    width: 200px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #94a3b8;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.biome-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.biome-description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.fishing-spots {
    margin-bottom: 1rem;
}

.fishing-spots::before {
    content: "🎣 Fishing Spots: ";
    font-weight: 600;
    color: #0ea5e9;
}

.fishing-spots {
    color: #475569;
    font-size: 0.9rem;
}

.biome-wiki-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.biome-wiki-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.biome-wiki-link i {
    font-size: 0.8rem;
}

/* Cooking Event Specific Styles */
.cooking-event {
    position: relative;
    overflow: hidden;
}

.cooking-event .event-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 1rem 1.5rem;
    color: white;
}

.cooking-event .event-title {
    color: white;
    margin-bottom: 0.5rem;
}

.cooking-event .event-description {
    color: rgba(255,255,255,0.9);
}

.event-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-difficulty.rare {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    color: white;
}

.event-difficulty.epic {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: white;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.cooking-event .detail-item {
    color: rgba(255,255,255,0.8);
}

.detail-item i {
    width: 16px;
    color: #4f46e5;
}

.cooking-event .detail-item i {
    color: rgba(255,255,255,0.9);
}

.event-host {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.cooking-event .event-host {
    color: rgba(255,255,255,0.8);
}

.cooking-event-stats {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.cooking-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.cooking-stat .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.cooking-stat .stat-value {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
}

.workflow-btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.workflow-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    text-decoration: none;
    color: white;
}

.host-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.event-progress {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Responsive design for biome map */
@media (max-width: 768px) {
    .biome-map-display {
        flex-direction: column;
    }
    
    .biome-map-image {
        width: 100%;
        max-width: 300px;
        align-self: center;
    }
    
    /* Responsive checkbox grid */
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .checkbox-item {
        padding: 0.75rem 0.5rem;
    }
}

/* My Parties Section */
.my-parties-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.my-parties-section .event-category {
    margin-bottom: 3rem;
}

.my-parties-section .event-category h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.my-parties-section .event-category h2 i {
    color: #8b5cf6;
}

.my-parties-section .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.my-parties-section .empty-state i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.my-parties-section .empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Style the create event button in empty state */
#createEventFromEmpty {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#createEventFromEmpty:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

/* Navigation tab styling enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 2px 2px 0 0;
}

/* Countdown status styling */
.event-status.scheduled {
    min-width: auto;
    white-space: nowrap;
    font-size: 0.85rem;
}

.event-status.scheduled i {
    margin-right: 0.25rem;
}

/* Responsive adjustments for countdown text */
@media (max-width: 768px) {
    .event-status.scheduled {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Event Details Modal */
.modal-large .modal-content {
    max-width: 800px;
    width: 90%;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Event details content styling */
.event-details-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-details-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sidebar-specific icon sizing for clarity */
.event-details-sidebar .station-icon,
.event-details-sidebar .ingredient-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}
.event-details-sidebar .station-icon img,
.event-details-sidebar .ingredient-icon img,
.event-details-sidebar .station-icon svg,
.event-details-sidebar .ingredient-icon svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    box-sizing: border-box;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.event-detail-section {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.event-detail-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-full-description {
    color: #475569;
    line-height: 1.6;
    white-space: pre-wrap;
}

.event-meta-full {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-meta-item-full {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.event-meta-item-full:last-child {
    border-bottom: none;
}

.event-meta-item-full i {
    width: 20px;
    color: #64748b;
    flex-shrink: 0;
}

.event-meta-item-full span {
    color: #1e293b;
    font-weight: 500;
}

.roles-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-item-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.role-item-full .role-name {
    font-weight: 500;
    color: #1e293b;
}

.role-item-full .role-progress {
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .event-details-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-large .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Connection Line Styles for Dependencies */
.role-connection-line {
    position: absolute;
    pointer-events: none;
    z-index: 9999 !important; /* Maximum z-index for testing */
    display: block !important;
}

.role-connection-line.dependency-line {
    background: #3b82f6 !important;
    opacity: 1 !important; /* Full opacity for visibility */
    border: 2px solid #ff0000 !important; /* Red border for debugging */
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8) !important; /* Strong glow effect */
    min-width: 2px !important;
    min-height: 2px !important;
}

.role-connection-line.secondary-dependency {
    background: repeating-linear-gradient(
        to right,
        #8b5cf6 0,
        #8b5cf6 5px,
        transparent 5px,
        transparent 10px
    ) !important;
    opacity: 1 !important; /* Full opacity for visibility */
    border: 2px solid #00ff00 !important; /* Green border for debugging */
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.8) !important; /* Strong glow effect */
    min-width: 2px !important;
    min-height: 2px !important;
}

.role-connection-line.cake-path {
    background: #f59e0b !important;
    opacity: 1 !important; /* Full opacity for visibility */
    border: 2px solid #ffff00 !important; /* Yellow border for debugging */
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8) !important; /* Strong glow effect */
    min-width: 2px !important;
    min-height: 2px !important;
}

/* ==============================================
   FRIEND REQUEST NOTIFICATION STYLES
   ============================================== */

.friend-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    min-width: 350px;
    width: 100%;
    box-sizing: border-box;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

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

.friend-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.friend-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.friend-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.friend-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    text-align: center;
}

.friend-card .btn.accept-btn {
    background: #10b981;
    color: white;
}

.friend-card .btn.accept-btn:hover {
    background: #059669;
}

.friend-card .btn.decline-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.friend-card .btn.decline-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile responsiveness for friend cards */
@media (max-width: 768px) {
    .friend-card {
        min-width: unset;
        padding: 0.75rem 1rem;
    }
    
    .friend-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
    }
    
    .friend-card .btn {
        width: 100%;
    }
}

/* Friend request section styling */
#friendRequests {
    margin-top: 1rem;
}

#friendRequests h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Empty state styling */
#friendRequests p {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ==========================================
   DARK MODE: Mineral Card Styles
   ========================================== */
[data-theme="dark"] .mineral-details {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mineral-image {
    background: #1e293b;
    border-color: #a78bfa;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.25);
}

[data-theme="dark"] .mineral-stat {
    background: #0f172a;
    border-color: #334155;
}

/* Removed hover effect for dark mode - info badges not clickable */

[data-theme="dark"] .mineral-stat .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .mineral-stat .stat-value {
    color: #f1f5f9;
}

[data-theme="dark"] #mineralNotes {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left-color: #38bdf8;
    color: #e2e8f0;
}

[data-theme="dark"] #mineralNotes a {
    color: #38bdf8;
}

[data-theme="dark"] #mineralNotes a:hover {
    color: #7dd3fc;
}

[data-theme="dark"] #mineralDropsFromSection .stat-value {
    background-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] #mineralSelect {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] #mineralSelect:hover,
[data-theme="dark"] #mineralSelect:focus {
    border-color: #a78bfa;
}

/* ==========================================
   DARK MODE: Fish Info & Biome Map Styles
   ========================================== */
[data-theme="dark"] .fish-info {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

[data-theme="dark"] .fish-image {
    background: #1e293b;
    border-color: #0ea5e9;
}

[data-theme="dark"] .fish-stat {
    border-bottom-color: #334155;
    background: #0f172a;
}

[data-theme="dark"] .fish-stat .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .fish-stat .stat-value {
    color: #38bdf8;
}

[data-theme="dark"] .fish-event-stat {
    background: #1e293b;
}

[data-theme="dark"] .fish-event-stat .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .fish-event-stat .stat-value {
    color: #f1f5f9;
}

[data-theme="dark"] .biome-map-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

[data-theme="dark"] .biome-map-container h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .biome-map-image {
    border-color: #475569;
}

[data-theme="dark"] .biome-name {
    color: #f1f5f9;
}

[data-theme="dark"] .biome-description {
    color: #cbd5e1;
}

[data-theme="dark"] .fishing-spots {
    color: #cbd5e1;
}

/* ==========================================
   DARK MODE: Event Creation Preview (Step 4)
   ========================================== */
[data-theme="dark"] .review-preview-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
}

[data-theme="dark"] .review-card-body {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .review-card-description {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

[data-theme="dark"] .review-card-meta-item {
    color: #cbd5e1;
}

[data-theme="dark"] .review-card-meta-item i {
    color: #94a3b8;
}

[data-theme="dark"] .review-card-host {
    color: #f1f5f9;
}

[data-theme="dark"] .review-checklist-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
}

[data-theme="dark"] .review-checklist-title {
    color: #94a3b8;
}

[data-theme="dark"] .review-checklist-item {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .review-checklist-item.complete {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .review-checklist-item.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .review-checklist-label {
    color: #f1f5f9;
}

[data-theme="dark"] .review-info-note {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}
