/* Enhanced video layout */
.remote-video {
    position: relative;
    height: 240px;
    background-color: #222;
    border-radius: 4px;
    overflow: hidden;
}

.video-grid-1 {
    width: 100%;
    height: 480px;
}

.video-grid-2 {
    width: 49%;
    height: 360px;
    display: inline-block;
    margin-right: 1%;
}

.video-grid-3 {
    width: 32%;
    height: 240px;
    display: inline-block;
    margin-right: 1%;
}

.video-grid-4 {
    width: 24%;
    height: 180px;
    display: inline-block;
    margin-right: 1%;
}

.video-grid-many {
    width: 24%;
    height: 180px;
    display: inline-block;
    margin-right: 1%;
    margin-bottom: 1%;
}

/* Device selection */
.device-selection {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.device-select-group {
    margin-bottom: 10px;
}

.device-select-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.device-select-group select {
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Stage requests */
.stage-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
}

.request-info {
    flex-grow: 1;
}

.request-username {
    font-weight: bold;
    margin-right: 10px;
}

.request-time {
    color: #666;
    font-size: 0.9em;
}

.request-actions {
    display: flex;
    gap: 5px;
}
/* Add this to your css-ffoa-townhall-update.css file */
#remote-videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.remote-video {
    position: relative;
    background-color: #222;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-grid-1 {
    width: 100%;
    height: 480px;
    flex: 0 0 100%;
}

.video-grid-2 {
    width: 49%;
    height: 360px;
    flex: 0 0 48%;
}

.video-grid-3 {
    width: 32%;
    height: 240px;
    flex: 0 0 31%;
}

.video-grid-4 {
    width: 24%;
    height: 180px;
    flex: 0 0 23%;
}

.video-grid-many {
    width: 19%;
    height: 150px;
    flex: 0 0 19%;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}
/* Stage management dropdown styles */
.stage-users-dropdown-container {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin-top: 10px;
}

#stage-users-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    width: 100%;
    margin-bottom: 5px;
}

#stage-users-select option {
    padding: 5px;
}

#stage-users-select option:hover {
    background-color: #e9ecef;
}

.dropdown-buttons {
    display: flex;
    justify-content: space-between;
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Guest signup modal */
#signup-prompt-modal .ffoa-modal-content {
    max-width: 500px;
    text-align: center;
}

#signup-prompt-modal h3 {
    color: #4CAF50;
    margin-bottom: 20px;
}

#signup-prompt-modal p {
    margin-bottom: 15px;
    font-size: 16px;
}

#signup-prompt-modal .ffoa-btn {
    margin: 0 10px;
}

/* Improve remove button visibility */
.remove-from-stage-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    z-index: 100;
    pointer-events: auto;
}

.remove-from-stage-btn:hover {
    background-color: rgba(255, 0, 0, 0.9);
}
