/**
 * HA-R Zentrale UI-Komponenten
 * Wird von allen Seiten zusammen mit typography.css eingebunden.
 *
 * Regeln, die in mehreren Seiten gebraucht werden, leben hier — nicht
 * mehr inline oder dupliziert.
 */

/* === Dialog Modals (kleinere Bestätigungs-/Fehler-/Hinweis-Dialoge) === */
.datenschutz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.datenschutz-modal.active {
    display: flex;
}

.dialog-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dialog-title {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.dialog-title-error { color: #dc3545; }
.dialog-title-warning { color: #ffc107; }

.dialog-text {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #333;
}

.dialog-text-tight {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #333;
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* === Dialog Buttons - einheitliche Höhe via padding+font-size+line-height === */
.btn-dialog {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    font-family: inherit;
}

.btn-dialog-primary {
    border: none;
    background: var(--ha-r-blue, #214B7B);
    color: white;
}

.btn-dialog-primary:hover {
    background: var(--ha-r-blue-hover, #1B3C63);
}

.btn-dialog-secondary {
    border: 2px solid #6c757d;
    background: white;
    color: #6c757d;
}

.btn-dialog-secondary:hover {
    background: #f0f0f0;
}

.btn-dialog-danger {
    border: none;
    background: #dc3545;
    color: white;
}

.btn-dialog-danger:hover {
    background: #c82333;
}
