/* ================================================================== 
  自定义 Alert 模态框组件样式
  基于 education-design-system 变量系统
 ================================================================= */

/* 模态框容器 */
.custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-index-popover);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility 0s 0.3s;
}

.custom-alert-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--transition-base);
}

/* 遮罩层 */
.custom-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-alpha-60);
}

/* 对话框 */
.custom-alert-dialog {
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.custom-alert-modal.is-visible .custom-alert-dialog {
    transform: scale(1);
}

/* 图标样式 */
.custom-alert-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-none);
}

/* 状态颜色 */
.custom-alert-dialog.is-success .custom-alert-icon { color: var(--success-600); }
.custom-alert-dialog.is-error .custom-alert-icon   { color: var(--error-600); }
.custom-alert-dialog.is-warning .custom-alert-icon { color: var(--warning-600); }
.custom-alert-dialog.is-info .custom-alert-icon    { color: var(--info-600); }

/* 消息文本 */
.custom-alert-message {
    font-size: var(--text-lg);
    color: var(--text-color-primary);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
}

/* 关闭按钮 */
.custom-alert-close-btn {
    width: 100%;
}

/* 响应式优化 */
@media (min-width: 768px) {
    .custom-alert-dialog {
        padding: var(--space-10) var(--space-8);
    }
} 