/* Room Page Styles */
body.room-page {
    background: #0F172A;
    overflow: hidden;
}

/* Video Container */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1E293B;
}

#remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remote-name {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* Local Video */
.local-video-wrapper {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.2);
}

#localVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* Status Bar */
.status-bar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 100;
}

.status-bar.connected {
    background: rgba(16, 185, 129, 0.8);
}

.status-bar.error {
    background: rgba(239, 68, 68, 0.8);
}

/* Controls */
.controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    z-index: 100;
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.control-btn.off {
    background: rgba(239, 68, 68, 0.8);
}

.control-btn.btn-leave {
    background: #EF4444;
}

.control-btn.btn-leave:hover {
    background: #DC2626;
}

/* Room Info */
.room-info {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.room-logo {
    height: 32px;
}

.room-info span {
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border-radius: 16px;
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.feedback-modal.show {
    display: flex;
}

.feedback-content {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    margin: 24px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.feedback-header {
    background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
    padding: 32px;
    text-align: center;
    color: white;
}

.feedback-header i {
    font-size: 48px;
    margin-bottom: 16px;
}

.feedback-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feedback-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.feedback-body {
    padding: 24px;
}

.rating-container {
    text-align: center;
    margin-bottom: 24px;
}

.rating-label {
    display: block;
    font-size: 14px;
    color: #64748B;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.stars i {
    font-size: 32px;
    color: #E2E8F0;
    cursor: pointer;
    transition: all 0.2s;
}

.stars i:hover,
.stars i.active {
    color: #FBBF24;
    transform: scale(1.1);
}

.stars i.hover {
    color: #FBBF24;
}

.feedback-questions {
    margin-bottom: 24px;
}

.feedback-questions label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 12px;
}

.problem-options {
    display: flex;
    gap: 12px;
}

.problem-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.problem-btn:hover {
    border-color: #0891B2;
    color: #0891B2;
}

.problem-btn.active {
    border-color: #0891B2;
    background: #0891B2;
    color: white;
}

.problem-btn[data-value="yes"].active {
    background: #10B981;
    border-color: #10B981;
}

.problem-btn[data-value="partial"].active {
    background: #F59E0B;
    border-color: #F59E0B;
}

.problem-btn[data-value="no"].active {
    background: #EF4444;
    border-color: #EF4444;
}

.feedback-comment label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 8px;
}

.feedback-comment textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.feedback-comment textarea:focus {
    border-color: #0891B2;
}

.feedback-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #E2E8F0;
}

.btn-skip {
    flex: 1;
    padding: 14px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    color: #64748B;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-skip:hover {
    background: #F8FAFC;
}

.btn-submit {
    flex: 2;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #0F172A;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: #1E293B;
}

/* Responsive */
@media (max-width: 768px) {
    .local-video-wrapper {
        width: 120px;
        height: 90px;
        bottom: 120px;
        right: 16px;
    }

    .controls {
        padding: 12px 16px;
        gap: 12px;
    }

    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .room-info {
        left: 16px;
        top: 16px;
    }

    .room-logo {
        height: 24px;
    }

    .feedback-content {
        margin: 16px;
    }

    .feedback-header {
        padding: 24px;
    }

    .problem-options {
        flex-direction: column;
    }
}
