/* Enhanced Alert System Styles */

/* Success Alert */
.alert-success-modern {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
    animation: slideInRight 0.5s ease-out;
}

/* Error Alert */
.alert-error-modern {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
    animation: slideInRight 0.5s ease-out;
}

/* Warning Alert */
.alert-warning-modern {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
    animation: slideInRight 0.5s ease-out;
}

/* Info Alert */
.alert-info-modern {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
    animation: slideInRight 0.5s ease-out;
}

/* Alert 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;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Alert Icons */
.alert-success-modern svg,
.alert-error-modern svg,
.alert-warning-modern svg,
.alert-info-modern svg {
    flex-shrink: 0;
}

/* Alert Content */
.alert-success-modern .flex,
.alert-error-modern .flex,
.alert-warning-modern .flex,
.alert-info-modern .flex {
    align-items: center;
    justify-content: flex-start;
}

/* Hover Effects */
.alert-success-modern:hover,
.alert-error-modern:hover,
.alert-warning-modern:hover,
.alert-info-modern:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Responsive Design */
@media (max-width: 640px) {

    .alert-success-modern,
    .alert-error-modern,
    .alert-warning-modern,
    .alert-info-modern {
        max-width: calc(100vw - 2rem);
        margin: 0 1rem;
        right: 0;
        left: 0;
    }
}

/* Form Validation Styles */
.border-red-500 {
    border-color: #ef4444 !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

/* Loading States */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Disabled States */
button:disabled,
input:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus States */
.requiredField:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Error Field Focus */
.requiredField.border-red-500:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}