:root {
    --bg-dark: #090d16;
    --card-bg: #111827;
    --panel-inner: #1f2937;
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);
    --text-light: #f3f4f6;
    --text-gray: #9ca3af;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .container {
        padding: 2.5rem;
    }
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #374151;
    padding-bottom: 1rem;
}

header h1 {
    font-size: 1.6rem;
    color: var(--emerald);
    text-shadow: 0 0 12px var(--emerald-glow);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
}

header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.sandbox {
    background: #030712;
    height: 150px;
    border-radius: 12px;
    border: 1px solid #374151;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1.5rem;
}

.node {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    text-align: center;
}

@media (min-width: 768px) {
    .node {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

.node-pc { background: #3b82f6; color: white; }
.node-printer { background: #4b5563; color: white; }
.node-radio { background: #f59e0b; color: white; }

.emi-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--emerald);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

@keyframes waveGlow {
    0% { width: 30px; height: 30px; opacity: 1; border-color: var(--emerald); }
    100% { width: 400px; height: 400px; opacity: 0; border-color: #ef4444; }
}

.active-wave {
    animation: waveGlow 0.8s infinite linear;
}

.morse-lab {
    background: var(--panel-inner);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #4b5563;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .morse-lab {
        padding: 1.5rem;
    }
}

.morse-lab h3 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

input[type="text"] {
    flex: 1;
    background: #111827;
    border: 1px solid #4b5563;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    width: 100%;
}

input[type="text"]:focus {
    outline: 2px solid var(--emerald);
}

.preview-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.doc-preview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.morse-block {
    background: black;
    height: 20px;
    border-radius: 3px;
}

.block-dit { width: 10px; }
.block-dah { width: 30px; }
.block-space { width: 18px; background: transparent; border: 1px dashed #d1d5db; }

.tutorial-steps {
    background: #111827;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--emerald);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-gray);
}

@media (min-width: 768px) {
    .tutorial-steps {
        font-size: 0.95rem;
    }
}

.tutorial-steps strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.tutorial-steps ol {
    padding-left: 1.2rem;
}

.action-btn {
    background: var(--emerald);
    color: #090d16;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn:hover {
    background: #059669;
    box-shadow: 0 4px 12px var(--emerald-glow);
              }
          
