/**
 * Zoom Meeting Page Styles
 * Custom styling for the Zoom meeting integration
 */

/* Zoom meeting container */
#zoom-meeting-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Override Zoom SDK default styles */
#zmmtg-root {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Zoom video canvas */
#wc-content {
    width: 100% !important;
    height: 100% !important;
}

/* Meeting info display */
.zoom-meeting-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 999;
}

/* Configuration modal customization */
#zoom-config-modal .mantine-Modal-content {
    border-radius: 12px;
}

/* Loading overlay */
.zoom-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    background: #232323;
    color: white;
}

.zoom-loading-text {
    margin-top: 20px;
    font-size: 18px;
}

/* Error message styling */
#zoom-error-message {
    margin-top: 15px;
}

/* Control buttons styling */
#zoom-controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    #zoom-controls {
        bottom: 10px;
        padding: 10px 15px;
    }

    .zoom-meeting-info {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Hide Zoom SDK footer/branding if desired */
.zm-modal-footer-default-bottom {
    display: none !important;
}

/* Zoom SDK button customization */
.zm-btn-legacy {
    border-radius: 6px !important;
}

/* Meeting participant list */
.participants-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

/* Video tile styling */
.video-tile {
    border-radius: 8px;
    overflow: hidden;
}

/* Audio indicator */
.audio-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.audio-indicator.muted {
    background: #F44336;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Join meeting form */
.zoom-join-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Meeting number input formatting */
#zoom-meeting-number {
    letter-spacing: 2px;
}

/* Connection status indicator */
.connection-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.connection-status.connected {
    background: #4CAF50;
}

.connection-status.connecting {
    background: #FFC107;
    animation: blink 1s infinite;
}

.connection-status.disconnected {
    background: #F44336;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Fullscreen support */
.zoom-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    #zoom-config-modal .mantine-Modal-content {
        background: #1a1b1e;
    }
}
