html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Blazor Error UI Styling */
#blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

#blazor-error-ui.show {
    display: flex;
}

.blazor-error-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blazor-error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.blazor-error-icon i {
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

.blazor-error-content h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blazor-error-content p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blazor-error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-reload, .btn-dismiss {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-reload {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-reload:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6D28D9 100%);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    transform: translateY(-2px);
}

.btn-dismiss {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 2px solid rgba(107, 114, 128, 0.2);
}

.btn-dismiss:hover {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
    border-color: rgba(107, 114, 128, 0.3);
    transform: translateY(-2px);
}

/* Blazor Reconnection UI Styling */
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

#components-reconnect-modal.components-reconnect-show {
    display: flex !important;
}

.reconnect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.reconnect-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
}

.reconnect-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.reconnect-icon i {
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

.reconnect-content h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.reconnect-content p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.reconnect-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.reconnect-actions {
    display: flex;
    justify-content: center;
}

.btn-reconnect {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-reconnect:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Mobile responsiveness for error dialogs */
@media (max-width: 480px) {
    .blazor-error-card,
    .reconnect-card {
        padding: 2rem;
        width: calc(100% - 2rem);
        margin: 1rem;
        max-width: none;
    }
    
    .blazor-error-icon,
    .reconnect-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .blazor-error-icon i,
    .reconnect-icon i {
        font-size: 1.5rem;
    }
    
    .blazor-error-content h3,
    .reconnect-content h3 {
        font-size: 1.25rem;
    }
    
    .blazor-error-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-reload,
    .btn-dismiss,
    .btn-reconnect {
        width: 100%;
        justify-content: center;
    }
    
    #components-reconnect-modal {
        padding: 0.5rem;
    }
}

/* Ensure centering on all screen sizes */
@media (min-width: 481px) {
    .reconnect-card {
        min-height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Typography Scale */
h1, .h1 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    line-height: 1.2; 
    margin-bottom: 1.5rem;
    color: #1f2937;
}

h2, .h2 { 
    font-size: 2rem; 
    font-weight: 600; 
    line-height: 1.3; 
    margin-bottom: 1.25rem;
    color: #374151;
}

h3, .h3 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    line-height: 1.4; 
    margin-bottom: 1rem;
    color: #374151;
}

h4, .h4 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    line-height: 1.4; 
    margin-bottom: 0.875rem;
    color: #4b5563;
}

h5, .h5 { 
    font-size: 1.125rem; 
    font-weight: 600; 
    line-height: 1.5; 
    margin-bottom: 0.75rem;
    color: #4b5563;
}

h6, .h6 { 
    font-size: 1rem; 
    font-weight: 600; 
    line-height: 1.5; 
    margin-bottom: 0.75rem;
    color: #6b7280;
}

p, .body-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #4b5563;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: #6b7280;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #9ca3af;
}

/* Display classes for hero sections */
.display-1 { font-size: 5rem; font-weight: 800; line-height: 1.1; }
.display-2 { font-size: 4.5rem; font-weight: 700; line-height: 1.1; }
.display-3 { font-size: 4rem; font-weight: 700; line-height: 1.1; }
.display-4 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; }
.display-5 { font-size: 3rem; font-weight: 700; line-height: 1.2; }
.display-6 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }

/* Improved spacing and layout utilities */
.container, .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

.mb-section {
    margin-bottom: 3rem;
}

/* Enhanced link styles */
a, .btn-link {
    color: #4F46E5;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover, .btn-link:hover {
    color: #3730a3;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6D28D9 50%, #0891B2 100%);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9QTguNjk1MSAxNS44MDEgMTMyLjcwNjYgVVMKICAgICAgICAgICAgICBNSDEwLjU2OCAwLjcwODI2IDAuNzU2NiAwLjU3NjQyIDAuNTY4NzQgMC4zMDQ2MjUgIEUxMTkuMDY4IDEwLjg1MTggMTAuNTUyMyA1LjY0ODEzIDIwLjYyODAzIDQuOTIzNTIgMTAuMzUxMTkgMTMuMjYzOCAyMy45MDY5MyAxMi4yNjMgOC41NjY4NyA1MC4zNzYxIDcuOTg0NjA4IDQwLjg2MyA0LjY4NTYzIDMwLjcwOTY2IDEwLjUwNjkgMTAuMDU4OSAyMC42NTc4NyA2LjU0MzAzNyAxMC4yMjg5MSAzOC4zNzAyMiAxMC4zMDY3IDU4LjY2MjI3IDI4LjQzNDIgMzYuNTg3ODMgMjkuNzY5IiBmaWxsPSIjRUU4QzAwIiBmaWwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Form placeholders */
.form-floating > .form-control-plaintext::placeholder, 
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, 
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Modern TagTheMap Styles */

.bg-gradient-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%) !important;
}

/* Ensure text is visible on gradient background */
.hero-section.bg-gradient-primary,
.hero-section.bg-gradient-primary .display-4,
.hero-section.bg-gradient-primary .lead,
.hero-section.bg-gradient-primary h1,
.hero-section.bg-gradient-primary p,
.hero-section.bg-gradient-primary .container .row .col-lg-6 h1,
.hero-section.bg-gradient-primary .container .row .col-lg-6 p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.world-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Enhanced button system */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.btn-light {
    color: #4F46E5;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    color: #3730a3;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: #4F46E5;
    border: 2px solid #4F46E5;
    background: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background: #4F46E5;
    border-color: #4F46E5;
}

/* Button sizes */
.btn-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 10px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
}

/* Enhanced form controls */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-control:focus, .form-select:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-control-lg {
    padding: 16px 20px;
    font-size: 1.125rem;
    border-radius: 14px;
}

.form-control-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: 10px;
}

.form-control-color {
    border-radius: 12px !important;
    border: 2px solid #e5e7eb;
    cursor: pointer;
}

.form-control-color:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Enhanced validation styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
  outline: none;
}

.valid.modified:not([type=checkbox]) {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.validation-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Form labels */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced card system */
.card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.card-subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Enhanced table styles */
.table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e5e7eb;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #4b5563;
}

.table tbody tr:hover {
    background: rgba(79, 70, 229, 0.03);
}

/* Enhanced navbar */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
    letter-spacing: -0.025em;
}

.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #4b5563 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: #4F46E5 !important;
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #4F46E5 !important;
    background: rgba(79, 70, 229, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Center navbar brand on desktop */
@media (min-width: 992px) {
    .navbar .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.875rem;
    }

    .navbar .navbar-brand:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .navbar .navbar-collapse {
        flex-grow: 0;
    }
}

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    .navbar .navbar-brand {
        position: static;
        transform: none;
        font-size: 1.5rem;
    }
    
    .navbar .navbar-brand:hover {
        transform: scale(1.05);
    }
}

#map {
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Participants list styling */
.participants-list {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.participant-name {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

/* Current user styling */
.participant-item.current-user {
    background: rgba(79, 70, 229, 0.08);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.participant-item.current-user .participant-name {
    color: #4F46E5;
    font-weight: 600;
}

.participant-item.current-user .participant-color {
    border: 2px solid #4F46E5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Navigation styles */
.navbar-brand {
    font-size: 1.5rem;
}

.sidebar {
    width: 250px;
    min-height: calc(100vh - 76px);
}

.sidebar-nav {
    width: 100%;
    height: 100%;
}
/* Session page styles */
.session-container {
    display: flex;
    height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.map-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Option 1: Floating Panel - Overlays in top-right corner */
.participants-list.floating-panel {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 300px;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 120px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(79, 70, 229, 0.1);
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
}

.participants-list.floating-panel:hover {
    box-shadow: 0 12px 50px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Option 2: Collapsible Sidebar - Can be toggled */
.participants-list.collapsible-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px 0 0 20px;
    padding: 24px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(79, 70, 229, 0.1);
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.participants-list.collapsible-sidebar.collapsed {
    transform: translateX(100%);
}

.sidebar-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    color: #4F46E5;
}

.sidebar-toggle:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

/* Option 3: Bottom Sheet - Mobile-friendly overlay */
.participants-list.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 40vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    overflow-y: auto;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.participants-list.bottom-sheet.collapsed {
    transform: translateY(calc(100% - 60px));
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(79, 70, 229, 0.3);
    border-radius: 2px;
    margin: 0 auto 16px;
    cursor: pointer;
}

/* Option 4: Mini Panel - Compact floating version */
.participants-list.mini-panel {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 200px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    border: 1px solid rgba(79, 70, 229, 0.1);
    z-index: 1000;
    max-height: 60vh;
    overflow-y: auto;
}

.mini-panel .participant-item {
    padding: 8px 0;
}

.mini-panel .participant-color {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.mini-panel .participant-name {
    font-size: 0.85rem;
}

.mini-panel h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Default participants list - keeps current sidebar behavior */
.participants-list {
    width: 320px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 0 0 0 20px;
    padding: 24px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(79, 70, 229, 0.1);
    overflow-y: auto;
    max-height: 100vh;
    position: relative;
    z-index: 10;
}

.participants-list h4 {
    color: #4F46E5;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item:hover {
    background: rgba(79, 70, 229, 0.05);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
}

.participant-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.participant-name {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .session-container {
        flex-direction: column;
        height: 100vh;
    }

    /* For mobile, floating panel stays in top-right */
    .participants-list.floating-panel {
        position: absolute;
        top: 20px;
        right: 20px;
        bottom: auto;
        left: auto;
        width: 240px;
        max-width: calc(100vw - 40px);
        max-height: 50vh;
        border-radius: 16px;
    }

    /* Collapsible sidebar takes full width on mobile */
    .participants-list.collapsible-sidebar {
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .participants-list.collapsible-sidebar.collapsed {
        transform: translateY(calc(100% - 60px));
    }

    .sidebar-toggle {
        top: auto;
        bottom: 30px;
        right: 30px;
    }

    /* Bottom sheet is ideal for mobile */
    .participants-list.bottom-sheet {
        max-height: 50vh;
    }

    /* Mini panel adjustments */
    .participants-list.mini-panel {
        width: 160px;
        padding: 12px;
        top: 20px;
        right: 20px;
    }

    .map-container {
        flex: 1;
        height: 100vh;
    }

    /* Default sidebar behavior on mobile */
    .participants-list:not(.floating-panel):not(.collapsible-sidebar):not(.bottom-sheet):not(.mini-panel) {
        width: 100%;
        height: 200px;
        max-height: 200px;
        border-radius: 20px 20px 0 0;
        margin: 0;
        padding: 16px 20px;
        position: relative;
        flex-shrink: 0;
    }
}

/* Animation for panel transitions */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.participants-list.floating-panel {
    animation: slideInRight 0.3s ease-out;
}

.participants-list.bottom-sheet {
    animation: slideInUp 0.3s ease-out;
}

/* Add draggable handle visual cue */
.participants-list.floating-panel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: rgba(79, 70, 229, 0.3);
    border-radius: 2px;
}

/* Expandable/collapsible content */
.participants-list.collapsed .participant-item:nth-child(n+4):not(.current-user) {
    display: none;
}

.participants-list.collapsed .participant-item.current-user {
    display: flex !important;
}