/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #0f0; /* Hacker green text */
    cursor: default;
}

/* Green Screen Overlay - Hidden by default, shown after login if needed */
#green-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
    pointer-events: none;
    display: none;
}

@keyframes pixelReveal {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
}

/* Desktop Environment */
#desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    overflow: hidden;
    background-color: #000;
    padding: 10px;
}

/* ASCII Background Container */
#ascii-backgrounds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Individual ASCII Background */
.ascii-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Source Code Pro', monospace;
    font-size: 8px;
    line-height: 1;
    color: #0f0;
    white-space: pre;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Only show the active background */
.ascii-bg.active {
    opacity: 0.7;
    visibility: visible;
    z-index: 1;
    animation: flicker 3s infinite;
    pointer-events: none;
}

/* Ensure the ASCII content is properly contained and centered */
.ascii-bg pre {
    margin: auto;
    padding: 20px;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: block;
    text-align: center;
}

@keyframes flicker {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(60deg); }
    100% { filter: hue-rotate(0deg); }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 10, 0, 0.5);
}

/* Terminal Styles */
.terminal {
    font-family: 'Source Code Pro', monospace;
    color: #0f0;
    background-color: #000;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    overflow: hidden;
}

.terminal-header {
    color: #0f0;
    border-bottom: 1px solid #0f0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-weight: bold;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    font-family: 'Source Code Pro', monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-command {
    margin: 5px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal .dir {
    color: #0ff;
    display: block;
    margin-left: 4px;
}

.terminal .prompt {
    color: #0f0;
    margin-right: 8px;
    white-space: nowrap;
}

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

.terminal input[type="text"] {
    background: transparent;
    border: none;
    color: #0f0;
    font-family: 'Source Code Pro', monospace;
    font-size: inherit;
    outline: none;
    flex: 1;
    caret-color: #0f0;
}

.terminal input[type="text"]:focus {
    outline: none;
    box-shadow: none;
}

::-webkit-scrollbar-thumb {
    background: #0a0;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f0;
}

/* Desktop Icons Layout */
#desktop-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    max-height: 100%;
}

/* Desktop Icons */
.desktop-icon {
    width: 80px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    flex-shrink: 0;
    background-color: rgba(0, 15, 0, 0.1);
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.desktop-icon:hover {
    background-color: rgba(0, 30, 0, 0.2);
    border: 1px solid #0f0;
    transform: translateY(-2px);
}

.icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    flex-shrink: 0;
    background: rgba(0, 20, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #0f0; /* Default green color for all icons */
}

/* Specific icon colors */
[data-window="settings"] .icon,
[data-window="my-pc"] .icon,
[data-window="lorepaper"] .icon,
[data-window="recycle-bin"] .icon {
    color: inherit; /* Use the color defined inline */
}

/* Locked icons */
.desktop-icon:not([data-link]):not([data-window]) .icon {
    color: #fff; /* White color for locked icons */
}

.desktop-icon:hover .icon {
    transform: scale(1.05);
}

.icon-label {
    color: #00ff00;
    text-align: center;
    font-size: 12px;
    width: 100%;
    padding: 0 2px;
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
    line-height: 1.2;
}

/* For multi-word labels that need to wrap */
.desktop-icon[data-has-space] .icon-label {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: 2.4em;
    line-height: 1.2;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    padding: 0 2px;
    white-space: pre-line;
    text-align: center;
    display: -webkit-inline-box;
    display: inline-flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

/* Category-specific styles */
.icon-container:nth-child(n+1):nth-child(-n+6) { /* Socials - Top Left */
    justify-content: flex-start;
    align-items: flex-start;
}

.icon-container:nth-child(n+7):nth-child(-n+10) { /* Info - Top Right */
    justify-content: flex-end;
    align-items: flex-start;
}

.icon-container:nth-child(n+11):nth-child(-n+13) { /* Marketplaces - Bottom Left */
    justify-content: flex-start;
    align-items: flex-end;
}

.icon-container:nth-child(n+14):nth-child(-n+17) { /* Ecosystem - Bottom Right */
    justify-content: flex-end;
    align-items: flex-end;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 20, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000; /* Lower than start menu */
}

#start-button {
    height: 36px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 30, 0, 0.7);
    color: #0f0;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    margin: 0 5px;
    padding: 0 15px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#start-button::before {
    content: '/';
    margin-right: 8px;
    font-size: 16px;
    font-weight: bold;
    opacity: 0.7;
}

#start-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 0, 0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
}

#start-button:hover {
    background-color: rgba(0, 60, 0, 0.8);
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateY(-1px);
}

#start-button:hover::after {
    opacity: 1;
}

#start-button:active {
    transform: translateY(0);
    background-color: rgba(0, 40, 0, 0.9);
}

/* Full-screen app launcher */
#start-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 800px;
    height: 70vh;
    background: rgba(0, 10, 0, 0.98);
    border: 1px solid rgba(0, 100, 0, 0.3);
    border-radius: 8px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

#start-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    -ms-transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
    transition: none;
}

/* Debug styles for app items */
.app-item {
    position: relative;
    background: rgba(0, 15, 0, 0.3);
    border: 1px solid rgba(0, 80, 0, 0.2);
    border-radius: 4px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    transform: none !important;
}

/* Debug for pointer-events */
* {
    transition: outline 0.1s;
}

*[style*="pointer-events: none"],
*[style*="pointer-events:none"] {
    outline: 2px dashed magenta !important;
    outline-offset: 2px;
}

#start-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 10, 0, 0.7);
    z-index: 9999; /* Higher than other elements but lower than start menu */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none; /* Allow clicks to pass through when not active */
}

#start-menu-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Block clicks when active */
}

/* Search container */
.search-container {
    margin-bottom: 2rem;
    position: relative;
}

#app-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid #0f0;
    color: #0f0;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    font-style: normal !important;
    outline: none;
    border-radius: 4px;
}

#app-search:focus {
    border-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    background: rgba(0, 40, 0, 0.8);
}

#app-search::placeholder {
    color: rgba(0, 255, 0, 0.5);
    font-style: normal;
}

/* App list container */
.app-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar */
.app-list::-webkit-scrollbar {
    width: 8px;
}

.app-list::-webkit-scrollbar-track {
    background: rgba(0, 30, 0, 0.3);
    border-radius: 4px;
}

.app-list::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 4px;
}

.app-list::-webkit-scrollbar-thumb:hover {
    background: #0c0;
}

/* App categories */
.app-category {
    margin-bottom: 2rem;
}

.app-category h3 {
    color: #0f0;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding-bottom: 0.5rem;
}

/* Programs grid */
.apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.app-item {
    width: 140px;
    flex-shrink: 0;
}

/* Adjust grid for smaller screens */
@media (max-width: 900px) {
    .app-category[data-category="Tools"],
    .app-category[data-category="Utilities"] {
        width: 100%;
        padding: 0;
    }
}

/* App item */
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    background: none;
    border: none;
    text-align: center;
    width: 80px;
    margin: 4px;
    color: #0f0;
    text-decoration: none;
}

.app-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transition: all 0.2s ease;
    z-index: -1;
    border-radius: 4px;
}

.app-item:hover {
    transform: translateY(-2px);
}

.app-item:hover::before {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.app-item:active {
    transform: translateY(0);
}

/* App icon */
.app-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0f0;
    background: none;
    transition: all 0.2s ease;
}

.app-item:hover .app-icon {
    transform: scale(1.1);
    text-shadow: 0 0 15px currentColor;
}

/* App name */
.app-name {
    color: #0f0;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Highlighted app item */
.app-item.highlighted {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
}

/* No results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #0f0;
    text-align: center;
    padding: 2rem;
    opacity: 0.7;
}

.no-results-text {
    color: #0f0;
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 50px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-results-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.no-results-hint {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Start menu overlay */
#start-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#start-menu.show ~ #start-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}



#start-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}



.app-launcher {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

.search-container {
    padding: 0.75rem 1rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    background-color: transparent;
}

#app-search {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    background: rgba(0, 5, 0, 0.7);
    border: 1px solid rgba(0, 100, 0, 0.3);
    border-radius: 4px;
    color: #0f0;
    font-family: 'Source Code Pro', monospace;
    outline: none;
    letter-spacing: 0.5px;
}

#app-search:focus {
    border-color: rgba(0, 80, 0, 0.5);
    background: rgba(0, 10, 0, 0.7);
    outline: none;
    box-shadow: none;
}

#app-search::placeholder {
    color: rgba(0, 200, 0, 0.5);
    font-style: normal;
}

.app-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem;
    overflow-y: auto;
    justify-content: flex-start;
    align-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: #0f0 rgba(0, 0, 0, 0.3);
    width: 100%;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    background: rgba(0, 15, 0, 0.2);
    border-radius: 4px;
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
}

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

/* Custom scrollbar for WebKit browsers */
.app-list::-webkit-scrollbar {
width: 8px;
}

.app-list::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.3);
}

.app-list::-webkit-scrollbar-thumb {
background-color: #0f0;
border-radius: 4px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
    background: rgba(0, 15, 0, 0.2);
    border: 1px solid rgba(0, 80, 0, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: none;
    position: relative;
    text-align: center;
    min-height: 80px;
    width: 100px !important;
    flex: 0 0 auto;
    margin: 0.25rem;
}

.app-item:hover {
    background: rgba(0, 20, 0, 0.3);
    border-color: rgba(0, 100, 0, 0.3);
}

.app-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--app-color, #0f0);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.app-item::after {
    content: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-item:hover {
    background: rgba(0, 30, 0, 0.5);
    border-color: rgba(0, 150, 0, 0.5);
}

.app-item:hover::before {
    transform: scaleX(1);
}

.app-item:hover::after {
    opacity: 1;
}

.app-item.highlighted {
    background: rgba(0, 30, 0, 0.7);
    border-color: var(--app-color, #0f0);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.25);
    transform: translateY(-3px) scale(1.02) translateZ(5px);
    z-index: 1;
}

.app-item.highlighted::before {
    transform: scaleX(1);
}

.app-item.highlighted .app-icon {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--app-color, #0f0);
}

.app-item.highlighted .app-name {
    color: #fff;
    text-shadow: 0 0 10px var(--app-color, #0f0);
}

.app-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--app-color, #0a0);
    position: relative;
}

.app-item:hover .app-icon {
transform: scale(1.1);
text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.app-name {
    font-size: 0.8rem;
    color: #0a0;
    font-weight: 500;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
    font-family: 'Source Code Pro', monospace;
}

.app-category {
    font-size: 0.65rem;
    color: rgba(0, 255, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
    font-family: 'Source Code Pro', monospace;
}

.app-category {
    font-size: 0.7rem;
    color: rgba(0, 255, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: rgba(0, 20, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.app-item {
    opacity: 1;
    transform: none;
}

/* No results styling */
.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0.7;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.no-results-text {
    font-size: 1.5rem;
    color: #0f0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.no-results-hint {
    color: rgba(0, 255, 0, 0.6);
    font-size: 0.9rem;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .app-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    #start-menu {
        padding: 1.5rem 1rem;
    }
    
    .app-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .app-item {
        height: 140px;
        padding: 1.2rem 0.5rem;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .app-name {
        font-size: 0.85rem;
    }
    
    .app-category {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    #app-search {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }
}

/* Dark overlay when menu is open */
#start-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#start-menu.show ~ #start-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

#start-menu.show + #start-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

#start-menu.show {
    display: flex;
}

.menu-category {
    margin-bottom: 15px;
}

.menu-header {
    color: #0f0;
    font-weight: bold;
    margin: 10px 0 5px 0;
    padding-bottom: 3px;
    border-bottom: 1px solid #0f0;
}

.menu-item {
    padding: 8px 10px 8px 35px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 30px;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 20px;
    height: 20px;
    background-color: #0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #000;
}

.menu-item[data-link*='twitter']::before { content: '𝕏'; }
.menu-item[data-link*='are.na']::before { content: 'A'; }
.menu-item[data-link*='linkedin']::before { content: 'in'; }
.menu-item[data-link*='youtube']::before { content: '▶'; }
.menu-item[data-link*='discord']::before { content: '#'; }
.menu-item[data-link*='telegram']::before { content: '✉'; }
.menu-item[data-window='about']::before { content: 'i'; }
.menu-item[data-window='lorepaper']::before { content: '📜'; }
.menu-item[data-window='roadmap']::before { content: '🗺'; }
.menu-item[data-link*='gitbook']::before { content: '📚'; }
.menu-item[data-link*='magiceden']::before { content: 'M'; }
.menu-item[data-link*='salvor']::before { content: 'S'; }
.menu-item[data-link*='opensea']::before { content: '🌊'; }

.menu-item:hover {
    background-color: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px #0f0;
}

#taskbar-time {
    margin-left: auto;
    padding: 0 15px;
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    text-shadow: 0 0 5px #0f0;
}

/* Taskbar Items */
#taskbar-items {
    display: flex;
    height: 100%;
    gap: 4px;
    flex: 1;
    padding: 4px 0;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    margin: 0 10px 0 0;
}

#taskbar-items::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}

.taskbar-item {
    height: 36px;
    min-width: 120px;
    max-width: 200px;
    padding: 0 12px;
    background-color: rgba(0, 40, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 3px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.taskbar-item:hover {
    background-color: rgba(0, 255, 0, 0.1);
}

/* Taskbar Item States */
.taskbar-item:hover {
    background-color: rgba(0, 60, 0, 0.4);
}

.taskbar-item.active {
    background-color: rgba(0, 80, 0, 0.5);
    border-color: #0f0;
}

.taskbar-item.minimized {
    opacity: 0.7;
    background-color: rgba(0, 20, 0, 0.3);
}

.taskbar-item.minimized:hover {
    opacity: 0.9;
    background-color: rgba(0, 60, 0, 0.4);
}

/* System Tray */
#system-tray {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 100%;
    margin-left: auto;
}

#taskbar-time {
    font-size: 12px;
    color: #0f0;
    text-shadow: 0 0 3px #0f0;
    white-space: nowrap;
}

.taskbar-item-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f0;
    color: #000;
    font-size: 10px;
    flex-shrink: 0;
}

/* Window Styles */
.window {
    position: absolute;
    border: 1px solid #0f0;
    background-color: rgba(0, 15, 0, 0.9);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 10;
    min-width: 300px;
    min-height: 200px;
}

.window-header {
    background-color: rgba(0, 20, 0, 0.8);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.window-title {
    font-size: 12px;
    font-weight: bold;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-control {
    width: 12px;
    height: 12px;
    border: 1px solid #0f0;
    background-color: rgba(0, 20, 0, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    transition: all 0.2s ease;
    position: relative;
}

.window-control.maximize {
    font-size: 10px;
    line-height: 0.9;
}

.window-control.close {
    background-color: rgba(139, 0, 0, 0.5);
}

.window-control.close:hover {
    background-color: rgba(255, 0, 0, 0.7);
}

.window-control.maximize:hover {
    background-color: rgba(0, 100, 0, 0.7);
}

.window-control.minimize:hover {
    background-color: rgba(0, 100, 0, 0.7);
}

.window-control:hover {
    background-color: rgba(0, 255, 0, 0.3);
}

.window-content {
    flex: 1;
    padding: 10px;
    overflow: auto;
}

.window.minimized {
    display: none;
}

/* Windows Container */
#windows-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px); /* Account for taskbar height */
    pointer-events: none; /* Allow clicks to pass through to desktop */
    z-index: 10;
    overflow: visible;
}

/* Windows */
.window {
    pointer-events: auto; /* Re-enable pointer events for windows */
    position: absolute;
    min-width: 300px;
    min-height: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    resize: both;
    overflow: auto;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

/* Hide the default resize handle */
.window::-webkit-resizer {
    background-color: #0f0;
    width: 10px;
    height: 10px;
}

/* Custom resize handle */
.window::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #0f0 50%, transparent 50%);
    cursor: se-resize;
    z-index: 100;
}

.window-header {
    background-color: rgba(0, 40, 0, 0.9);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0f0;
    cursor: move;
    user-select: none;
}

.window-title {
    font-weight: bold;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #0f0;
    cursor: pointer;
}

.window-btn.minimize {
    background-color: #ff0;
}

.window-btn.maximize {
    background-color: #0f0;
}

.window-btn.close {
    background-color: #f00;
}

.window-content {
    flex: 1;
    padding: 15px;
    overflow: auto;
    color: #0f0;
    background-color: #000;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.window-content h3, 
.window-content h4 {
    color: #0f0;
    margin-bottom: 10px;
    border-bottom: 1px solid #0f0;
    padding-bottom: 5px;
}

.window-content p {
    margin-bottom: 10px;
}

.roadmap-container {
    padding: 10px;
}

.roadmap-year {
    margin-bottom: 30px;
}

.roadmap-quarter {
    background-color: rgba(0, 30, 0, 0.5);
    border-left: 3px solid #0f0;
    padding: 10px;
    margin-bottom: 15px;
}

.roadmap-quarter h4 {
    margin-top: 0;
    color: #0f0;
}

/* Mobile View */
.mobile-view #desktop {
    display: block !important;
    overflow-y: auto;
    padding: 20px;
}

.mobile-container {
    max-width: 100%;
    margin: 0 auto;
    color: #0f0;
    font-family: 'Source Code Pro', monospace;
}

.mobile-time {
    text-align: center;
    margin: 0 auto 30px;
    padding: 20px 15px;
    background: rgba(0, 20, 0, 0.2);
    border: 1px solid #0f0;
    border-radius: 4px;
    max-width: 90%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.mobile-time .time {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    color: #0f0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    margin-bottom: 5px;
}

.mobile-time .date {
    font-size: 0.9rem;
    color: #0f0;
    opacity: 0.9;
    margin-bottom: 10px;
}

.mobile-time .meeting {
    font-size: 0.8rem;
    color: #f00;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    animation: blink 1s step-end infinite;
}

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

.mobile-section {
    margin-bottom: 30px;
}

.mobile-section-title {
    color: #0f0;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 5px;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-align: center;
    min-height: 90px;
    justify-content: flex-start;
}

.mobile-app-icon:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-app-icon-content {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #0f0;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.mobile-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(81deg) brightness(118%) contrast(119%);
}

.mobile-app-label {
    font-size: 0.7rem;
    margin-top: 5px;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

/* Hide desktop elements on mobile */
@media (max-width: 768px) {
    #desktop {
        display: none;
    }
    
    #taskbar,
    #start-menu,
    .mobile-category,
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-view #taskbar,
    .mobile-view #start-menu {
        display: none !important;
    }
}
