/* Overall page styling */
.svc-page {
    background: #f5f5f7;
    padding: 24px;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 1200px;
}

.svc-page-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 32px;
    margin: 0 0 24px 0;
}

/* Layout */
.svc-layout {
    display: flex;
    gap: 24px;
}

/* Panels */
.svc-panel {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.svc-panel-users {
    width: 220px;
    flex-shrink: 0;
}

.svc-panel-chat {
    width: 260px;
    flex-shrink: 0;
}

.svc-panel-video {
    flex: 1 1 auto;
}

.svc-panel-heading {
    font-size: 18px;
    margin: 0 0 14px 0;
}

/* Users */
.svc-users-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-users-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    font-size: 14px;
}

.svc-users-list li:hover,
.svc-users-list li.svc-active {
    background: #f1f5f9;
}

.svc-flag {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
    display: inline-block;
}

/* Video boxes */
.svc-video-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.svc-video-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

#svc-main-video,
#svc-remote-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #111827;
}

/* Controls */
.svc-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(15,23,42,0.9);
}

.svc-video-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 18px;
}

/* Rooms */
.svc-room-switcher {
    margin-top: 18px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}

.svc-room-buttons {
    margin-top: 8px;
}

.svc-room-buttons button {
    margin: 4px 4px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
}

.svc-room-buttons button.svc-active {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
}

.svc-room-create {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

.svc-room-create input {
    flex: 1;
}

/* Chat */
.svc-profile-settings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 10px;
}

.svc-profile-field span {
    display: block;
    margin-bottom: 3px;
}

.svc-profile-save {
    justify-self: flex-start;
    margin-top: 2px;
}

.svc-chat-messages {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    height: 260px;
    overflow-y: auto;
    font-size: 13px;
    background: #f9fafb;
}

.svc-chat-message {
    margin-bottom: 8px;
}

.svc-chat-message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
}

.svc-chat-message-text {
    margin-left: 22px;
    font-size: 13px;
}

/* Chat input */
.svc-chat-input {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

.svc-chat-input textarea {
    flex: 1;
    resize: vertical;
    min-height: 42px;
}

.svc-chat-input button {
    white-space: nowrap;
}

/* License warning */
.svc-license-warning {
    padding: 20px;
    border-radius: 8px;
    background: #fef3c7;
    border: 1px solid #facc15;
}

/* Responsive */
@media (max-width: 960px) {
    .svc-layout {
        flex-direction: column;
    }

    .svc-panel-users,
    .svc-panel-chat {
        width: 100%;
    }
}
