/* ─── Main Content ─── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.main-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
}

.main-header .room-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.main-header .room-name {
    font-size: 15px;
    font-weight: 600;
}

.main-header .room-participants {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ─── Reconnecting Banner ─── */
.reconnecting-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    z-index: 30;
    flex-shrink: 0;
}

@keyframes reconnecting-spin {
    to { transform: rotate(360deg); }
}

.reconnecting-spinner {
    animation: reconnecting-spin 1s linear infinite;
}

/* ─── Screen Share Error Toast ─── */
.screen-share-error-toast {
    position: absolute;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--color-danger);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 40;
    max-width: min(420px, calc(100vw - 32px));
    text-align: left;
}

.screen-share-error-toast-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.85;
    font-size: 13px;
    line-height: 1;
    padding: 2px;
    flex-shrink: 0;
}

.screen-share-error-toast-close:hover {
    opacity: 1;
}
