/* 初始化指示器样式 */

/* 主容器 - 亮色主题默认 */
.initialization-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95); /* 亮色主题背景 */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1; /* 默认显示 */
    transition: opacity 0.3s ease;
}

.initialization-indicator.show {
    opacity: 1;
}

.initialization-indicator.hide {
    opacity: 0;
}



/* 进度条容器 - 亮色主题默认 */
.init-progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1); /* 亮色主题下的进度条背景 */
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

/* 进度条填充 */
.init-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 2px;
    width: 5%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.init-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 错误状态 */
.initialization-indicator.error .init-progress-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* 错误消息 - 亮色主题默认 */
.init-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626; /* 亮色主题下的错误文字颜色 */
    font-size: 14px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.init-error-message .material-icons {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .init-progress-bar {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .init-progress-bar {
        width: 200px;
    }
}

/* 暗色主题支持 */
[data-theme="dark"] .initialization-indicator {
    background: rgba(0, 0, 0, 0.9); /* 暗色主题背景 */
}



[data-theme="dark"] .init-progress-bar {
    background: rgba(255, 255, 255, 0.15); /* 暗色主题下的进度条背景 */
}

[data-theme="dark"] .init-error-message {
    color: #fca5a5; /* 暗色主题下的错误文字颜色 */
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
} 