/* LoLo Dashboard Styles - Voxyz Stage Level */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161e;
    --text-primary: #e8e8ec;
    --text-secondary: #9898a6;
    --text-muted: #5c5c6e;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #2a2a3a;
    --live-color: #ef4444;
    --gold: #ffd700;
    --purple: #a855f7;
    --cyan: #06b6d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* App Container */
.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 28px;
    color: var(--gold);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--gold); }
    to { text-shadow: 0 0 25px var(--gold), 0 0 35px #ff8800; }
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gold), #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav a.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-item h1 {
    font-size: 24px;
    font-weight: 700;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--live-color);
    font-weight: 500;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--live-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Section */
.section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-title .icon {
    font-size: 18px;
}

.live-indicator {
    margin-left: auto;
    font-size: 12px;
    color: var(--live-color);
}

.pulse {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Agent Cards */
.agent-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.agent-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.agent-card.active {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.agent-avatar {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
}

.agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: 600;
    font-size: 14px;
}

.agent-role {
    font-size: 12px;
    color: var(--text-muted);
}

.agent-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.agent-status.online {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.agent-status.busy {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.agent-status.idle {
    background: rgba(92, 92, 110, 0.3);
    color: var(--text-muted);
}

/* Workflow Diagram */
.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 16px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 2px solid var(--border);
    min-width: 80px;
    transition: all 0.3s;
}

.workflow-step.active {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.workflow-step.completed {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.15);
}

.step-icon {
    font-size: 24px;
}

.step-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.workflow-arrow {
    font-size: 20px;
    color: var(--text-muted);
}

.workflow-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.dot.pending {
    background: var(--border);
}

.dot.completed {
    background: var(--accent);
}

/* Live Feed */
.feed {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed::-webkit-scrollbar {
    width: 6px;
}

.feed::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.feed::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 13px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feed-time {
    color: var(--text-muted);
    font-size: 11px;
    font-family: monospace;
}

.feed-icon {
    font-size: 16px;
}

.feed-text {
    color: var(--text-secondary);
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.kanban-column {
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
}

.column-header.todo {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
}

.column-header.in-progress {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.column-header.done {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.column-header.blocked {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.task-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.column-tasks {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.task-card {
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s;
}

.task-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.task-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.task-assignee {
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .workflow-diagram {
        flex-wrap: wrap;
    }
    
    .workflow-arrow {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section {
    animation: fadeIn 0.4s ease-out;
}

.agent-section { animation-delay: 0.1s; }
.workflow-section { animation-delay: 0.2s; }
.feed-section { animation-delay: 0.3s; }
.kanban-section { animation-delay: 0.4s; }
