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

/* Boot Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-screen.hidden {
    display: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.splash-icon {
    color: rgba(255, 255, 255, 0.9);
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-icon svg {
    width: 80px;
    height: 80px;
}

@keyframes splashPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.splash-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.splash-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.splash-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.splash-user {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.splash-progress {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.splash-progress.visible {
    opacity: 1;
}

.splash-progress-bar {
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: width 1.2s ease-in-out;
}

.splash-progress-bar.loading {
    width: 100%;
}

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-terminal: #0a0e14;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-green: #39d353;
    --accent-cyan: #58a6ff;
    --accent-yellow: #e3b341;
    --accent-orange: #f78166;
    --accent-purple: #a371f7;
    --accent-pink: #db61a2;
    --prompt-color: #39d353;
    --comment-color: #6e7681;
}

html {
    font-size: 16px;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    background: url('milo.jpeg') no-repeat center bottom fixed;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 76px 20px 40px;
}

.terminal {
    position: relative;
    z-index: 100;
    max-width: 1100px;
    max-height: calc(100vh - 96px);
    margin: 0 auto;
    background: var(--bg-terminal);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.terminal-buttons .btn.red {
    background: #ff5f56;
    cursor: pointer;
    transition: transform 0.1s;
    position: relative;
    z-index: 10;
}
.terminal-buttons .btn.red::before {
    content: '';
    position: absolute;
    inset: -8px;
}
.terminal-buttons .btn.red:hover {
    transform: scale(1.2);
}
.terminal-buttons .btn.red:active {
    transform: scale(0.9);
}
.terminal-buttons .btn.yellow {
    background: #ffbd2e;
    cursor: pointer;
    transition: transform 0.1s;
}
.terminal-buttons .btn.yellow:hover {
    transform: scale(1.2);
}
.terminal-buttons .btn.yellow:active {
    transform: scale(0.9);
}
.terminal-buttons .btn.green {
    background: #27ca40;
    cursor: pointer;
    transition: transform 0.1s;
}
.terminal-buttons .btn.green:hover {
    transform: scale(1.2);
}
.terminal-buttons .btn.green:active {
    transform: scale(0.9);
}

.terminal.maximized {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.terminal.maximized .terminal-header {
    border-radius: 0;
}

.terminal.maximized .terminal-body {
    flex: 1;
    overflow-y: auto;
}

.terminal.closing {
    animation: closeTerminal 0.3s ease-in forwards;
}

.terminal.closed {
    display: none;
}

@keyframes closeTerminal {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.terminal.opening {
    animation: openTerminal 0.3s ease-out forwards;
}

@keyframes openTerminal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.terminal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.intro {
    margin-bottom: 40px;
}

.ascii-art {
    color: var(--accent-green);
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 24px;
    overflow-x: auto;
}

.prompt {
    color: var(--prompt-color);
    margin-bottom: 8px;
}

.prompt::before {
    content: '';
}

.output {
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-left: 16px;
}

.output a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s;
}

.output a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.section {
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--comment-color);
}

.section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.comment {
    color: var(--comment-color);
    font-style: italic;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding-left: 0;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-green);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-card.expandable {
    position: relative;
    cursor: pointer;
}

.expand-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--comment-color);
    border: 1px solid var(--comment-color);
    border-radius: 4px;
    transition: transform 0.2s, color 0.2s, border-color 0.2s;
}

.stat-card.expandable:hover .expand-hint {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.stat-card.expandable.expanded .expand-hint {
    transform: rotate(45deg);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.stat-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
    overflow: hidden;
}

.stat-detail-inner {
    overflow: hidden;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--comment-color);
    font-style: italic;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed var(--comment-color);
}

.stat-card.expandable.expanded .stat-detail {
    grid-template-rows: 1fr;
}

.stat-card.highlight {
    border-left-color: var(--accent-cyan);
}

.stat-card.travel {
    border-left-color: var(--accent-yellow);
}

.stat-card.running {
    border-left-color: var(--accent-orange);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card.highlight .stat-value {
    color: var(--accent-cyan);
}

.stat-card.travel .stat-value {
    color: var(--accent-yellow);
}

.stat-card.running .stat-value {
    color: var(--accent-orange);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chart-container {
    margin-top: 24px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    gap: 12px;
    align-items: center;
}

.bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.bar {
    height: 20px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange));
    border-radius: 4px;
    width: var(--width);
    min-width: 4px;
    transition: width 0.8s ease-out;
    position: relative;
}

.bar-value {
    font-size: 0.85rem;
    color: var(--accent-yellow);
    font-weight: 700;
}

.epic-stat {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(247, 129, 102, 0.1) 100%);
    border: 1px solid var(--accent-orange);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.epic-stat.secondary {
    background: var(--bg-secondary);
    border-color: var(--comment-color);
    padding: 24px;
}

.epic-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
}

.epic-number.small {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.epic-number .unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.epic-unit {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 8px;
}

.epic-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
    font-style: italic;
}

.epic-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.running-stats {
    margin-bottom: 16px;
}

.log-entry {
    font-size: 0.9rem;
}

.log-time {
    color: var(--comment-color);
}

.blink-cursor::after {
    content: '█';
    animation: blink 1s infinite;
    color: var(--accent-green);
}

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

.footer {
    margin-top: 60px;
    padding-top: 20px;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .terminal-body {
        padding: 16px;
    }

    .ascii-art {
        font-size: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .epic-number {
        font-size: 3rem;
    }

    .epic-number.small {
        font-size: 2rem;
    }

    .bar-row {
        grid-template-columns: 80px 1fr 35px;
        gap: 8px;
    }

    .bar-label {
        font-size: 0.75rem;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
}

.menu-bar-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-icon {
    display: flex;
    align-items: center;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
}

.app-name {
    font-weight: 600;
}

.menu-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-bar-icon {
    display: flex;
    align-items: center;
}

.wifi-icon svg {
    width: 24px;
    height: 24px;
}

.battery-icon svg {
    width: 32px;
    height: 18px;
}

.menu-bar-datetime {
    font-size: 14px;
    min-width: 140px;
    margin-left: 4px;
}

/* Desktop & Dock */
.desktop {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    pointer-events: none;
}

.dock {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.3s, transform 0.3s;
}

body.terminal-hidden .dock {
    opacity: 1;
    transform: translateY(0);
}

.dock-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(10, 14, 20, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: var(--accent-green);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dock-item::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 40, 50, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.dock-item::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(40, 40, 50, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.dock-item:hover::before,
.dock-item:hover::after {
    opacity: 1;
}

.dock-item svg {
    width: 28px;
    height: 28px;
}

/* Menu Dropdown */
.menu-dropdown {
    position: relative;
}

.menu-dropdown .app-name,
.menu-dropdown .menu-icon {
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.15s;
}

.menu-dropdown .menu-icon {
    display: flex;
    align-items: center;
}

.menu-dropdown .app-name:hover,
.menu-dropdown.active .app-name,
.menu-dropdown .menu-icon:hover,
.menu-dropdown.active .menu-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Disable app dropdown when terminal is open */
#app-dropdown.disabled .app-name {
    cursor: default;
}

#app-dropdown.disabled .app-name:hover {
    background: transparent;
}

#app-dropdown.disabled .dropdown-menu {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: rgba(40, 40, 40, 0.75);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.menu-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 13px;
    color: #fff;
}

.dropdown-item:hover {
    background: #0a84ff;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-window {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.popup-overlay.active .popup-window {
    transform: scale(1);
}

.popup-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.popup-buttons {
    display: flex;
    gap: 8px;
}

.popup-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.1s;
}

.popup-btn.red {
    background: #ff5f56;
    cursor: pointer;
}

.popup-btn.red:hover {
    transform: scale(1.2);
}

.popup-btn.red:active {
    transform: scale(0.9);
}

.popup-btn.yellow {
    background: #febc2e;
}

.popup-btn.green {
    background: #28c840;
}

.popup-btn.disabled {
    opacity: 0.4;
    cursor: default;
}

.popup-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.popup-body {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #d1d1d1;
}

.popup-body a {
    color: #6cb6ff;
    text-decoration: none;
    transition: color 0.15s;
}

.popup-body a:hover {
    color: #8fc9ff;
    text-decoration: underline;
}

/* Desktop Icons */
.desktop-icons {
    position: fixed;
    top: 180px;
    right: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    width: 80px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

.desktop-icon.selected {
    background: rgba(59, 130, 246, 0.4);
}

.desktop-icon .folder-icon {
    width: 52px;
    height: 52px;
    color: #6cb6ff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.desktop-icon-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
    word-break: break-word;
}

/* Folder Window */
.folder-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 500;
}

.folder-window.closed {
    display: none;
}

.folder-window.closing {
    animation: closeFolderWindow 0.3s ease-in forwards;
}

.folder-window.opening {
    animation: openFolderWindow 0.3s ease-out forwards;
}

@keyframes closeFolderWindow {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes openFolderWindow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.folder-window.maximized {
    top: 36px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    transform: none;
    border-radius: 0;
}

.folder-window.maximized.closing {
    animation: closeMaximizedWindow 0.3s ease-in forwards;
}

.folder-window.maximized.opening {
    animation: openMaximizedWindow 0.3s ease-out forwards;
}

@keyframes closeMaximizedWindow {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes openMaximizedWindow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.folder-window.maximized .folder-header {
    border-radius: 0;
}

.folder-window.maximized .folder-body {
    min-height: calc(100vh - 100px);
}

.folder-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
    position: relative;
}

.folder-buttons {
    display: flex;
    gap: 8px;
}

.folder-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.1s;
}

.folder-btn.red {
    background: #ff5f56;
    cursor: pointer;
}

.folder-btn.red:hover {
    transform: scale(1.2);
}

.folder-btn.red:active {
    transform: scale(0.9);
}

.folder-btn.yellow {
    background: #febc2e;
    cursor: pointer;
}

.folder-btn.yellow:hover {
    transform: scale(1.2);
}

.folder-btn.yellow:active {
    transform: scale(0.9);
}

.folder-btn.green {
    background: #28c840;
    cursor: pointer;
}

.folder-btn.green:hover {
    transform: scale(1.2);
}

.folder-btn.green:active {
    transform: scale(0.9);
}

.folder-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.folder-body {
    padding: 20px;
    position: relative;
    min-height: 280px;
}

.folder-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.folder-file:hover {
    background: rgba(255, 255, 255, 0.1);
}

.folder-file.selected {
    background: rgba(59, 130, 246, 0.4);
}

.file-icon {
    width: 48px;
    height: 48px;
    color: #a0a0a0;
}

.file-name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 11px;
    color: #d1d1d1;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

/* Markdown Viewer Window */
.markdown-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 600;
    display: flex;
    flex-direction: column;
}

.markdown-window.closed {
    display: none;
}

.markdown-window.closing {
    animation: closeMarkdownWindow 0.3s ease-in forwards;
}

.markdown-window.opening {
    animation: openMarkdownWindow 0.3s ease-out forwards;
}

@keyframes closeMarkdownWindow {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes openMarkdownWindow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.markdown-window.maximized {
    top: 36px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    transform: none;
    border-radius: 0;
}

.markdown-window.maximized.closing {
    animation: closeMaximizedWindow 0.3s ease-in forwards;
}

.markdown-window.maximized.opening {
    animation: openMaximizedWindow 0.3s ease-out forwards;
}

.markdown-window.maximized .markdown-header {
    border-radius: 0;
}

.markdown-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
    position: relative;
    flex-shrink: 0;
}

.markdown-buttons {
    display: flex;
    gap: 8px;
}

.markdown-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.1s;
}

.markdown-btn.red {
    background: #ff5f56;
    cursor: pointer;
}

.markdown-btn.red:hover {
    transform: scale(1.2);
}

.markdown-btn.red:active {
    transform: scale(0.9);
}

.markdown-btn.yellow {
    background: #febc2e;
    cursor: pointer;
}

.markdown-btn.yellow:hover {
    transform: scale(1.2);
}

.markdown-btn.yellow:active {
    transform: scale(0.9);
}

.markdown-btn.green {
    background: #28c840;
    cursor: pointer;
}

.markdown-btn.green:hover {
    transform: scale(1.2);
}

.markdown-btn.green:active {
    transform: scale(0.9);
}

.markdown-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.markdown-body {
    padding: 24px 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #d1d1d1;
    overflow-y: auto;
    flex: 1;
}

.markdown-body h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-body h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-top: 24px;
    margin-bottom: 12px;
}

.markdown-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.markdown-body p {
    margin-bottom: 14px;
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.markdown-body li {
    margin-bottom: 6px;
}

.markdown-body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.markdown-body a {
    color: #6cb6ff;
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body strong {
    color: #fff;
    font-weight: 600;
}

.markdown-body em {
    color: #b0b0b0;
}