:root {
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    animation: slideDown 0.6s ease-out;
}

h1 span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

nav {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
}

nav button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 600;
}

nav button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    padding: 2rem;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.progress-bar {
    background: rgba(255, 255, 255, 0.05);
    height: 12px;
    border-radius: 6px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, var(--primary), #34d399);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: white;
    margin-bottom: 1rem;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.btn-danger {
    background: #ef4444;
}

.session-list {
    display: grid;
    gap: 1rem;
}

.session-item {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 700;
}

.connected {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.disconnected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
}

.qr-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem auto;
    width: fit-content;
}