/* --------------------------------
   Participant Draft Dialog
   Prefix: pdraft- (participant draft)

   The rules are the ones the session timeout modal uses, copied so that a
   later change to session-timer.css cannot move this dialog with it.
-------------------------------- */

.pdraft-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, background-color 0.25s ease, visibility 0s 0.25s;
    padding: 1rem;
}

.pdraft-overlay--visible {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease, background-color 0.25s ease, visibility 0s;
}

.pdraft-modal {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    max-width: 26rem;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pdraft-overlay--visible .pdraft-modal {
    transform: scale(1);
}

.pdraft-modal__header {
    padding: 1.25rem 1.5rem 0;
    text-align: center;
}

.pdraft-modal__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.pdraft-modal__body {
    padding: 0.875rem 1.5rem;
    text-align: center;
}

.pdraft-modal__text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
}

.pdraft-modal__footer {
    padding: 0.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Der Fussbereich traegt nur den Weiterknopf. Ist der versteckt, zeichnet der
   Absatz sonst einen leeren Abstand: display:flex schlaegt das [hidden] des
   Browsers. */
.pdraft-modal__footer[hidden] {
    display: none;
}

.pdraft-btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: #4279bc;
    color: #fff;
    transition: background 0.15s, box-shadow 0.15s;
}

.pdraft-btn-continue:hover {
    background: #3568a5;
    box-shadow: 0 1px 4px rgba(66, 121, 188, 0.3);
}

