/* Modern Alert System with Animations */

.alert-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s, opacity 0.3s;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.alert-icon {
    font-size: 2em;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.alert-content {
    flex: 1;
}

.alert-title {
    display: block;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.alert-message {
    display: block;
    font-size: 0.95em;
    opacity: 0.95;
    line-height: 1.5;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    padding: 5px;
    line-height: 1;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Success Alert */
.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
    color: white;
    border-right: 4px solid #4caf50;
}

.alert-success .alert-icon {
    color: #fff;
}

/* Error Alert */
.alert-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(211, 47, 47, 0.95));
    color: white;
    border-right: 4px solid #f44336;
}

.alert-error .alert-icon {
    color: #fff;
}

/* Warning Alert */
.alert-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.95), rgba(245, 124, 0, 0.95));
    color: white;
    border-right: 4px solid #ff9800;
}

.alert-warning .alert-icon {
    color: #fff;
}

/* Info Alert */
.alert-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.95), rgba(25, 118, 210, 0.95));
    color: white;
    border-right: 4px solid #2196f3;
}

.alert-info .alert-icon {
    color: #fff;
}

/* Inline Alerts (for forms) */
.alert-inline {
    position: relative;
    margin-bottom: 20px;
    animation: slideInRight 0.4s ease;
}

.alert-inline.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-right: 4px solid #4caf50;
}

.alert-inline.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-right: 4px solid #f44336;
}

.alert-inline.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-right: 4px solid #ff9800;
}

.alert-inline.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-right: 4px solid #2196f3;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

.alert.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .alert-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .alert {
        padding: 15px 20px;
        font-size: 0.9em;
    }
    
    .alert-icon {
        font-size: 1.5em;
        min-width: 30px;
    }
}

