/* AI C2less Real-time Lab Demo Styles */
:root {
    /* Dark cybersecurity theme colors */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-bg: #2a2a2a;
    --terminal-bg: #000000;
    --text-primary: #00ff00;
    --text-secondary: #00dd00;
    --text-muted: #888888;
    --text-white: #ffffff;
    --border-color: #333333;
    --success-color: #00ff00;
    --warning-color: #ffaa00;
    --error-color: #ff4444;
    --blue-accent: #0099ff;
}

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

body {
    font-family: 'Courier New', monospace;
    background: var(--primary-bg);
    color: var(--text-white);
    min-height: 100vh;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--secondary-bg);
    border-bottom: 2px solid var(--text-primary);
    padding: 20px 0;
}

.header__title {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--text-primary);
}

.header__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.header__campaign-id {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Main Content */
.main {
    flex: 1;
    padding: 30px 0;
}

/* Control Panel */
.control-panel {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent-bg);
    color: var(--text-white);
    border: 1px solid var(--text-primary);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
    box-shadow: 0 0 10px var(--text-primary);
}

.btn--primary {
    background: var(--blue-accent);
    border-color: var(--blue-accent);
}

.btn--secondary {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--primary-bg);
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.form-control {
    background: var(--accent-bg);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
}

.demo-status {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

/* Section Titles */
.section-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px var(--text-primary);
}

/* Timeline Styles */
.timeline-container {
    margin-bottom: 40px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-item {
    flex: 1;
    min-width: 150px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item.active {
    border-color: var(--text-primary);
    background: var(--accent-bg);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.timeline-item.completed {
    border-color: var(--success-color);
    background: rgba(0, 255, 0, 0.1);
}

.timeline-item__title {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: bold;
}

.timeline-item__status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--text-primary), var(--blue-accent));
    width: 0%;
    transition: width 1s ease;
}

/* Network Diagram */
.network-container {
    margin-bottom: 40px;
}

.network-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.coordinator-node {
    position: relative;
}

.agents-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.node {
    background: var(--accent-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
}

.node.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.node.executing {
    border-color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
    animation: pulse 1s infinite;
}

.node.completed {
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.node-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 8px;
}

.node-id {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.node-ip {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.node-status {
    font-size: 0.8rem;
    color: var(--blue-accent);
    font-style: italic;
}

/* Terminal Styles */
.terminal-container {
    margin-bottom: 40px;
}

.terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.terminal-header {
    background: var(--accent-bg);
    padding: 10px 20px;
    border-bottom: 1px solid var(--text-primary);
}

.terminal-title {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.terminal-prompt {
    color: var(--text-primary);
    margin-right: 10px;
}

.terminal-text {
    color: var(--text-white);
}

.terminal-command {
    color: var(--blue-accent);
}

.terminal-response {
    color: var(--text-secondary);
    margin-left: 20px;
}

.terminal-error {
    color: var(--error-color);
}

.terminal-success {
    color: var(--success-color);
}

/* Report Styles */
.report-container {
    margin-bottom: 40px;
}

.report-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.report-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.report-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.report-status.success {
    background: rgba(0, 255, 0, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric {
    text-align: center;
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.metric-value {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 8px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.report-details {
    background: var(--accent-bg);
    border-radius: 8px;
    padding: 20px;
}

.command-log {
    margin-bottom: 20px;
}

.command-log h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.command-item {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.command-item__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.command-item__cmd {
    color: var(--blue-accent);
    font-weight: bold;
}

.command-item__time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.command-item__response {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0, 255, 0, 0.05);
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header__title {
        font-size: 2rem;
    }

    .control-panel {
        flex-direction: column;
        gap: 20px;
    }

    .controls {
        justify-content: center;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        width: 100%;
        max-width: 300px;
    }

    .agents-container {
        flex-direction: column;
        align-items: center;
    }

    .network-diagram {
        padding: 20px;
    }

    .report-header {
        flex-direction: column;
        text-align: center;
    }

    .report-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header__title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .report-metrics {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}