/* ========================================
   SUCCESS MESSAGES STYLES
   ======================================== */

/* Enhanced Success Alert */
.alert-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: 2px solid #047857 !important;
    border-radius: 16px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 1.5rem 2rem !important;
    margin: 1rem 0 !important;
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.3),
        0 4px 12px rgba(16, 185, 129, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    animation: successSlideIn 0.5s ease-out !important;
}

.alert-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
    opacity: 1;
}

.alert-success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Success Icon */
.alert-success::before {
    content: '✓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Success Message Text */
.alert-success {
    padding-left: 4rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    line-height: 1.5 !important;
}

/* Enhanced Error Alert */
.alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: 2px solid #b91c1c !important;
    border-radius: 16px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 1.5rem 2rem !important;
    margin: 1rem 0 !important;
    box-shadow: 
        0 10px 30px rgba(239, 68, 68, 0.3),
        0 4px 12px rgba(239, 68, 68, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    animation: errorSlideIn 0.5s ease-out !important;
}

.alert-danger::before {
    content: '!';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-danger {
    padding-left: 4rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    line-height: 1.5 !important;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Warning Alert */
.alert-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 2px solid #b45309 !important;
    border-radius: 16px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 1.5rem 2rem !important;
    margin: 1rem 0 !important;
    box-shadow: 
        0 10px 30px rgba(245, 158, 11, 0.3),
        0 4px 12px rgba(245, 158, 11, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    animation: warningSlideIn 0.5s ease-out !important;
}

.alert-warning::before {
    content: '!';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-warning {
    padding-left: 4rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    line-height: 1.5 !important;
}

@keyframes warningSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Info Alert */
.alert-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: 2px solid #1d4ed8 !important;
    border-radius: 16px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 1.5rem 2rem !important;
    margin: 1rem 0 !important;
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(59, 130, 246, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    animation: infoSlideIn 0.5s ease-out !important;
}

.alert-info::before {
    content: 'ℹ';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-info {
    padding-left: 4rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    line-height: 1.5 !important;
}

@keyframes infoSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Message Container */
.mt-2 {
    margin-top: 1rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alert-success,
    .alert-danger,
    .alert-warning,
    .alert-info {
        padding: 1rem 1.5rem !important;
        padding-left: 3.5rem !important;
        font-size: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .alert-success::before,
    .alert-danger::before,
    .alert-warning::before,
    .alert-info::before {
        left: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .alert-success,
    .alert-danger,
    .alert-warning,
    .alert-info {
        padding: 0.875rem 1rem !important;
        padding-left: 3rem !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }
    
    .alert-success::before,
    .alert-danger::before,
    .alert-warning::before,
    .alert-info::before {
        left: 0.75rem;
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
}

/* Auto-hide animation for success messages */
.alert-success.auto-hide {
    animation: successSlideIn 0.5s ease-out, successSlideOut 0.5s ease-in 4.5s forwards;
}

@keyframes successSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* Close button for alerts */
.alert .btn-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}
















