/**
 * Alert Styles
 * Consistent alert/message styling across all pages
 */

/* ========== Alert Base ========== */
.sd-alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.sd-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.sd-alert-content {
    flex: 1;
}

.sd-alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.sd-alert-list {
    margin: 6px 0 0 0;
    padding-left: 20px;
}

.sd-alert-list li {
    margin-bottom: 4px;
}

.sd-alert-list li:last-child {
    margin-bottom: 0;
}

/* ========== Alert Variants ========== */

/* Error Alert */
.sd-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.sd-alert-error .sd-alert-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Success Alert */
.sd-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.sd-alert-success .sd-alert-icon {
    background: #dcfce7;
    color: #16a34a;
}

/* Warning Alert */
.sd-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.sd-alert-warning .sd-alert-icon {
    background: #fef3c7;
    color: #f59e0b;
}

/* Info Alert */
.sd-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.sd-alert-info .sd-alert-icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* ========== Dismissible Alert ========== */
.sd-alert-dismissible {
    position: relative;
    padding-right: 48px;
}

.sd-alert-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.sd-alert-close:hover {
    opacity: 1;
}

/* ========== Validation Errors ========== */
.sd-validation-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #991b1b;
}

.sd-validation-error-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-validation-error-title i {
    color: #dc2626;
}

.sd-validation-error-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
}

.sd-validation-error-list li {
    margin-bottom: 4px;
}

.sd-validation-error-list li:last-child {
    margin-bottom: 0;
}
