/* DLRG Webtool - Main CSS File */

/* Import all CSS files */
@import './variables.css';
@import './base.css';
@import './components.css';
@import './forms.css';
@import './tables.css';

/* SweetAlert2 Darkmode Styles */
.swal2-popup {
    background: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid rgba(64, 64, 64, 0.3) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5) !important;
}

.swal2-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.swal2-content {
    color: #e0e0e0 !important;
}

.swal2-confirm {
    background: var(--dlrg-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    background: #005a94 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 105, 180, 0.3) !important;
}

.swal2-cancel {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
}

.swal2-input {
    background: #404040 !important;
    color: #ffffff !important;
    border: 1px solid rgba(64, 64, 64, 0.5) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
}

.swal2-input:focus {
    border-color: var(--dlrg-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(226, 0, 26, 0.25) !important;
}

.swal2-textarea {
    background: #404040 !important;
    color: #ffffff !important;
    border: 1px solid rgba(64, 64, 64, 0.5) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
}

.swal2-textarea:focus {
    border-color: var(--dlrg-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(226, 0, 26, 0.25) !important;
}

/* Toast-spezifische Styles */
.swal2-toast {
    background: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid rgba(64, 64, 64, 0.3) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

.swal2-toast .swal2-title {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.swal2-toast .swal2-content {
    color: #e0e0e0 !important;
    font-size: 0.875rem !important;
}

/* Progress Bar für Toasts */
.swal2-timer-progress-bar {
    background: var(--dlrg-red) !important;
}

/* Icon Styles */
.swal2-icon {
    border-color: var(--dlrg-red) !important;
}

.swal2-icon.swal2-success {
    border-color: #28a745 !important;
}

.swal2-icon.swal2-error {
    border-color: var(--dlrg-red) !important;
}

.swal2-icon.swal2-warning {
    border-color: #ffc107 !important;
}

.swal2-icon.swal2-info {
    border-color: var(--dlrg-blue) !important;
}

/* Backdrop - nur für modale Dialoge, nicht für Toasts */
.swal2-backdrop-show:not(.swal2-toast-container) {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Toast-Container ohne Backdrop */
.swal2-toast-container {
    z-index: 9999 !important;
}

/* Badge Blinking Animation */
@keyframes badge-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.5;
    }
}

.badge-blinking {
    animation: badge-blink 2s infinite;
}

/* Klickbare Icons für Livewire-Komponenten */
.clickable-icon {
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dlrg-blue);
}

.clickable-icon:hover {
    color: var(--dlrg-red);
    transform: scale(1.1);
}

.clickable-icon:active {
    transform: scale(0.95);
}