/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ubuntu-orange: #E95420;
    --ubuntu-dark: #2C001E;
    --ubuntu-purple: #77216F;
    --ubuntu-light-purple: #5E2750;
    --terminal-bg: #300A24;
    --terminal-text: #FFFFFF;
    --terminal-green: #2EC27E;
    --terminal-blue: #3584E4;
    --terminal-yellow: #F6D32D;
    --terminal-red: #E01B24;
    --prompt-color: #2EC27E;
    --command-color: #FFFFFF;
    --output-color: #D0CFCF;
    --desktop-bg: #2D2D2D;
}

body {
    font-family: 'Ubuntu Mono', monospace;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    padding-top: 40px; /* Space for top bar */
}

/* Login / Lock screen */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.login-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(233, 84, 32, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(119, 33, 111, 0.18) 0%, transparent 45%),
        linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 50%, #0b0b0b 100%);
}

.login-panel {
    position: relative;
    width: min(420px, 92vw);
    padding: 26px 22px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: loginPop 220ms ease-out;
}

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

.login-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 34px;
    color: rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 30% 30%, rgba(233, 84, 32, 0.35), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(53, 132, 228, 0.35), transparent 55%),
        rgba(255, 255, 255, 0.06);
}

.login-user {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-name {
    font-size: 18px;
    font-weight: 700;
}

.login-subtitle {
    font-size: 12px;
    opacity: 0.75;
}

.login-form {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.login-input {
    flex: 1;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    outline: none;
}

.login-input:focus {
    border-color: rgba(233, 84, 32, 0.65);
    box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.16);
}

.login-btn {
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: rgba(233, 84, 32, 0.92);
    color: white;
    font-weight: 800;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.login-btn:hover {
    background: #ff6b3d;
    transform: translateY(-1px);
}

.login-hint {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Top Bar (Ubuntu 2024 Style) */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    font-size: 13px;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left,
.top-bar-right {
    flex: 1;
}

.top-bar-left {
    justify-content: flex-start;
}

.top-bar-center {
    flex: 0;
    justify-content: center;
    white-space: nowrap;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.top-bar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.top-bar-icon {
    font-size: 14px;
}

.top-bar-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
}

.top-bar-icon-svg svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.top-bar-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, transform 0.12s ease;
}

.top-bar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.top-bar-icon-btn:active {
    transform: translateY(0) scale(0.98);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-bar-text {
    font-weight: 500;
    font-size: 12px;
}

#timeDisplay {
    font-weight: 600;
    font-size: 13px;
}

#dateDisplay {
    font-size: 11px;
    opacity: 0.8;
}

.top-bar-sep {
    opacity: 0.6;
    margin: 0 6px;
    font-weight: 700;
}

/* Ubuntu Desktop Background */
.ubuntu-desktop {
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(233, 84, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(119, 33, 111, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(44, 0, 30, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #1a1a1a 50%, #2d2d2d 75%, #1a1a1a 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 200% 200%;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.wallpaper-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.ubuntu-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(233, 84, 32, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(119, 33, 111, 0.1) 0%, transparent 40%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

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

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 0;
    left: 60px; /* Leave space for left sidebar */
    right: 0;
    bottom: 0;
    padding: 30px 30px 30px 30px;
    z-index: 2;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
    position: absolute;
    width: 100px;
    touch-action: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.desktop-icon:active {
    transform: translateY(0) scale(0.95);
}

.desktop-icon.dragging {
    opacity: 0.9;
    transform: none !important;
    cursor: grabbing;
}

.desktop-icon.dragging:hover {
    transform: none !important;
}

.icon-image {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.terminal-icon-img {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M20 19V5c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v14H2v2h20v-2h-2zm-2 0H6V5h12v14zm-10-4h8v2H8v-2z"/></svg>');
    background-color: rgba(46, 194, 126, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.music-icon-img {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/></svg>');
    background-color: rgba(233, 84, 32, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.settings-icon-img {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M19.14,12.94c0.04-0.31,0.06-0.63,0.06-0.94s-0.02-0.63-0.06-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.62l-1.92-3.32c-0.11-0.21-0.36-0.3-0.58-0.22l-2.39,0.96c-0.5-0.38-1.04-0.7-1.64-0.94L14.5,2.5c-0.04-0.23-0.24-0.4-0.48-0.4h-4.04c-0.24,0-0.44,0.17-0.48,0.4L9.14,4.32C8.54,4.56,8,4.88,7.5,5.26L5.11,4.3c-0.22-0.08-0.47,0.01-0.58,0.22L2.61,7.84C2.5,8.05,2.55,8.32,2.73,8.46l2.03,1.58C4.72,10.37,4.7,10.69,4.7,11s0.02,0.63,0.06,0.94L2.73,13.52c-0.18,0.14-0.23,0.41-0.12,0.62l1.92,3.32c0.11,0.21,0.36,0.3,0.58,0.22l2.39-0.96c0.5,0.38,1.04,0.7,1.64,0.94l0.36,1.82c0.04,0.23,0.24,0.4,0.48,0.4h4.04c0.24,0,0.44-0.17,0.48-0.4l0.36-1.82c0.6-0.24,1.14-0.56,1.64-0.94l2.39,0.96c0.22,0.08,0.47-0.01,0.58-0.22l1.92-3.32c0.11-0.21,0.06-0.48-0.12-0.62L19.14,12.94z M12,15.2c-1.77,0-3.2-1.43-3.2-3.2S10.23,8.8,12,8.8s3.2,1.43,3.2,3.2S13.77,15.2,12,15.2z"/></svg>');
    background-color: rgba(53, 132, 228, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.worm-icon-img {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M5 13c0-3.31 2.69-6 6-6h1c2.21 0 4 1.79 4 4v2c0 1.66 1.34 3 3 3h1v2h-1c-2.76 0-5-2.24-5-5v-2c0-1.1-.9-2-2-2h-1c-2.21 0-4 1.79-4 4v1c0 2.76 2.24 5 5 5h1v2h-1c-3.87 0-7-3.13-7-7v-1z"/></svg>');
    background-color: rgba(233, 84, 32, 0.18);
    border-radius: 8px;
    padding: 12px;
}

.icon-label {
    color: #FFFFFF;
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    max-width: 80px;
    word-wrap: break-word;
}

/* Terminal Modal */
.terminal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.terminal-modal.active {
    display: flex;
}

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

.terminal-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    animation: slideUp 0.3s ease;
}

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

/* Terminal Window */
.terminal-window {
    background: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(to bottom, #3d3d3d, #2d2d2d);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: move;
}

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

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

.terminal-buttons button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.terminal-buttons button:hover {
    transform: scale(1.1);
}

.btn-close {
    background: rgba(224, 27, 36, 0.3);
}

.btn-close:hover {
    background: #ff5f57;
}

.btn-minimize {
    background: rgba(255, 189, 46, 0.3);
}

.btn-minimize:hover {
    background: #ffbd2e;
}

.btn-maximize {
    background: rgba(40, 202, 66, 0.3);
}

.btn-maximize:hover {
    background: #28ca42;
}

.terminal-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    flex: 1;
    text-align: center;
}

/* Terminal Body */
.terminal-body {
    padding: 20px;
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Terminal Line */
.terminal-line {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.prompt {
    color: var(--prompt-color);
    font-weight: 700;
}

.separator {
    color: var(--terminal-text);
}

.path {
    color: var(--terminal-blue);
    font-weight: 500;
}

.prompt-symbol {
    color: var(--prompt-color);
    margin-left: 5px;
    margin-right: 10px;
}

.command {
    color: var(--command-color);
    font-weight: 400;
}

/* Terminal Output */
.terminal-output {
    margin: 15px 0;
    padding-right: 20px;
    color: var(--output-color);
    animation: fadeInOutput 0.3s ease;
}

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

.terminal-output.error {
    color: var(--terminal-red);
}

/* ASCII Art */
.ascii-art {
    color: var(--ubuntu-orange);
    font-size: 12px;
    line-height: 1.2;
    margin: 10px 0;
    white-space: pre;
    font-family: 'Ubuntu Mono', monospace;
}

.welcome-text {
    margin: 15px 0;
    color: var(--output-color);
}

.command-hint {
    color: var(--terminal-yellow);
    font-weight: 600;
}

/* Help Section */
.help-section h3,
.info-section h3,
.skills-section h3,
.projects-section h3,
.experience-section h3,
.education-section h3,
.contact-section h3,
.positions-section h3 {
    color: var(--terminal-blue);
    margin-bottom: 15px;
    font-size: 16px;
}

.command-list {
    list-style: none;
    padding: 0;
}

.command-list li {
    margin: 10px 0;
    padding-right: 20px;
    color: var(--output-color);
}

.cmd-name {
    color: var(--terminal-green);
    font-weight: 700;
    margin-left: 5px;
}

/* Info Sections */
.info-section p,
.skills-section p,
.projects-section p,
.experience-section p,
.education-section p,
.contact-section p,
.positions-section p {
    margin: 10px 0;
    color: var(--output-color);
    line-height: 1.8;
}

.skill-category,
.project-item,
.exp-item,
.edu-item,
.contact-item,
.position-item {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--output-color);
}

.skill-category strong,
.project-item strong,
.exp-item strong,
.edu-item strong,
.contact-item strong,
.position-item strong {
    color: var(--terminal-blue);
    margin-left: 5px;
}

/* LS Output */
.ls-output {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.file-item {
    color: var(--terminal-green);
    font-weight: 500;
}

/* Terminal Input Line */
.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--command-color);
    font-family: 'Ubuntu Mono', monospace;
    font-size: 14px;
    padding: 0;
    margin-right: 5px;
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.cursor {
    color: var(--terminal-green);
    animation: blink 1s infinite;
    font-weight: 700;
}

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

/* Command Group */
.command-group {
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .icon-image {
        width: 48px;
        height: 48px;
    }

    .icon-label {
        font-size: 11px;
    }

    .terminal-body {
        padding: 15px;
        font-size: 12px;
    }

    .ascii-art {
        font-size: 8px;
    }

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

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

    .terminal-buttons span {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .terminal-body {
        padding: 10px;
        font-size: 11px;
    }

    .ascii-art {
        font-size: 6px;
    }

    .terminal-line {
        font-size: 11px;
    }
}


.menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.menu-items {
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.menu-item:hover {
    background: rgba(233, 84, 32, 0.2);
}

.menu-icon {
    font-size: 20px;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

/* Application Windows */
.app-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 300;
    animation: appWindowOpen 0.3s ease forwards;
}

.app-window.active {
    display: flex;
}

@keyframes appWindowOpen {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    cursor: move;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.app-icon {
    font-size: 20px;
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-btn-close {
    width: 24px;
    height: 24px;
    background: var(--terminal-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.app-btn-close:hover {
    background: #ff3333;
    transform: scale(1.1);
}

.app-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.app-body::-webkit-scrollbar {
    width: 8px;
}

.app-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.app-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.app-content {
    color: var(--output-color);
}

.app-content h2 {
    color: var(--terminal-blue);
    margin-bottom: 20px;
    font-size: 24px;
}

.app-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Music Player Styles */
.music-player {
    color: white;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.player-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ubuntu-orange);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    background: #ff6b3d;
    transform: scale(1.1);
}

.player-btn:active {
    transform: scale(0.95);
}

#playPauseBtn {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.player-info {
    margin-bottom: 30px;
}

.current-song {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.player-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--ubuntu-orange);
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.playlist {
    margin-top: 30px;
}

.playlist h3 {
    color: var(--terminal-blue);
    margin-bottom: 15px;
    font-size: 18px;
}

.playlist-items {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.playlist-item:hover {
    background: rgba(233, 84, 32, 0.2);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(233, 84, 32, 0.4);
    border-left: 3px solid var(--ubuntu-orange);
}

.playlist-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.playlist-item-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.menu-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.menu-items {
    padding: 0;
}

/* Responsive adjustments for sidebar */
@media (max-width: 768px) {
    .right-sidebar {
        width: 50px;
    }

    .start-button {
        width: 35px;
        height: 35px;
    }

    .start-menu {
        min-width: 200px;
        left: 60px;
        bottom: 10px;
        padding: 15px;
    }

    .app-window {
        width: 95vw;
        max-height: 90vh;
    }
}

/* Left Sidebar */
.right-sidebar {
    position: fixed;
    left: 0;
    top: 40px; /* Below top bar */
    bottom: 0;
    width: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    z-index: 100;
}

/* Settings UI */
.settings-section {
    margin-top: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.settings-section h3 {
    color: var(--terminal-blue);
    margin-bottom: 10px;
    font-size: 16px;
}

.settings-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.settings-row-actions {
    justify-content: flex-end;
}

.settings-label {
    min-width: 130px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.settings-input {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    outline: none;
}

.settings-input:focus {
    border-color: rgba(233, 84, 32, 0.6);
    box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.15);
}

.settings-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: rgba(233, 84, 32, 0.9);
    color: white;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.settings-btn:hover {
    background: #ff6b3d;
    transform: translateY(-1px);
}

.settings-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.settings-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Worm game */
.worm-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.worm-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.worm-score {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.worm-actions {
    display: flex;
    gap: 10px;
}

.worm-canvas {
    width: min(520px, 90%);
    height: auto;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.worm-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    padding-top: 10px;
}

.sidebar-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar-icon.active {
    background: rgba(233, 84, 32, 0.3);
    border-left: 3px solid var(--ubuntu-orange);
}

.sidebar-icon-img {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sidebar-icon-img.terminal-icon-img {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M20 19V5c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v14H2v2h20v-2h-2zm-2 0H6V5h12v14zm-10-4h8v2H8v-2z"/></svg>');
    background-color: rgba(46, 194, 126, 0.2);
    border-radius: 6px;
    padding: 8px;
}

.sidebar-icon-img.music-icon-img {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/></svg>');
    background-color: rgba(233, 84, 32, 0.2);
    border-radius: 6px;
    padding: 8px;
}

.sidebar-icon-img {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.start-button {
    width: 45px;
    height: 45px;
    background: var(--ubuntu-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.start-button:hover {
    background: #ff6b3d;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(233, 84, 32, 0.5);
}

.start-button svg {
    width: 24px;
    height: 24px;
}

/* Start Menu (Ubuntu-like Activities Overview) */
.start-menu {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 20000;
}

.start-menu.active {
    display: block;
}

.start-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
}

.start-menu-shell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px; /* below top bar */
    gap: 18px;
    animation: startOverviewIn 180ms ease-out;
}

@keyframes startOverviewIn {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

.start-search {
    width: min(720px, 92vw);
    display: flex;
    justify-content: center;
}

.start-search-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    outline: none;
    font-size: 14px;
}

.start-search-input:focus {
    border-color: rgba(233, 84, 32, 0.65);
    box-shadow: 0 0 0 4px rgba(233, 84, 32, 0.15);
}

.start-app-grid {
    width: min(980px, 94vw);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    padding: 8px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    user-select: none;
}

.menu-item:hover {
    background: rgba(233, 84, 32, 0.16);
    border-color: rgba(233, 84, 32, 0.25);
    transform: translateY(-2px);
}

.menu-item:active {
    transform: translateY(0) scale(0.98);
}

.menu-icon {
    font-size: 34px;
    width: auto;
    text-align: center;
    margin: 0;
    line-height: 1;
}

.menu-text {
    font-size: 13px;
    opacity: 0.92;
}

/* App Windows */
.app-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 300;
    animation: appWindowOpen 0.3s ease;
}

.app-window.active {
    display: flex;
}

@keyframes appWindowOpen {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
}

.app-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.app-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.app-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.app-btn:hover {
    transform: scale(1.1);
}

.app-minimize {
    background: rgba(255, 189, 46, 0.2);
}

.app-minimize:hover {
    background: #ffbd2e;
}

.app-maximize {
    background: rgba(40, 202, 66, 0.2);
}

.app-maximize:hover {
    background: #28ca42;
}

.app-close {
    background: rgba(224, 27, 36, 0.2);
}

.app-close:hover {
    background: var(--terminal-red);
}

.app-window.minimized {
    display: none !important;
}

.app-window.maximized {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
}

.app-window.maximized .app-header {
    border-radius: 0 !important;
}

.app-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: white;
}

.app-content h2 {
    color: var(--terminal-blue);
    margin-bottom: 20px;
    font-size: 24px;
}

.app-content p {
    margin: 15px 0;
    line-height: 1.8;
    color: var(--output-color);
}

/* Music Player Styles */
.music-player {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.player-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(233, 84, 32, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    background: var(--ubuntu-orange);
    transform: scale(1.1);
}

.play-pause {
    width: 60px;
    height: 60px;
    background: var(--ubuntu-orange);
    font-size: 24px;
}

.player-info {
    text-align: center;
}

.current-song {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.player-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--ubuntu-orange);
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.playlist {
    margin-top: 20px;
}

.playlist h3 {
    color: var(--terminal-blue);
    margin-bottom: 15px;
}

.playlist-items {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.playlist-item:hover {
    background: rgba(233, 84, 32, 0.2);
}

.playlist-item.active {
    background: rgba(233, 84, 32, 0.4);
    border-left: 3px solid var(--ubuntu-orange);
}

.load-music-btn {
    padding: 12px 24px;
    background: var(--ubuntu-orange);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.load-music-btn:hover {
    background: #ff6b3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 84, 32, 0.4);
}

/* Selection */
::selection {
    background: var(--ubuntu-orange);
    color: white;
}

::-moz-selection {
    background: var(--ubuntu-orange);
    color: white;
}
