/* Модальные окна в стиле Google Meet */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal-window {
    background-color: #202124;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.95);
    animation: modalAppear 0.2s ease-out forwards;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #3c4043;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #e8eaed;
}

.modal-close {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.modal-close:hover {
    background-color: #3c4043;
    color: #e8eaed;
}

.modal-content {
    padding: 20px 24px 24px;
    color: #e8eaed;
    line-height: 1.5;
}

.modal-content p {
    margin: 0 0 16px;
    font-size: 14px;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalAppear {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalDisappear {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.95);
        opacity: 0;
    }
}

.modal-window.closing {
    animation: modalDisappear 0.15s ease-in forwards;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .modal-window {
        width: 95%;
        max-width: none;
    }

    .modal-header {
        padding: 16px 20px 12px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-content {
        padding: 16px 20px 20px;
    }
}