﻿.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-window {
    background: #ffffffee;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: min(42rem, 90vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modal-pop 0.18s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

    .modal-header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
}

    .modal-close:hover {
        opacity: 1;
    }

.modal-body {
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.changelog {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .changelog li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        margin: 0.4rem 0;
        background: #ffffff88;
        border: 1px solid #ddd;
        border-radius: 0.6rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

        .changelog li::before {
            content: "•";
            color: #4caf50;
            font-weight: bold;
            margin-right: 0.25rem;
        }

    .changelog button {
        margin-left: auto;
        flex-shrink: 0;
    }

    .changelog strong {
        font-weight: 600;
    }

    .changelog em {
        font-style: italic;
        color: #666;
    }


@keyframes modal-pop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
