/* ==================== JOIN TOAST NOTIFICATIONS ==================== */
.join-toast {
    animation: toastSlideIn 0.4s ease-out forwards;
    opacity: 0;
    transform: translateX(100%);
}
.join-toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}

/* ==================== PARTICIPANT PANEL POP-IN ==================== */
.participant-enter {
    animation: participantPopIn 0.4s ease-out forwards;
}
@keyframes participantPopIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-x: hidden;
}

/* ==================== SCREEN TRANSITIONS ==================== */
.screen {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(14, 113, 235, 0.2);
    border-top-color: #0E71EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading dots animation */
.loading-text .dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ==================== MODAL STYLES ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

/* Full page modal variant (for Zoom workspace) */
.modal-overlay.fullpage {
    backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.98);
    display: none;
    align-items: stretch;
    justify-content: stretch;
}

.modal-overlay.fullpage.show {
    display: block;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== BUTTON STYLES ==================== */
.control-btn {
    min-width: 60px;
}

@media (min-width: 768px) {
    .control-btn {
        min-width: 70px;
    }
}

/* Tooltip style for control buttons */
.control-btn:hover {
    background-color: #303030;
}

/* ==================== INPUT STYLES ==================== */
input[type="text"]:focus {
    box-shadow: 0 0 0 2px rgba(14, 113, 235, 0.3);
}

input[type="checkbox"] {
    cursor: pointer;
}

/* ==================== SCROLLBAR STYLES ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 640px) {
    .control-btn {
        min-width: 50px;
        padding: 0.5rem !important;
    }
    
    .control-btn span {
        font-size: 9px !important;
    }
}

/* ==================== PULSE ANIMATION FOR NOTIFICATIONS ==================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==================== SLIDE UP ANIMATION ==================== */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

/* ==================== SLIDE IN FROM RIGHT ANIMATION ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

/* ==================== BROWSER DOWNLOAD NOTIFICATION ==================== */
#browserDownloadNotification .slide-up {
    animation: slideInRight 0.3s ease-out;
}

/* ==================== PROGRESS BAR (for future use) ==================== */
.progress-bar {
    height: 4px;
    background-color: #303030;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #0E71EB;
    transition: width 0.3s ease;
}

/* ==================== MEETING TIMER STYLE ==================== */
#meetingTimer {
    letter-spacing: 0.05em;
}

/* ==================== VIDEO PANEL HOVER EFFECT ==================== */
.video-panel:hover .video-controls {
    opacity: 1;
}

.video-controls {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* ==================== SCREEN HIDDEN STATE ==================== */
.hidden {
    display: none !important;
}

/* ==================== FOCUS STYLES FOR ACCESSIBILITY ==================== */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #0E71EB;
    outline-offset: 2px;
}

/* ==================== SELECTION STYLES ==================== */
::selection {
    background-color: rgba(14, 113, 235, 0.3);
    color: white;
}
