/* ═══════════════════════════════════════════════════════════════
   📹 VIDEO CALL - ESTILOS
   ═══════════════════════════════════════════════════════════════ */

.videocall-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.videocall-header {
    text-align: center;
    margin-bottom: 2rem;
}

.videocall-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.videocall-icon {
    font-size: 2rem;
    animation: float3D 3s ease-in-out infinite;
}

.videocall-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ──────────── LAYOUT ──────────── */
.videocall-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

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

.videocall-sidebar {
    background: var(--bg-glass, rgba(20,20,20,0.7));
    border: 1px solid var(--border);
    border-radius: var(--radius, 16px);
    overflow: hidden;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* ──────────── SALA ──────────── */
.room-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.room-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    text-align: center;
}

.room-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.room-option h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.room-option p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.room-input-group {
    display: flex;
    gap: 0.5rem;
}

.room-input-group .form-input {
    flex: 1;
}

.room-divider {
    text-align: center;
    position: relative;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.room-divider::before,
.room-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: var(--border);
}

.room-divider::before { left: 0; }
.room-divider::after { right: 0; }

/* ──────────── VIDEO AREA ──────────── */
.videocall-area {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary, #111);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,255,136,0.05), transparent 70%);
}

.video-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.video-avatar {
    font-size: 3rem;
}

.video-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-overlay-controls {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.video-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-ctrl-btn:hover {
    background: rgba(0,255,136,0.2);
    border-color: var(--primary);
}

/* ──────────── CALL CONTROLS ──────────── */
.call-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.call-ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.call-ctrl-btn:hover {
    background: rgba(0,255,136,0.15);
    border-color: var(--primary);
    transform: scale(1.1);
}

.call-end-btn {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.call-end-btn:hover {
    background: #ef4444 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* ──────────── TIMER ──────────── */
.videocall-timer-section {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.section-title-sm {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.timer-display {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.timer-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.timer-circle.running {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: glowPulse 2s infinite;
}

.timer-circle.complete {
    border-color: #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    animation: pulse 0.5s ease 3;
}

.timer-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.timer-presets {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timer-preset-btn {
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.timer-preset-btn:hover, .timer-preset-btn.active {
    background: rgba(0,255,136,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ──────────── SIDEBAR TABS ──────────── */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.sidebar-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.sidebar-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.sidebar-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.sidebar-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-content.active {
    display: block;
}

/* ──────────── TODAY WORKOUT ──────────── */
.workout-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.workout-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.workout-empty h4 { margin: 0 0 0.5rem; color: var(--text-secondary); }
.workout-empty p { font-size: 0.82rem; margin: 0 0 1rem; }

.workout-today-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.workout-today-header {
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workout-today-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.workout-focus-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0,255,136,0.15);
    color: var(--primary);
}

.workout-exercises-list {
    padding: 0.5rem 0;
}

.workout-ex-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: background 0.2s;
}

.workout-ex-row:hover {
    background: rgba(255,255,255,0.03);
}

.workout-ex-row.even { background: rgba(255,255,255,0.02); }

.workout-ex-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,255,136,0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workout-ex-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.workout-ex-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.workout-ex-details {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.workout-ex-done-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: none;
    color: transparent;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workout-ex-done-btn:hover {
    border-color: var(--primary);
}

.workout-ex-done-btn.done {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.workout-cardio, .workout-notes {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

.workout-cardio span, .workout-notes span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ──────────── MÚSICA ──────────── */
.music-player {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.music-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.music-playlists {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.playlist-btn {
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.playlist-btn:hover, .playlist-btn.active {
    background: rgba(0,255,136,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.music-tracks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 200px;
    overflow-y: auto;
}

.music-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.music-track:hover { background: rgba(255,255,255,0.05); }

.music-track.active {
    background: rgba(0,255,136,0.1);
    color: var(--primary);
}

.track-number {
    font-size: 0.72rem;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
}

.track-name {
    flex: 1;
    font-size: 0.82rem;
}

.track-duration {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.music-ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.music-ctrl-btn:hover {
    background: rgba(0,255,136,0.15);
    border-color: var(--primary);
}

.music-play-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border-color: var(--primary);
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon { font-size: 0.9rem; }

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.volume-value {
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
}

.music-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem;
    background: rgba(0,255,136,0.03);
    border-radius: 6px;
}

.music-note p { margin: 0; }

/* ──────────── CHAT ──────────── */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
}

.chat-welcome {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.chat-welcome span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.chat-welcome p { margin: 0; font-size: 0.82rem; }

.chat-message {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    animation: fadeIn 0.2s ease;
}

.chat-message.sent {
    align-self: flex-end;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    align-self: flex-start;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg-content {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.chat-msg-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.chat-input {
    flex: 1;
}

.chat-quick-messages {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.quick-msg-btn {
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-msg-btn:hover {
    background: rgba(0,255,136,0.1);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 1024px) {
    .videocall-layout {
        grid-template-columns: 1fr;
    }

    .videocall-sidebar {
        position: static;
        max-height: none;
    }

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

@media (max-width: 768px) {
    .videocall-title { font-size: 1.3rem; }
    .room-card { padding: 1rem; }
    .timer-circle { width: 90px; height: 90px; }
    .timer-value { font-size: 1.5rem; }
}
