/**
 * css/modals.css - Stile für Modals und Toast-Benachrichtigungen
 * Version: 1.0
 * Letzte Änderung: 25. Juli 2025
 */

/* --- Toast Container --- */
#toast-container {
    position: fixed;
    top: 1.25rem; /* 20px */
    right: 1.25rem; /* 20px */
    z-index: 1050; /* Sehr hoher z-index, um über allem zu liegen */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 8px */
}

/* --- Toast Benachrichtigung --- */
.toast {
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #fff;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.toast-message {
    font-weight: 500;
}

/* Toast-Typen */
.toast-success { background-color: #10B981; } /* green-500 */
.toast-error { background-color: #EF4444; } /* red-500 */
.toast-info { background-color: #3B82F6; } /* blue-500 */
.toast-warning { background-color: #F59E0B; } /* amber-500 */


/* --- Confirm Modal --- */
#confirmModal.hidden {
    display: none;
}
#confirmModal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
}

/* Dark Mode für Modal */
.dark-theme #confirmModal .modal-content {
    background-color: #2d3748; /* card-bg-dark */
}

.dark-theme #confirmModal h3 {
    color: #fff;
}

.dark-theme #confirmModal p {
    color: #d1d5db; /* text-light */
}

.btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
    border: 1px solid #6b7280;
}
.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

