/**
 * RMT-Tech Nexus (Managed Mesh) Styles
 */

/* Example W3.CSS overrides or custom Nexus styles will go here */
.nexus-container {
    padding-top: 20px;
}

/* Toolbar should wrap nicely across viewports */
#nexus-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Manager panel: keep controls readable and responsive */
#manager-panel .d-flex {
    flex-wrap: wrap;
    gap: 8px;
}

/* Pending requests rows should wrap on small screens */
#pending-requests>div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Badge alignment and spacing */
#room-state-badge {
    vertical-align: middle;
    margin-left: 4px;
}

/* Join options: compact input behavior */
#invite-token-guest {
    min-width: 200px;
}

/* Small viewport tweaks */
@media (max-width: 575.98px) {
    #manager-panel .btn {
        width: 100%;
    }

    #invite-token-guest {
        width: 100%;
        min-width: 0;
    }
}

/* Participants Admin (responsive and unobtrusive) */
#peers-admin {
    overflow-x: auto;
}

.peer-admin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.peer-admin-row .form-check {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .peer-admin-row .badge {
        width: 100%;
    }

    .peer-admin-row .form-check {
        width: 48%;
    }

    .peer-admin-row .btn {
        width: 100%;
    }
}

/* Medium+ viewport: slightly taller video area */
@media (min-width: 768px) {
    #streams-container {
        min-height: 420px;
    }
}

/* Mobile compact + focus mode (cosmetic; toggled by plugin) */
@media (max-width: 575.98px) {
    .mobile-compact .init-controls-wrapper {
        display: none;
    }
}

/* Init Controls: tighten input-group icon spacing */
.init-controls .input-group-text {
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.init-controls .form-label {
    margin-bottom: 4px;
}

.init-controls .btn {
    min-width: 120px;
}

/* Focus mode: emphasize streams, hide nonessential panels */
.nexus-focus-mode #streams-container {
    position: relative;
    z-index: 2;
}

.nexus-focus-mode #nexus-toolbar,
.nexus-focus-mode #manager-panel,
.nexus-focus-mode .init-controls-wrapper {
    display: none !important;
}

/* Manager content collapse (mobile-first) */
#manager-content.is-collapsed {
    display: none !important;
}

/* Chevron rotates when collapsed */
#manager-panel-toggle[aria-expanded="false"] i.bi {
    transform: rotate(180deg);
}