/* ═══════════════════════════════════════════════════════════════════════════
   🧠 AIGON ŁUP — NEURAL ODYSSEY GLOBAL STYLES
   ═══════════════════════════════════════════════════════════════════════════
   
   All styles for simple-chat neural odyssey
   NO INLINE CSS IN HTML!
*/

/* ═══════════════════════════════════════════════════════════════════════════
   STATUS DOTS - KOLOROWE KROPKI
   ═══════════════════════════════════════════════════════════════════════════ */

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 2px;
    vertical-align: middle;
}

.status-dot.green {
    background: linear-gradient(135deg, #00e676, #00c853);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
}

.status-dot.yellow {
    background: linear-gradient(135deg, #ffab00, #ff6d00);
    box-shadow: 0 0 6px rgba(255, 171, 0, 0.6);
}

.status-dot.red {
    background: linear-gradient(135deg, #ff5252, #d50000);
    box-shadow: 0 0 6px rgba(255, 82, 82, 0.6);
}

.status-dot.blue {
    background: linear-gradient(135deg, #00d4ff, #2979ff);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
}

.status-dot.purple {
    background: linear-gradient(135deg, #bb86fc, #7c4dff);
    box-shadow: 0 0 6px rgba(187, 134, 252, 0.6);
}

.status-dot.empty {
    background: transparent;
    border: 2px solid currentColor;
}

/* Sizes */
.status-dot.large { width: 14px; height: 14px; }
.status-dot.small { width: 8px; height: 8px; }
.status-dot.mini { width: 6px; height: 6px; }

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.9); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 8px currentColor;
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1);
        box-shadow: 0 0 16px currentColor;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-dot.blink {
    animation: blink 1.2s infinite;
}

.status-dot.blink.fast {
    animation-duration: 0.6s;
}

.status-dot.blink.slow {
    animation-duration: 2s;
}

.status-dot.pulse {
    animation: pulse 2s infinite;
}

.status-dot.spin {
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOOL CONSOLE - WYKONANIE NARZĘDZI JAK W KONSOLI
   ═══════════════════════════════════════════════════════════════════════════ */

.tools-console {
    background: #0d1117;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    overflow-x: auto;
}

.tool-console-entry {
    margin: 6px 0;
    padding: 6px;
    border-left: 3px solid #1e293b;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.tool-console-entry.success {
    border-left-color: #00e676;
}

.tool-console-entry.error {
    border-left-color: #ff5252;
}

.tool-console-entry.running,
.tool-console-entry.pending {
    border-left-color: #00d4ff;
}

.tool-console-entry.warning {
    border-left-color: #ffab00;
}

.tool-console-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 11px;
}

.tool-console-command {
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    color: #c8ccd4;
    border: 1px solid #1e293b;
}

.tool-console-status {
    color: #00d4ff;
    font-size: 10px;
    margin-top: 4px;
}

.tool-connector {
    color: #666;
    text-align: center;
    padding: 2px 0;
    font-size: 10px;
}

.tool-duration {
    color: #666;
    font-size: 10px;
    margin-left: auto;
}

.tool-time {
    color: #666;
    font-size: 9px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   METADATA BADGES
   ═══════════════════════════════════════════════════════════════════════════ */

.metadata-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 2px 4px 2px 0;
    font-size: 10px;
    color: #00d4ff;
    font-weight: 500;
}

.metadata-container {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MESSAGE STATUS FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.message-status-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #1e293b;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIFF / PATCH DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.diff-container {
    background: #0d1117;
    border: 1px solid #1e293b;
    border-radius: 4px;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    overflow-x: auto;
    margin: 6px 0;
}

.diff-line {
    display: block;
    padding: 2px 4px;
}

.diff-add {
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
}

.diff-del {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

.diff-info {
    color: #bb86fc;
}

.diff-header {
    color: #00d4ff;
    font-weight: bold;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AGENT / SWARM DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
    margin: 8px 0;
}

.agent-card {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px;
    font-size: 11px;
}

.agent-card.active {
    border-color: #00e676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

.agent-card.working {
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.agent-card.waiting {
    border-color: #ffab00;
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: bold;
}

.agent-status {
    font-size: 10px;
    color: #666;
}

.agent-progress {
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORKFLOW / PIPELINE DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.workflow-dag {
    background: #0d1117;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    overflow-x: auto;
    white-space: pre;
    margin: 8px 0;
    line-height: 1.6;
}

.workflow-step {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    border: 1px solid #1e293b;
}

.workflow-step.done {
    background: rgba(0, 230, 118, 0.1);
    border-color: #00e676;
    color: #00e676;
}

.workflow-step.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

.workflow-step.pending {
    background: rgba(255, 171, 0, 0.1);
    border-color: #ffab00;
    color: #ffab00;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRESS BARS
   ═══════════════════════════════════════════════════════════════════════════ */

.progress-bar {
    height: 8px;
    background: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-fill.green {
    background: linear-gradient(90deg, #00e676, #00c853);
}

.progress-fill.yellow {
    background: linear-gradient(90deg, #ffab00, #ff6d00);
}

.progress-fill.red {
    background: #ff5252;
}

.progress-fill.blue {
    background: linear-gradient(90deg, #00d4ff, #2979ff);
}

.progress-fill.purple {
    background: linear-gradient(90deg, #bb86fc, #7c4dff);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GANTT CHART
   ═══════════════════════════════════════════════════════════════════════════ */

.gantt-chart {
    background: #080c14;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.5;
}

.gantt-bar-done {
    color: #00e676;
}

.gantt-bar-active {
    color: #00d4ff;
}

.gantt-bar-todo {
    color: #2a2a3a;
}

.gantt-now {
    color: #ff5252;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BATCH OPERATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.batch-container {
    border: 1px solid #1e293b;
    border-radius: 6px;
    margin: 6px 0;
    overflow: hidden;
}

.batch-header {
    background: #0d1117;
    padding: 6px 8px;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-operations {
    padding: 6px;
    background: rgba(13, 17, 23, 0.5);
}

.batch-operation {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 10px;
    border-bottom: 1px dashed #1e293b;
}

.batch-operation:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE STATS PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    margin: 8px 0;
}

.stat-card {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

#toast {
    position: fixed;
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    background: #1e293b;
    color: #00e676;
    border: 1px solid #00e676;
    border-radius: 6px;
    display: none;
    font-size: 12px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#toast.success {
    color: #00e676;
    border-color: #00e676;
}

#toast.error {
    color: #ff5252;
    border-color: #ff5252;
}

#toast.warning {
    color: #ffab00;
    border-color: #ffab00;
}

#toast.info {
    color: #00d4ff;
    border-color: #00d4ff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .status-dot {
        width: 8px;
        height: 8px;
    }
    
    .tool-console-entry {
        font-size: 10px;
    }
    
    .metadata-badge {
        font-size: 9px;
    }
}
