/* Confirm dialog — visual twin of .session-modal so the two modal types
 * feel like one system. The session timer modal still lives in
 * session-timer.css and shares the colour palette intentionally. */

.confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.confirm-dialog[hidden] {
    display: none !important;
}

.confirm-dialog-card {
    width: 100%;
    max-width: 440px;
    margin: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    padding: 1.5rem;
}

.confirm-dialog-title {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    color: #111;
}

.confirm-dialog-body {
    margin: 0 0 1.25rem;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-line;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.confirm-dialog-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font: inherit;
    cursor: pointer;
}

.confirm-dialog-btn:hover {
    background: #f4f4f5;
}

.confirm-dialog-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.confirm-dialog-btn--primary {
    background: var(--behnke-design, #004f8b);
    border-color: var(--behnke-design, #004f8b);
    color: #fff;
}

.confirm-dialog-btn--primary:hover {
    background: var(--behnke-design-hover, #003e6f);
}

/* Destructive confirm: red. Applied via the `danger:true` option in JS. */
.confirm-dialog-btn--danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.confirm-dialog-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
