
/* enhanced-status-system.css - New modular CSS component with overrides */
.enhanced-status-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 360px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.status-overlay-header {
    background: rgba(15, 23, 42, 0.8);
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px 12px 0 0;
}

.overlay-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overlay-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0.25rem 0 0 0;
}

/* 10-Phase Progress Grid - Override existing styles */
.ten-phase-grid {
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr !important;
}

.phase-item {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 6px !important;
    padding: 0.25rem 0.4rem !important;
    transition: all 0.2s ease !important;
}

.phase-item.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.phase-item.completed {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.phase-number {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.phase-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.2;
}

.phase-badge {
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phase-badge.accessible {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.phase-badge.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.phase-badge.generating {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.phase-badge.review {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.phase-badge.pending {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.phase-badge.locked {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.phase-artifacts {
    display: flex;
    gap: 0.25rem;
    margin: 0;
}

.artifact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.artifact-dot.generated {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.artifact-dot.approved {
    background: #22c55e;
    border-color: #22c55e;
}

.artifact-dot.empty {
    background: transparent;
}

/* Generation Status Panel */
.generation-status-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem;
}

.generation-header {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #f1f5f9;
}

.current-generation {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.generation-phase {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 0.25rem;
}

.generation-progress {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.progress-bar-mini {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    transition: width 0.3s ease;
}

/* Quick Actions Mini */
.quick-actions-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.action-btn-mini {
    padding: 0.4rem 0.6rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: #3b82f6;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.action-btn-mini:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* Enhanced Activity Feed */
.activity-feed-mini {
    margin-top: 1rem;
}

.activity-feed-header {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.activity-stream {
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.4);
}

.activity-entry {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.75rem;
    color: #cbd5e1;
}

.activity-entry:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

/* Enhanced Main Content Adjustments */
.main-content-enhanced {
    margin-right: 380px; /* Account for overlay */
    transition: margin-right 0.3s ease;
}

.main-content-enhanced.overlay-hidden {
    margin-right: 0;
}

/* Phase-Specific Enhancements */
.enhanced-phase-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
}

.generation-indicator-dot {
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: pulse-generation 2s infinite;
}

@keyframes pulse-generation {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Toggle Button */
.overlay-toggle {
    position: fixed;
    top: 20px;
    right: 390px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.overlay-toggle:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .enhanced-status-overlay {
        display: none;
    }
    
    .main-content-enhanced {
        margin-right: 0;
    }
    
    .overlay-toggle {
        display: none;
    }
}

/* Integration with existing wizard */
.wizard-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.generation-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #8b5cf6;
}