/* Custom Dialog System Styles — natives <dialog> (Dialog-A11y 3/8)
   .custom-dialog erbt Karte/::backdrop/Einblenden von .base-dialog
   (css/components/base_dialog.css). Hier nur dialog-spezifische Overrides. */

.custom-dialog-container {
    /* Harmloser Parent; natives <dialog>.showModal() rendert im Top-Layer,
       unabhaengig vom DOM-Elternknoten. Kein Fullscreen/pointer-events noetig. */
}

.custom-dialog {
    min-width: 400px;
    border-radius: 12px; /* an Header-Radius (12px) angeglichen, Optik erhalten */
    transition: opacity 0.3s ease;
}

/* Schliess-Animation (vor dialog.close()) */
.custom-dialog.closing {
    opacity: 0;
}

/* Reiner Container; die Karte liegt jetzt auf dem <dialog> selbst. */
.custom-dialog-content {
    display: flex;
    flex-direction: column;
}

.custom-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    border-radius: 12px 12px 0 0;
}

.custom-dialog-header.warning {
    background-color: #fff3cd;
    border-bottom-color: #ffc107;
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.custom-dialog-body {
    padding: 24px;
    font-size: var(--text-body);
    line-height: 1.5;
    color: #555;
}

.custom-dialog-body p {
    margin: 0;
}

.custom-dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 12px 12px;
}

.custom-dialog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dialog-btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.custom-dialog-btn-cancel:hover {
    background-color: #d0d0d0;
}

.custom-dialog-btn-confirm {
    background-color: #4CAF50;
    color: white;
}

.custom-dialog-btn-confirm:hover {
    background-color: #45a049;
}

.custom-dialog-btn-ok {
    background-color: #2196F3;
    color: white;
    min-width: 80px;
}

.custom-dialog-btn-ok:hover {
    background-color: #1976D2;
}

/* Toast Notifications -> ausgelagert nach css/components/shared_toast.css (v2 §7.1) */

/* Responsive */
@media (max-width: 768px) {
    .custom-dialog {
        min-width: auto;
        width: 90%;
        max-width: 90%;
    }
}
