/* IoT Network Penetration Lab - v86 Emulator */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: #333;
    color: #ccc;
}

.btn-secondary:hover {
    background: #555;
}

.status-indicator {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    background: #222;
    border: 1px solid #444;
}

.status-indicator.running {
    color: #4ade80;
    border-color: #4ade80;
}

.status-indicator.stopped {
    color: #f87171;
    border-color: #f87171;
}

.emulator-container {
    background: #0a0a15;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    overflow: hidden;
}

.emulator-screen {
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #0f0;
    padding: 15px;
    overflow: auto;
    resize: vertical;
    line-height: 1.4;
}

.emulator-screen ::-webkit-scrollbar {
    width: 10px;
}

.emulator-screen ::-webkit-scrollbar-track {
    background: #111;
}

.emulator-screen ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

.lab-instructions {
    background: #111;
    border-radius: 12px;
    padding: 20px;
}

.lab-instructions h3 {
    margin-top: 0;
    color: #00d4ff;
}

.lab-instructions ul {
    margin: 16px 0;
    padding-left: 20px;
}

.lab-instructions li {
    margin: 8px 0;
}

.lab-instructions details {
    margin-top: 16px;
    padding: 12px;
    background: #0a0a15;
    border-radius: 8px;
}

.lab-instructions pre {
    margin: 8px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    background: #222;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #00d4ff;
}

@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .emulator-screen {
        height: 350px;
    }
}