/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2147483647;
    pointer-events: none;
}

.custom-toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.custom-toast.success {
    border-left-color: #198754;
}

.custom-toast.error {
    border-left-color: #dc3545;
}

.custom-toast.warning {
    border-left-color: #ffc107;
}

.custom-toast.info {
    border-left-color: #0dcaf0;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.custom-toast.success .toast-icon {
    color: #198754;
}

.custom-toast.error .toast-icon {
    color: #dc3545;
}

.custom-toast.warning .toast-icon {
    color: #ffc107;
}

.custom-toast.info .toast-icon {
    color: #0dcaf0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: #333;
}

.toast-message {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-removing {
    animation: slideOutRight 0.3s ease-in;
}

/* Custom Confirm Modal */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    animation: fadeIn 0.2s ease-out;
}

.custom-confirm-overlay.active {
    display: flex;
}

.custom-confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: scaleIn 0.2s ease-out;
}

.custom-confirm-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-confirm-icon {
    font-size: 1.75rem;
}

.custom-confirm-icon.warning {
    color: #ffc107;
}

.custom-confirm-icon.danger {
    color: #dc3545;
}

.custom-confirm-icon.info {
    color: #0dcaf0;
}

.custom-confirm-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.custom-confirm-body {
    padding: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-confirm-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-confirm {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-confirm-cancel {
    background: #e9ecef;
    color: #495057;
}

.btn-confirm-cancel:hover {
    background: #dee2e6;
}

.btn-confirm-ok {
    background: #0D3B66;
    color: white;
}

.btn-confirm-ok:hover {
    background: #1a5490;
}

.btn-confirm-ok.danger {
    background: #dc3545;
}

.btn-confirm-ok.danger:hover {
    background: #bb2d3b;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 10px;
    }

    .custom-toast {
        min-width: auto;
        max-width: 100%;
    }
}