/* ICE Code IT Services - Alert Styles */

/* Base alert styles */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

/* Alert animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Success alerts */
.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    color: white;
    border-left: 4px solid #10b981;
}

.alert-success .btn-close {
    filter: invert(1);
}

/* Error alerts */
.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    color: white;
    border-left: 4px solid #ef4444;
}

.alert-danger .btn-close {
    filter: invert(1);
}

/* Warning alerts */
.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
    color: white;
    border-left: 4px solid #f59e0b;
}

.alert-warning .btn-close {
    filter: invert(1);
}

/* Info alerts */
.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: white;
    border-left: 4px solid #3b82f6;
}

.alert-info .btn-close {
    filter: invert(1);
}

/* Alert icons */
.alert i {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* Close button */
.btn-close {
    background: none;
    border: none;
    font-size: 1.2em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Toast notifications */
.toast {
    border-radius: 15px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.toast-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.toast-body {
    background: transparent;
    color: white;
}

/* Loading alerts */
.alert-loading {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    color: white;
    border-left: 4px solid #6366f1;
}

.alert-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Responsive alerts */
@media (max-width: 768px) {
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .alert i {
        font-size: 1em;
    }
}

/* Alert positioning */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.alert-container .alert {
    margin-bottom: 0.5rem;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom alert types */
.alert-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.9) 0%, rgba(18, 140, 126, 0.9) 100%);
    color: white;
    border-left: 4px solid #25d366;
}

.alert-email {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: white;
    border-left: 4px solid #3b82f6;
}

.alert-phone {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    color: white;
    border-left: 4px solid #10b981;
}

/* Alert with action buttons */
.alert-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.alert-actions .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

/* Dismissible alerts */
.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
}

/* Alert progress bar */
.alert-progress {
    position: relative;
    overflow: hidden;
}

.alert-progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}
