/* Base Reset & Variables */
:root {
    --color-bg: #050505;
    --color-primary: #33ff00;
    --color-secondary: #008f11;
    --color-alert: #ff00ff;
    --font-main: 'VT323', monospace;
}

body {
    background-color: var(--color-bg);
    color: var(--color-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.p-2 { padding: 0.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-green-500 { border-color: var(--color-primary); }
.border-black { border-color: black; }
.bg-black { background-color: black; }
.text-green-500 { color: var(--color-primary); }
.bg-green-500 { background-color: var(--color-primary); }
.text-black { color: black; }
.cursor-pointer { cursor: pointer; }
.hover\:bg-green-900:hover { background-color: #003300; }
.hover\:text-white:hover { color: white; }

.pointer-events-auto { pointer-events: auto; }

/* CRT Effects & Glow */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 999;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(33, 255, 0, 0.1) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

.text-glow {
    text-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-secondary);
}

.box-glow {
    box-shadow: 0 0 15px rgba(51, 255, 0, 0.2);
}

.glitch-text:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--color-alert);
    text-shadow: 2px 2px var(--color-primary), -2px -2px #00ffff;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Animations */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Windows System */
.window {
    background: black;
    border: 2px solid var(--color-primary);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.5), 0 0 10px rgba(51, 255, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    min-height: 200px;
    pointer-events: auto;
}

.window-header {
    background: var(--color-primary);
    color: black;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    cursor: grab;
    text-shadow: none;
}

.window-content {
    padding: 1rem;
    flex-grow: 1;
    overflow: auto;
    color: var(--color-primary);
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #111;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--color-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }

.desktop-icon {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.desktop-icon:hover {
    border: 1px dashed var(--color-primary);
    background: rgba(51, 255, 0, 0.1);
    text-shadow: 0 0 5px var(--color-primary);
}

.desktop-icon svg {
    filter: drop-shadow(0 0 2px var(--color-primary));
}

.icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    background: transparent; 
}

/* App Specific */
.file-item:hover {
    background-color: rgba(51, 255, 0, 0.2);
    border-radius: 4px;
}
