:root {
    --primary: #894BE2;
    --primary-dark: #6e3cb5;
    --primary-light: #a46dec;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(137, 75, 226, 0.2);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

/* Status & Queue */
.queue-status {
    margin: 2rem 0;
}

.wait-time {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin: 1rem 0;
}

.position-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(137, 75, 226, 0.2);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Video Room */
.room-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    letter-spacing: 0;
    height: 100vh;
    background: #000;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
}

.local-video {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    /* Ensure black bars if ratio mismatch */
}

.controls-bar {
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #334155;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn.active {
    background: var(--primary);
}

.control-btn.danger {
    background: var(--danger);
}

/* Rating Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: #475569;
    transition: color 0.2s;
}

.star.active {
    color: #fbbf24;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary-light);
    border-radius: 20px;
    cursor: pointer;
}

.tag-btn.selected {
    background: var(--primary);
    color: white;
}