/* WP-500 Platform Experience Stylesheet */

/* Tab Switching Layout */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    background: rgba(17, 25, 43, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.35rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.main-nav-item {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.main-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.main-nav-item.active {
    background: var(--gradient-primary);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}


/* Kanban Board Layout (Service Executions) */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.kanban-column {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 400px;
}

.kanban-column-header {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column-count {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.kanban-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--border-color);
}

.kanban-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.05);
}

.kanban-card.running { border-left-color: var(--accent-cyan); }
.kanban-card.completed { border-left-color: var(--accent-teal); }
.kanban-card.failed { border-left-color: var(--accent-coral); }
.kanban-card.waiting { border-left-color: var(--accent-purple); }

/* Step execution timelines list */
.execution-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255,255,255,0.05);
}

.execution-step-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.pulse-indicator-badge {
    animation: pulse-animation 2s infinite ease-in-out;
}

/* Timeline Layout widget */
.timeline-stream {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.timeline-item-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.timeline-item-body {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.timeline-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Recommendation Item */
.recommendation-item {
    background: linear-gradient(to right, rgba(6, 182, 212, 0.05), transparent);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.recommendation-item:hover {
    border-color: rgba(6, 182, 212, 0.35);
    background: linear-gradient(to right, rgba(6, 182, 212, 0.1), transparent);
}
