.setup-container {
    padding: 15px;
}

.setup-section {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid var(--terminal-green);
    background-color: rgba(0, 255, 0, 0.05);
}

.setup-title {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    color: var(--terminal-text);
    font-family: 'VT323', monospace;
    text-shadow: 0 0 5px var(--terminal-green);
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.form-group label {
    font-size: 1em;
    color: var(--terminal-text);
}

.setup-input {
    width: 100%;
    padding: 6px 8px;
    background-color: #1a1a1a;
    border: 1px solid var(--terminal-green);
    color: var(--terminal-text);
    font-family: 'VT323', monospace;
    font-size: 1em;
    box-sizing: border-box;
    position: relative;
}

.setup-input:focus {
    outline: none;
    border-color: var(--terminal-green);
    caret-color: var(--terminal-green);
}

.input-description {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
    margin-top: -2px;
}

/* Custom checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1em;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #1a1a1a;
    border: 1px solid var(--terminal-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover .checkmark {
    background-color: #2a2a2a;
}

.checkbox-container input:checked ~ .checkmark::after {
    content: "✓";
    color: var(--terminal-green);
    font-size: 16px;
}

/* Animation for the setup sections */
.setup-section {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor styling */
body, html, .container {
    cursor: url('../mousepointers.png') 0 0, auto !important;
}

/* Custom number input styling */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Custom number controls */
.number-controls {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.number-control {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    opacity: 0.5;
}

.number-control.up {
    border-bottom: 6px solid var(--terminal-green);
}

.number-control.down {
    border-top: 6px solid var(--terminal-green);
}

/* Active input styling */
.setup-input.active {
    border-color: var(--terminal-text);
    background-color: rgba(0, 255, 0, 0.1);
}

/* Network Signal Display */
.network-signal {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'VT323', monospace;
    color: var(--terminal-text);
}

.signal-line {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1em;
    line-height: 1.2;
}

.signal-prefix {
    color: var(--terminal-green);
    animation: blink 1s step-end infinite;
}

.signal-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dynamic-value {
    color: var(--terminal-green);
}

.signal-bars {
    display: inline-flex;
    gap: 2px;
    height: 12px;
    align-items: flex-end;
    margin-left: 4px;
}

.bar {
    width: 3px;
    transition: all 1.5s ease;
}

.bar.active.weak {
    background-color: var(--error-red);
    opacity: 1;
}

.bar.active.medium {
    background-color: #ffaa00;
    opacity: 1;
}

.bar.active.strong {
    background-color: var(--terminal-green);
    opacity: 1;
}

.bar.inactive {
    background-color: var(--terminal-green);
    opacity: 0.1;
}

/* Add animation for the cursor */
.signal-line:first-child .signal-text::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.setup-input.locked {
    border: 2px solid var(--terminal-green);
    background-color: rgba(0, 255, 0, 0.05);
}

.terminal-container {
    background-color: var(--terminal-bg);
    border-radius: 10px;
    border: 1px solid var(--terminal-green);
    overflow: hidden;
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    max-height: calc(100vh - 40px);
    min-height: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 20px;
}

.terminal-output {
    font-family: 'VT323', monospace;
    color: var(--terminal-text);
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    flex: 1;
    min-height: 150px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #0a0a0a;
}

.terminal-output::-webkit-scrollbar {
    width: 10px;
    background: #0a0a0a;
}
.terminal-output::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 10px #00ff00;
}
.terminal-output::-webkit-scrollbar-thumb:hover {
    background: #33ff33;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: var(--terminal-green);
    margin-right: 8px;
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    caret-color: var(--terminal-green);
    padding: 4px 0;
}

.terminal-input:focus {
    outline: none;
}

.command-output {
    color: var(--terminal-text);
    margin: 8px 0;
    padding-left: 16px;
}

.error-output {
    color: var(--error-red);
    margin: 8px 0;
}

.success-output {
    color: var(--success-green);
    margin: 8px 0;
}

.command-history {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.ascii-art {
    color: var(--terminal-green);
    font-family: monospace;
    white-space: pre;
    margin: 16px 0;
    font-size: 0.7em;
    line-height: 1.2;
    text-shadow: 0 0 5px var(--terminal-green);
    opacity: 0.9;
}

@keyframes textShadowPulse {
    0% {
        text-shadow: 0 0 4px var(--terminal-green);
    }
    50% {
        text-shadow: 0 0 8px var(--terminal-green);
    }
    100% {
        text-shadow: 0 0 4px var(--terminal-green);
    }
}

.ascii-art {
    animation: textShadowPulse 2s infinite;
}

.help-command {
    color: var(--terminal-green);
    margin: 4px 0;
}

.help-description {
    color: var(--terminal-text);
    margin-left: 24px;
    opacity: 0.8;
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--terminal-green);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--terminal-green) }
}

/* Custom DOS-style popup/modal */
.dos-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dos-modal {
    background: #0a0a0a;
    border: 2px solid var(--terminal-green);
    box-shadow: 0 0 30px var(--terminal-green);
    color: var(--terminal-text);
    font-family: 'VT323', monospace;
    min-width: 320px;
    max-width: 90vw;
    padding: 32px 24px 24px 24px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    z-index: 2100;
}
.dos-modal-title {
    font-size: 1.5em;
    color: var(--terminal-green);
    margin-bottom: 16px;
    text-shadow: 0 0 8px var(--terminal-green);
}
.dos-modal-message {
    margin-bottom: 24px;
    font-size: 1.1em;
}
.dos-modal-btn {
    background: transparent;
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0 8px;
    box-shadow: 0 0 6px var(--terminal-green);
}
.dos-modal-btn:hover {
    background: var(--terminal-green);
    color: #0a0a0a;
}

.power-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000; /* Fully opaque */
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), visibility 0.7s;
}
.power-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.power-btn {
    background: transparent;
    border: none;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: transform 0.1s;
    position: relative;
}
.power-btn:active, .power-btn:focus {
    transform: scale(0.96);
}
.power-symbol {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.power-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.power-btn:hover .power-symbol img {
    filter: brightness(1.2);
}

.power-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.power-text {
    font-family: 'VT323', monospace;
    color: #00ff00;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #003300;
    animation: blink 1.5s step-end infinite;
    text-align: center;
    padding: 8px 16px;
    border: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 4px 4px 0px #003300;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.7;
    }
}

.terminal-caret {
    display: inline-block;
    color: #00ff00;
    background: transparent;
    font-family: 'VT323', monospace;
    font-size: 1em;
    animation: caret-blink 0.7s steps(1) infinite;
    vertical-align: baseline;
}

@keyframes caret-blink {
    0%, 60% {
        opacity: 1;
    }
    61%, 100% {
        opacity: 0;
    }
}

.terminal-power-btn {
    background: #000 !important;
    border: 2.5px solid #00ff00 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none !important;
    padding: 0;
}
.terminal-power-btn:focus, .terminal-power-btn:hover {
    background: #000 !important;
    border-color: #00ff00 !important;
    box-shadow: none !important;
}
.terminal-power-btn svg {
    width: 22px !important;
    height: 22px !important;
    filter: none !important;
    transition: none !important;
}
.terminal-power-btn:focus svg, .terminal-power-btn:hover svg {
    filter: none !important;
    stroke: #00ff00 !important;
}

/* Responsive Design for Setup */
@media (max-width: 768px) {
    .setup-container {
        padding: 10px;
    }
    
    .setup-section {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .setup-title {
        font-size: 1em;
    }
    
    .setup-input {
        font-size: 0.9em;
        padding: 5px 6px;
    }
}

@media (max-width: 480px) {
    .setup-container {
        padding: 5px;
    }
    
    .setup-section {
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .setup-title {
        font-size: 0.9em;
    }
    
    .setup-input {
        font-size: 0.8em;
        padding: 4px 5px;
    }
}

@media (max-height: 600px) {
    .setup-container {
        padding: 8px;
    }
} 