/* Toast Notification Styles für EPI Nominierungsportal */

#epi-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.epi-toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    transform: translateX(100%);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: all;
    min-width: 320px;
    max-width: 400px;
    border-left: 4px solid #007cba;
}

.epi-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.epi-toast-content {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.epi-toast-content i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.epi-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.epi-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epi-toast-close:hover {
    color: #333;
}

/* Toast-Typen */
.epi-toast-success {
    border-left-color: #28a745;
}

.epi-toast-success i {
    color: #28a745;
}

.epi-toast-error {
    border-left-color: #dc3545;
}

.epi-toast-error i {
    color: #dc3545;
}

.epi-toast-warning {
    border-left-color: #ffc107;
}

.epi-toast-warning i {
    color: #ffc107;
}

.epi-toast-info {
    border-left-color: #007cba;
}

.epi-toast-info i {
    color: #007cba;
}

.epi-toast-question {
    border-left-color: #6f42c1;
}

.epi-toast-question i {
    color: #6f42c1;
}

/* Confirm-Dialog Styles - Mittig positioniert */
.epi-toast-confirm {
    min-width: 380px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.epi-toast-confirm .epi-toast-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.epi-toast-confirm .epi-toast-message {
    margin-bottom: 8px;
}

.epi-toast-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.epi-toast-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.epi-toast-btn-confirm {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

.epi-toast-btn-confirm:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.epi-toast-btn-cancel {
    color: #666;
}

.epi-toast-btn-cancel:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Overlay für Confirm-Dialoge */
.epi-toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.epi-toast-overlay.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
    #epi-toast-container {
        left: 10px;
        right: 10px;
        top: 80px;
    }
    
    .epi-toast {
        min-width: auto;
        max-width: none;
    }
    
    .epi-toast-confirm {
        min-width: 300px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        transform: translate(0, -50%) !important;
    }
}

/* Loading States */
.epi-toast .is-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: epi-toast-spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes epi-toast-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}