/* === GENERATION-OVERLAY.CSS ===
 * Overlay генерации сайта поверх дашборда
 */

#generation-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 15, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlay-in 0.3s ease;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#generation-overlay.gen-overlay--fade {
    animation: overlay-out 0.4s ease forwards;
}

@keyframes overlay-out {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.03); }
}

.gen-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    width: 90vw;
    padding: 0 20px;
}

.gen-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.gen-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.gen-title em {
    font-style: normal;
    background: linear-gradient(90deg, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gen-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 40px;
}

.gen-stages {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    min-height: 80px;
}

.gen-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    text-align: left;
}

.gen-stage--active {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.3);
    color: #fff;
}

.gen-stage--done {
    color: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.06);
}

.gen-stage-text {
    flex: 1;
}

/* Spinner */
.gen-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid rgba(34, 211, 238, 0.2);
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: gen-spin 0.8s linear infinite;
}

@keyframes gen-spin {
    to { transform: rotate(360deg); }
}

/* Checkmark */
.gen-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
}

/* Progress bar */
.gen-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gen-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #8b5cf6);
    border-radius: 100px;
    width: 10%;
    transition: width 0.6s ease;
}

.gen-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    margin: 0;
}
