/* Alert System - Modern Alert Design with Left Bar */

/* Base Alert Styles */
.alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    background-color: #ffffff;
    box-shadow: 0 2px 16px -3px rgba(144, 144, 144, 0.4);
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* Left colored bar */
.alert-bar {
    position: absolute;
    left: 0.5rem;
    top: 10%;
    bottom: 10%;
    width: 0.25rem;
    border-radius: 9999px;
}

/* Inner container for icon and content */
.alert-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-left: 0.75rem;
    flex: 1;
}

@media (min-width: 640px) {
    .alert-inner {
        align-items: center;
    }
}

/* Icon Styles */
.alert-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

/* Alert Content */
.alert-content {
    flex: 1;
}

.alert-title {
    color: rgb(15, 23, 42);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.alert-description {
    color: rgb(100, 116, 139);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Close Button */
.alert-close {
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    margin-left: auto;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: all 0.2s ease;
}

.alert-close svg {
    width: 100%;
    height: 100%;
    fill: rgb(156, 163, 175);
}

.alert-close:hover svg {
    fill: rgb(239, 68, 68);
}

/* Information Alert - Blue */
.alert-info .alert-bar {
    background-color: rgb(59, 130, 246);
}

.alert-info .alert-icon {
    fill: rgb(59, 130, 246);
}

/* Warning Alert - Red */
.alert-warning .alert-bar {
    background-color: rgb(239, 68, 68);
}

.alert-warning .alert-icon {
    fill: rgb(239, 68, 68);
}

/* Error Alert - Red */
.alert-error .alert-bar {
    background-color: rgb(239, 68, 68);
}

.alert-error .alert-icon {
    fill: rgb(239, 68, 68);
}

/* Success Alert - Green */
.alert-success .alert-bar {
    background-color: rgb(34, 197, 94);
}

.alert-success .alert-icon {
    fill: rgb(34, 197, 94);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .alert-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
