* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: #0a0a0a;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
}

#container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* 상단 바 */
#topbar {
    height: 40px;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.system-info {
    color: #888;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.power-btn {
    background: linear-gradient(135deg, #444, #222);
    border: 1px solid #555;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.power-btn svg {
    fill: #666;
    transition: fill 0.3s ease;
}

.power-btn:hover {
    background: linear-gradient(135deg, #555, #333);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.power-btn:hover svg {
    fill: #00ff00;
}

.power-btn.active {
    background: linear-gradient(135deg, #00aa00, #006600);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.power-btn.active svg {
    fill: #00ff00;
    filter: drop-shadow(0 0 3px #00ff00);
}

/* 꺼진 화면 */
.off-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    font-family: 'Courier New', Consolas, Monaco, monospace !important;
}

/* 꺼진 화면 모든 요소에 폰트 강제 적용 */
.off-screen * {
    font-family: 'Courier New', Consolas, Monaco, monospace !important;
}

.off-screen pre {
    font-family: 'Courier New', Consolas, Monaco, monospace !important;
    white-space: pre !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

/* ASCII 로고 컨테이너 */
.ascii-logo-container {
    margin-bottom: 30px;
    animation: subtle-glow 3s ease-in-out infinite;
    text-align: center;
}

.ascii-logo-container pre {
    margin: 0 auto;
    padding: 0;
    display: inline-block;
    font-family: 'Courier New', Consolas, Monaco, monospace !important;
    white-space: pre;
    line-height: 1.2;
    letter-spacing: normal;
}

/* ASCII 로고 스타일 (꺼진 화면) */
.ascii-logo-off {
    color: #00ff00;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    font-size: 12px;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    line-height: 1.2;
    white-space: pre;
    animation: subtle-glow 3s ease-in-out infinite;
    letter-spacing: 0;
}

@keyframes subtle-glow {
    0%, 100% { 
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    }
    50% { 
        opacity: 0.9;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5),
                     0 0 20px rgba(0, 255, 0, 0.2);
    }
}

.off-message {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.off-hint {
    font-size: 14px;
    color: #222;
    animation: hint-blink 2s infinite;
}

@keyframes hint-blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* 부팅 화면 */
#bootScreen {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #000000;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
}

.boot-logo {
    text-align: center;
    margin: 20px 0;
    flex-shrink: 0;
    display: none; /* 기본 로고는 숨김 */
}

#asciiLogo {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
    line-height: 1.2;
    white-space: pre;
    display: inline-block;
    margin: 0 auto;
    letter-spacing: 1px;
}

.boot-version {
    margin-top: 10px;
    color: #888;
    font-size: 14px;
}

.boot-log-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0;
    background: #000000;
}

.boot-log {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    font-family: 'Consolas', 'Lucida Console', monospace;
    font-size: 12px;
    line-height: 1.4;
    background: #000000;
    color: #cccccc;
}

/* 부팅 로그 스크롤바 스타일 */
.boot-log::-webkit-scrollbar {
    width: 0;
    display: none;
}

.boot-log-line {
    margin: 1px 0;
    opacity: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 11px;
    line-height: 1.3;
}

.boot-log-line.success {
    color: #00ff00;
}

.boot-log-line.warning {
    color: #ffaa00;
}

.boot-log-line.error {
    color: #ff4444;
}

.boot-log-line.info {
    color: #cccccc;
}

/* GRUB 스타일 */
.grub-screen {
    background: #000000;
    color: #ffffff;
    padding: 20px;
    font-family: monospace;
    border: 2px solid #666666;
}

/* 커널 메시지 스타일 */
.kernel-message {
    font-size: 10px;
    font-family: 'Consolas', monospace;
    color: #aaaaaa;
}

.kernel-timestamp {
    color: #666666;
    font-weight: bold;
}

/* systemd 스타일 */
.systemd-ok {
    color: #00ff00;
    font-weight: bold;
}

.systemd-failed {
    color: #ff0000;
    font-weight: bold;
}

.systemd-warning {
    color: #ffaa00;
    font-weight: bold;
}

.boot-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: #111111;
    overflow: hidden;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00aa00);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Plymouth 스플래시 애니메이션 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5),
                     0 0 20px rgba(0, 255, 0, 0.3),
                     0 0 30px rgba(0, 255, 0, 0.1);
    }
    50% { 
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.8),
                     0 0 30px rgba(0, 255, 0, 0.5),
                     0 0 40px rgba(0, 255, 0, 0.3);
    }
}

/* Kernel Panic 스타일 */
.kernel-panic {
    background: #000000;
    color: #ff0000;
    font-family: monospace;
    padding: 20px;
    animation: blink 1s infinite;
}

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

/* UEFI/BIOS 스타일 */
.uefi-screen {
    background: #000066;
    color: #ffffff;
    font-family: 'Lucida Console', monospace;
    padding: 10px;
}

/* Recovery Mode 스타일 */
.recovery-mode {
    background: #1a0033;
    color: #ffaa00;
    font-family: monospace;
    padding: 15px;
}

/* SMART 경고 스타일 */
.smart-warning {
    animation: warning-flash 2s infinite;
}

@keyframes warning-flash {
    0%, 100% { color: #ffaa00; }
    50% { color: #ff0000; }
}

/* 터미널 */
#terminal {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #000;
    font-size: 14px;
}

#terminalOutput {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.input-line {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.prompt {
    color: #00ff00;
    white-space: nowrap;
    margin-right: 0;
}

.input-wrapper {
    display: inline-flex;
    align-items: center;
    flex: 1;
    position: relative;
}

#commandInput {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    caret-color: transparent;
    width: auto;
    min-width: 1px;
    position: relative;
    padding: 0;
    margin: 0;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
    font-size: 14px;
    position: absolute;
    left: 0;
    display: inline-block;
    width: 8px;
    pointer-events: none;
}

/* 애니메이션 */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 255, 0, 0.8); }
}

/* 유틸리티 클래스 */
.hidden {
    display: none !important;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* 터미널 출력 스타일 */
.command-line {
    color: #00ff00;
}

.output-line {
    color: #aaa;
}

.error-line {
    color: #ff4444;
}

.success-line {
    color: #00ff00;
}

.warning-line {
    color: #ffaa00;
}

.info-line {
    color: #00aaff;
}