body {
    margin: 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: #1c2526;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Device Selection Screen */
.device-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #2e3440, #3b4252);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.device-container {
    background: linear-gradient(145deg, #3b4252, #434c5e);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid #5e81ac;
}

.device-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #88c0d0;
    font-weight: bold;
}

.device-subtitle {
    font-size: 16px;
    color: #d8dee9;
    margin-bottom: 30px;
}

.device-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.device-btn {
    background: linear-gradient(145deg, #4c566a, #5e81ac);
    border: none;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    color: #eceff4;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.device-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(94, 129, 172, 0.4);
    background: linear-gradient(145deg, #5e81ac, #81a1c1);
}

.device-btn:active {
    transform: translateY(-2px);
}

.device-btn span {
    font-size: 16px;
    font-weight: bold;
}

.device-btn small {
    font-size: 12px;
    color: #d8dee9;
}

.device-btn:first-child {
    font-size: 48px;
}

.setup-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #2e3440;
}

.setup-container {
    background-color: #3b4252;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.setup-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #88c0d0;
}

.spec-group {
    margin: 10px 0;
    text-align: left;
}

.spec-group label {
    display: block;
    margin-bottom: 5px;
    color: #d8dee9;
}

.spec-group select {
    width: 100%;
    padding: 8px;
    background-color: #4c566a;
    color: #eceff4;
    border: none;
    border-radius: 4px;
}

.start-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #5e81ac;
    color: #eceff4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.start-btn:hover {
    background-color: #81a1c1;
}

.terminal-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: #2e3440;
    position: relative;
}

.terminal-header {
    background-color: #3b4252;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4c566a;
    flex-shrink: 0;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-btn.close {
    background-color: #bf616a;
}

.control-btn.minimize {
    background-color: #ebcb8b;
}

.control-btn.maximize {
    background-color: #a3be8c;
}

.terminal-title {
    font-size: 14px;
    color: #d8dee9;
}

.cachyos-logo {
    margin-right: 8px;
}

.system-monitor {
    font-size: 12px;
    color: #88c0d0;
}

.terminal-content {
    flex: 1;
    padding: 10px;
    padding-bottom: 60px;
    overflow-y: auto;
    background-color: #2e3440;
    color: #eceff4;
    font-size: 14px;
    line-height: 1.4;
    min-height: 0;
}

.boot-message, .command-area div {
    margin-bottom: 3px;
    word-wrap: break-word;
}

.file-list {
    color: #88c0d0;
}

.error {
    color: #bf616a;
}

.success {
    color: #a3be8c;
}

.warning {
    color: #ebcb8b;
}

.info {
    color: #81a1c1;
}

.prompt {
    color: #88c0d0;
    font-weight: bold;
}

/* Neofetch styles */
.neofetch {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 12px;
}

.neofetch-logo {
    color: #5e81ac;
    font-size: 10px;
    line-height: 1;
    white-space: pre;
}

.neofetch-info div {
    margin-bottom: 2px;
}

.info-label {
    color: #81a1c1;
    font-weight: bold;
}

/* Help styles */
.help-text {
    color: #d8dee9;
    margin: 10px 0;
    line-height: 1.5;
}

.help-category {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #88c0d0;
}

.help-item {
    margin-left: 10px;
    margin-bottom: 2px;
    font-size: 13px;
}

/* Process lists */
.process-list, .top-output, .df-output, .free-output {
    color: #d8dee9;
    font-family: monospace;
    font-size: 13px;
    margin: 10px 0;
}

.process-header, .top-header {
    font-weight: bold;
    color: #88c0d0;
    margin-bottom: 5px;
}

.process-item {
    margin: 2px 0;
}

.top-stats {
    margin: 8px 0;
    color: #81a1c1;
}

/* Programs panel */
.programs-panel {
    position: fixed;
    right: 10px;
    top: 10px;
    width: 250px;
    max-height: 70vh;
    background-color: #3b4252;
    padding: 10px;
    border: 1px solid #4c566a;
    border-radius: 6px;
    display: none;
    z-index: 100;
}

.panel-header {
    font-size: 14px;
    color: #88c0d0;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.programs-list {
    color: #d8dee9;
    max-height: 60vh;
    overflow-y: auto;
}

.running-program {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background-color: #4c566a;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.running-program:hover {
    background-color: #5e81ac;
}

.program-icon {
    font-size: 14px;
}

.program-name {
    flex: 1;
    font-size: 12px;
}

.program-close {
    cursor: pointer;
    color: #bf616a;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.program-close:hover {
    background-color: #bf616a;
    color: #ffffff;
}

.no-programs {
    color: #88c0d0;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Input line */
.input-line {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #3b4252;
    padding: 10px;
    border-top: 1px solid #4c566a;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

#commandInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #eceff4;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    margin-left: 5px;
}

#commandInput::selection {
    background-color: #5e81ac;
}

/* Nano editor styles */
.nano-editor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2e3440;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nano-header {
    background-color: #3b4252;
    color: #eceff4;
    padding: 5px 10px;
    font-size: 12px;
    border-bottom: 1px solid #4c566a;
}

.nano-content {
    flex: 1;
    padding: 10px;
    background-color: #2e3440;
    color: #eceff4;
    font-family: monospace;
    font-size: 14px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.nano-footer {
    background-color: #3b4252;
    color: #88c0d0;
    padding: 5px 10px;
    font-size: 11px;
    border-top: 1px solid #4c566a;
    text-align: center;
}

/* Htop styles */
.htop-display {
    background-color: #2e3440;
    color: #eceff4;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    border: 1px solid #4c566a;
    margin: 10px 0;
}

.htop-header {
    color: #88c0d0;
    margin-bottom: 10px;
    font-weight: bold;
}

.htop-stats {
    margin-bottom: 10px;
}

.htop-bar {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.htop-label {
    width: 60px;
    color: #81a1c1;
}

.htop-progress {
    flex: 1;
    height: 12px;
    background-color: #4c566a;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 10px;
}

.htop-fill {
    height: 100%;
    background-color: #a3be8c;
    transition: width 0.3s ease;
}

.htop-value {
    color: #d8dee9;
    font-size: 11px;
    min-width: 40px;
}

.htop-processes {
    margin-top: 15px;
}

.htop-process-header {
    color: #88c0d0;
    font-weight: bold;
    border-bottom: 1px solid #4c566a;
    padding-bottom: 2px;
}

.htop-process {
    margin: 1px 0;
    color: #d8dee9;
}

.htop-exit-hint {
    color: #ebcb8b;
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
}

/* System Destruction Screen */
.destruction-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #1a0000, #330000);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: destructionFadeIn 1s ease-out;
}

@keyframes destructionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.destruction-content {
    text-align: center;
    color: #ff4444;
    max-width: 600px;
    width: 90%;
}

.destruction-title {
    font-size: 48px;
    margin-bottom: 30px;
    animation: destructionGlow 2s ease-in-out infinite alternate;
    font-weight: bold;
}

@keyframes destructionGlow {
    from { text-shadow: 0 0 20px #ff4444; }
    to { text-shadow: 0 0 40px #ff6666, 0 0 60px #ff4444; }
}

.destruction-text {
    font-family: monospace;
    font-size: 14px;
    margin: 20px 0;
    text-align: left;
    background: #000;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ff4444;
    color: #ff6666;
    min-height: 200px;
}

.destruction-progress {
    background: #000;
    height: 30px;
    border-radius: 15px;
    border: 2px solid #ff4444;
    overflow: hidden;
    margin: 20px 0;
}

.destruction-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    width: 0;
    transition: width 0.5s ease;
    animation: destructionPulse 1s ease-in-out infinite alternate;
}

@keyframes destructionPulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

.destruction-footer {
    font-size: 18px;
    color: #ff6666;
    animation: destructionBlink 1.5s ease-in-out infinite;
}

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

/* Mobile optimizations */
body.mobile-mode {
    font-size: 16px;
    -webkit-text-size-adjust: none;
}

body.mobile-mode .terminal-content {
    padding: 5px;
    padding-bottom: 70px;
    font-size: 13px;
}

body.mobile-mode .input-line {
    padding: 8px;
    height: 60px;
}

body.mobile-mode #commandInput {
    font-size: 16px;
    padding: 5px;
    background: rgba(76, 86, 106, 0.3);
    border-radius: 4px;
}body {
    margin: 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: #1c2526;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.setup-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #2e3440;
}

.setup-container {
    background-color: #3b4252;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.setup-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #88c0d0;
}

.spec-group {
    margin: 10px 0;
    text-align: left;
}

.spec-group label {
    display: block;
    margin-bottom: 5px;
    color: #d8dee9;
}

.spec-group select {
    width: 100%;
    padding: 8px;
    background-color: #4c566a;
    color: #eceff4;
    border: none;
    border-radius: 4px;
}

.start-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #5e81ac;
    color: #eceff4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.start-btn:hover {
    background-color: #81a1c1;
}

.terminal-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: #2e3440;
    position: relative;
}

.terminal-header {
    background-color: #3b4252;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4c566a;
    flex-shrink: 0;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-btn.close {
    background-color: #bf616a;
}

.control-btn.minimize {
    background-color: #ebcb8b;
}

.control-btn.maximize {
    background-color: #a3be8c;
}

.terminal-title {
    font-size: 14px;
    color: #d8dee9;
}

.cachyos-logo {
    margin-right: 8px;
}

.system-monitor {
    font-size: 12px;
    color: #88c0d0;
}

.terminal-content {
    flex: 1;
    padding: 10px;
    padding-bottom: 60px;
    overflow-y: auto;
    background-color: #2e3440;
    color: #eceff4;
    font-size: 14px;
    line-height: 1.4;
    min-height: 0;
}

.boot-message, .command-area div {
    margin-bottom: 3px;
    word-wrap: break-word;
}

.file-list {
    color: #88c0d0;
}

.error {
    color: #bf616a;
}

.success {
    color: #a3be8c;
}

.warning {
    color: #ebcb8b;
}

.info {
    color: #81a1c1;
}

.prompt {
    color: #88c0d0;
    font-weight: bold;
}

/* Neofetch styles */
.neofetch {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 12px;
}

.neofetch-logo {
    color: #5e81ac;
    font-size: 10px;
    line-height: 1;
    white-space: pre;
}

.neofetch-info div {
    margin-bottom: 2px;
}

.info-label {
    color: #81a1c1;
    font-weight: bold;
}

/* Help styles */
.help-text {
    color: #d8dee9;
    margin: 10px 0;
    line-height: 1.5;
}

.help-category {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #88c0d0;
}

.help-item {
    margin-left: 10px;
    margin-bottom: 2px;
    font-size: 13px;
}

/* Process lists */
.process-list, .top-output, .df-output, .free-output {
    color: #d8dee9;
    font-family: monospace;
    font-size: 13px;
    margin: 10px 0;
}

.process-header, .top-header {
    font-weight: bold;
    color: #88c0d0;
    margin-bottom: 5px;
}

.process-item {
    margin: 2px 0;
}

.top-stats {
    margin: 8px 0;
    color: #81a1c1;
}

/* Programs panel */
.programs-panel {
    position: fixed;
    right: 10px;
    top: 10px;
    width: 250px;
    max-height: 70vh;
    background-color: #3b4252;
    padding: 10px;
    border: 1px solid #4c566a;
    border-radius: 6px;
    display: none;
    z-index: 100;
}

.panel-header {
    font-size: 14px;
    color: #88c0d0;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.programs-list {
    color: #d8dee9;
    max-height: 60vh;
    overflow-y: auto;
}

.running-program {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background-color: #4c566a;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.running-program:hover {
    background-color: #5e81ac;
}

.program-icon {
    font-size: 14px;
}

.program-name {
    flex: 1;
    font-size: 12px;
}

.program-close {
    cursor: pointer;
    color: #bf616a;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.program-close:hover {
    background-color: #bf616a;
    color: #ffffff;
}

.no-programs {
    color: #88c0d0;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Input line */
.input-line {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #3b4252;
    padding: 10px;
    border-top: 1px solid #4c566a;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

#commandInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #eceff4;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    margin-left: 5px;
}

#commandInput::selection {
    background-color: #5e81ac;
}

/* Nano editor styles */
.nano-editor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2e3440;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nano-header {
    background-color: #3b4252;
    color: #eceff4;
    padding: 5px 10px;
    font-size: 12px;
    border-bottom: 1px solid #4c566a;
}

.nano-content {
    flex: 1;
    padding: 10px;
    background-color: #2e3440;
    color: #eceff4;
    font-family: monospace;
    font-size: 14px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.nano-footer {
    background-color: #3b4252;
    color: #88c0d0;
    padding: 5px 10px;
    font-size: 11px;
    border-top: 1px solid #4c566a;
    text-align: center;
}

/* Htop styles */
.htop-display {
    background-color: #2e3440;
    color: #eceff4;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    border: 1px solid #4c566a;
    margin: 10px 0;
}

.htop-header {
    color: #88c0d0;
    margin-bottom: 10px;
    font-weight: bold;
}

.htop-stats {
    margin-bottom: 10px;
}

.htop-bar {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.htop-label {
    width: 60px;
    color: #81a1c1;
}

.htop-progress {
    flex: 1;
    height: 12px;
    background-color: #4c566a;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 10px;
}

.htop-fill {
    height: 100%;
    background-color: #a3be8c;
    transition: width 0.3s ease;
}

.htop-value {
    color: #d8dee9;
    font-size: 11px;
    min-width: 40px;
}

.htop-processes {
    margin-top: 15px;
}

.htop-process-header {
    color: #88c0d0;
    font-weight: bold;
    border-bottom: 1px solid #4c566a;
    padding-bottom: 2px;
}

.htop-process {
    margin: 1px 0;
    color: #d8dee9;
}

.htop-exit-hint {
    color: #ebcb8b;
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .terminal-container {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .terminal-content {
        padding: 8px;
        padding-bottom: 50px;
        font-size: 13px;
    }

    .input-line {
        padding: 5px 8px;
    }

    .terminal-header {
        padding: 5px 8px;
    }

    .terminal-title, .system-monitor {
        font-size: 11px;
    }

    .programs-panel {
        display: none;
        width: 0;
    }

    .neofetch {
        flex-direction: column;
    }

    .neofetch-logo {
        font-size: 8px;
        align-self: center;
    }

    .setup-container {
        margin: 20px;
        padding: 15px;
    }

    .help-text {
        font-size: 12px;
    }

    .nano-content {
        font-size: 13px;
        padding: 8px;
    }

    .htop-display {
        font-size: 11px;
        padding: 8px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #3b4252;
}

::-webkit-scrollbar-thumb {
    background: #5e81ac;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #81a1c1;
}