/* ======================================
   CONFIRMATION MODAL STYLES
   ====================================== */

.confirmation-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.confirmation-modal .modal-footer {
    border-top: none;
    padding-top: 0;
}

.confirmation-modal .modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.confirmation-modal .modal-icon.danger,
.confirmation-modal .modal-icon.delete {
    background-color: #fee;
    color: #dc3545;
}

.confirmation-modal .modal-icon.warning {
    background-color: #fff3cd;
    color: #ffc107;
}

.confirmation-modal .modal-icon.success {
    background-color: #d1e7dd;
    color: #198754;
}

.confirmation-modal .modal-icon.info {
    background-color: #cff4fc;
    color: #0dcaf0;
}

.confirmation-modal .modal-icon.export {
    background-color: #e7f3ff;
    color: #0066cc;
}

.confirmation-modal .modal-icon.deploy {
    background-color: #f0f9ff;
    color: #0284c7;
}

.confirmation-modal .modal-icon.backup {
    background-color: #fff7ed;
    color: #ea580c;
}

.confirmation-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    color: #212529;
}

.confirmation-modal .modal-body {
    text-align: center;
    padding: 20px 30px;
}

.confirmation-modal .modal-body p {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.confirmation-modal .btn {
    min-width: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.confirmation-modal .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.confirmation-modal .btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.confirmation-modal .btn-danger:hover,
.confirmation-modal .btn-warning:hover,
.confirmation-modal .btn-success:hover,
.confirmation-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.confirmation-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.confirmation-modal .modal-footer {
    gap: 10px;
}

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirmation-modal.show .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.confirmation-modal .modal-icon:hover {
    animation: iconPulse 0.6s ease-in-out;
}

/* Responsive */
@media (max-width: 576px) {
    .confirmation-modal .modal-body {
        padding: 15px 20px;
    }
    
    .confirmation-modal .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .confirmation-modal .modal-title {
        font-size: 1.1rem;
    }
    
    .confirmation-modal .btn {
        min-width: 80px;
        font-size: 0.9rem;
    }
}

/* Dark mode support (si utilisé) */
@media (prefers-color-scheme: dark) {
    .confirmation-modal .modal-content {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .confirmation-modal .modal-title {
        color: #e2e8f0;
    }
    
    .confirmation-modal .modal-body p {
        color: #a0aec0;
    }
}

/* ==========================================
   TOAST NOTIFICATIONS STYLES
   ========================================== */

.toast-container {
    max-width: 400px;
}

.custom-toast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease-out;
}

.custom-toast.hiding {
    animation: slideOutRight 0.3s ease-in;
}

.custom-toast .toast-header {
    border-bottom: none;
    padding: 12px 16px 8px;
    background: transparent;
}

.custom-toast .toast-body {
    padding: 0 16px 12px;
    font-weight: 500;
}

.custom-toast .toast-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-toast .btn-close {
    font-size: 0.8em;
    opacity: 0.6;
}

.custom-toast .btn-close:hover {
    opacity: 1;
}

/* Types de toasts */
.custom-toast.toast-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3d5a3 100%);
    color: #0f5132;
}

.custom-toast.toast-success .toast-icon {
    color: #198754;
}

.custom-toast.toast-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
}

.custom-toast.toast-error .toast-icon {
    color: #dc3545;
}

.custom-toast.toast-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffdf7e 100%);
    color: #664d03;
}

.custom-toast.toast-warning .toast-icon {
    color: #ffc107;
}

.custom-toast.toast-info {
    background: linear-gradient(135deg, #cff4fc 0%, #9eeaf9 100%);
    color: #055160;
}

.custom-toast.toast-info .toast-icon {
    color: #0dcaf0;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .toast-container {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .custom-toast {
        margin-bottom: 8px;
    }
}

/* Variantes avec icônes plus grandes pour certains cas */
.custom-toast.toast-large .toast-icon {
    width: 24px;
    height: 24px;
    font-size: 18px;
}

.custom-toast.toast-small {
    font-size: 0.9rem;
}

.custom-toast.toast-small .toast-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
}