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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

/* ============================================
   Z-INDEX LAYERING SYSTEM
   ============================================ */
/* 
   Layer 1: Background (z-index: 1)
   Layer 2: Container/Card Wrapper (z-index: 10)
   Layer 3: Cards & Interactive Elements (z-index: 20+)
*/

.container {
    position: relative;
    z-index: 10;  /* Above particles */
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;  /* BELOW all interactive elements */
    overflow: hidden;
    pointer-events: none;  /* Prevents particles from blocking clicks */
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    pointer-events: none;  /* Ensures particles never block clicks */
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
    position: relative;
    z-index: 20;  /* ABOVE container and particles */
}

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

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

h1 {
    font-size: 28px;
    margin: 20px 0;
    font-weight: 600;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.meeting-header {
    margin-bottom: 30px;
}

.avatar-group {
    display: flex;
    justify-content: center;
    gap: -10px;
    margin-bottom: 15px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-left: -10px;
    position: relative;
    z-index: 21;  /* Above card background */
}

.avatar:first-child {
    margin-left: 0;
}

.meeting-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 21;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 16px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    position: relative;
    z-index: 21;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 22;  /* Highest - ensures buttons are clickable */
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

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

.note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
    position: relative;
    z-index: 21;
}

.error .icon {
    font-size: 64px;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 24px;
    }
}
