/* Terminal Layout */
.terminal-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    margin-top: 20px;
}

.terminal-main {
    min-width: 0; /* Prevents flexbox overflow */
}

.terminal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
}

.info-card h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.info-card .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace;
    color: var(--primary-color);
    font-weight: 700;
}

.uptime {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--success-color);
}

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

.status-dot.online {
    background: var(--success-color);
    box-shadow: 0 6px 20px rgba(34,197,94,0.12);
    animation: ping 1.6s infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    70% { transform: scale(1.4); opacity: 0.35; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .terminal-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .terminal-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 120px;
    }
}

@media (max-width: 640px) {
    .info-card {
        flex: 1 1 calc(50% - 6px);
    }
}

/* Terminal Component Styles */
.terminal {
    background: linear-gradient(180deg, var(--card-bg), var(--surface-color));
    border-radius: 12px;
    padding: 16px;
    color: var(--text-dark);
    font-family: 'Press Start 2P', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace;
    letter-spacing: 0.25px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    height: 100%;
    min-height: 290px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, #ff5f57, #ff7b7b);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) inset;
}

.dot.yellow {
    background: linear-gradient(90deg, #ffbd2e, #ffd166);
}

.dot.green {
    background: linear-gradient(90deg, #28c84f, #6EE7B7);
}

.terminal-body {
    padding: 6px 0 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.terminal-output {
    white-space: pre-wrap;
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--text-dark);
    overflow: hidden;
    flex: 1 1 auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.terminal-output .line {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 200ms ease, transform 200ms ease;
    margin: 3px 0;
    font-size: 0.7rem;
}

.terminal-output .line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Terminal text colors */
.terminal .green { color: var(--success-color); font-weight: 700; }
.terminal .yellow { color: #ffd166; font-weight: 700; }
.terminal .red { color: var(--error-color); font-weight: 700; }
.terminal .blue { color: var(--primary-color); font-weight: 700; }
.terminal .purple { color: #a78bfa; font-weight: 700; }
.terminal .teal { color: #06b6d4; font-weight: 700; }
.terminal .orange { color: #fb923c; font-weight: 700; }

/* Light theme overrides */
.light-theme .terminal,
[data-theme="light"] .terminal {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(203, 213, 225, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.light-theme .terminal .line,
[data-theme="light"] .terminal .line {
    color: #1e293b;
}

.light-theme .terminal .green,
[data-theme="light"] .terminal .green { color: #10b981; }

.light-theme .terminal .blue,
[data-theme="light"] .terminal .blue { color: #3b82f6; }

.light-theme .terminal .purple,
[data-theme="light"] .terminal .purple { color: #8b5cf6; }

.light-theme .terminal .teal,
[data-theme="light"] .terminal .teal { color: #06b6d4; }

.light-theme .terminal .orange,
[data-theme="light"] .terminal .orange { color: #f97316; }
