.app-modal-dialog {
    max-width: 40rem;
    width: 100%;
    pointer-events: none;
    margin-top: 8vh;
}

.app-modal-content {
    width: 100%;
    pointer-events: auto;
    background: #ffffff;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    color: #111827;
}

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: capitalize;
}

.app-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: #ffffff;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.app-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.app-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Long content (help docs) scrolls inside the modal instead of the page. */
.app-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.app-modal-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #111827;
}

/* Longer free text, e.g. help docs. */
.app-modal-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
}

.help-doc-content > :last-child {
    margin-bottom: 0;
}

.help-doc-content img,
.help-doc-content video {
    max-width: 100%;
    height: auto;
}

.help-doc-content video,
.help-doc-content iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0.5rem;
}

.help-doc-content iframe {
    height: auto;
    aspect-ratio: 16 / 9;
}

.app-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-backdrop.show {
    opacity: 0.78;
    background-color: #111827;
}
