* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #090e17 0%, #162235 50%, #05080f 100%); height: 100vh; overflow: hidden; color: #fff; }

.flash-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #fff; z-index: 9999999; opacity: 0; pointer-events: none; display: none; transition: opacity 0.15s ease-out; }
.flash-overlay.active { display: block; opacity: 0.4; }

.context-menu { position: absolute; background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(10px); border: 1px solid #475569; border-radius: 8px; width: 220px; box-shadow: 0 5px 25px rgba(0,0,0,0.6); display: flex; flex-direction: column; padding: 5px; z-index: 100005; transform-origin: top left; animation: popIn 0.1s ease-out; }
.context-menu.hidden { display: none; }
.context-menu-item { padding: 10px 15px; border-radius: 6px; cursor: pointer; color: #cbd5e1; display: flex; align-items: center; gap: 12px; transition: 0.2s; font-size: 13px; }
.context-menu-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.context-menu-item i { width: 16px; text-align: center; color: #38bdf8; }
.context-menu-divider { height: 1px; background: #475569; margin: 4px 0; }

#sticky-notes-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.sticky-note { position: absolute; width: 220px; min-height: 200px; background: #fef08a; border-radius: 2px 2px 8px 8px; box-shadow: 2px 5px 15px rgba(0,0,0,0.3); pointer-events: auto; display: flex; flex-direction: column; transform: rotate(-2deg); transition: transform 0.2s ease-in-out; }
.sticky-note:hover { transform: rotate(0deg); }
.note-header { background: #fde047; padding: 8px 12px; cursor: grab; display: flex; justify-content: flex-end; align-items: center; border-radius: 2px 2px 0 0; }
.note-header:active { cursor: grabbing; }
.note-close { color: #b45309; cursor: pointer; font-size: 14px; transition: 0.2s; }
.note-close:hover { color: #ef4444; transform: scale(1.2); }
.note-body { flex: 1; padding: 12px; outline: none; font-family: 'Segoe UI', 'Comic Sans MS', sans-serif; font-size: 14px; color: #451a03; background: transparent; border: none; resize: none; overflow: hidden; line-height: 1.5; }

.login-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(10, 15, 25, 0.95); backdrop-filter: blur(20px); z-index: 100005; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.theme-switch-login { position: absolute; top: 20px; right: 20px; font-size: 24px; cursor: pointer; color: #cbd5e1; transition: 0.3s; padding: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.theme-switch-login:hover { color: #fff; background: rgba(255,255,255,0.2); transform: scale(1.1); }
.login-box { text-align: center; animation: fadeIn 1s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.avatar-os { width: 120px; height: 120px; background: #1e293b; border-radius: 50%; margin: 0 auto 20px; display: flex; justify-content: center; align-items: center; font-size: 60px; color: #e95420; border: 3px solid #e95420; box-shadow: 0 0 20px rgba(233, 84, 32, 0.3); }
.login-box h2 { font-size: 28px; margin-bottom: 5px; color: #fff; } 
.login-box p { color: #94a3b8; margin-bottom: 30px; font-weight: 400;}
.login-btn { padding: 12px 30px; font-size: 16px; background: transparent; border: 2px solid #e95420; color: #e95420; border-radius: 30px; cursor: pointer; transition: 0.3s; font-weight: 600; }
.login-btn:hover { background: #e95420; color: #fff; box-shadow: 0 0 15px rgba(233, 84, 32, 0.5); }
.hint { margin-top: 20px; font-size: 12px; color: #64748b; }

.toast-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 100002; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.toast-overlay.hidden { display: none; }
.toast-box { background: #1e293b; padding: 30px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid #334155; animation: popIn 0.3s ease-out; max-width: 400px; color: #fff; }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.toast-icon { font-size: 40px; color: #38bdf8; margin-bottom: 15px; } .toast-box h3 { margin-bottom: 10px; font-size: 20px; } .toast-box p { color: #94a3b8; margin-bottom: 25px; font-size: 14px; word-break: break-all; }
.toast-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } .toast-actions button { padding: 10px 15px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-primary { background: #38bdf8; color: #0f172a; } .btn-primary:hover { background: #0ea5e9; } .btn-secondary { background: #475569; color: #fff; } .btn-secondary:hover { background: #64748b; } .btn-cancel { background: transparent; color: #ef4444; border: 1px solid #ef4444 !important; } .btn-cancel:hover { background: #ef4444; color: #fff; }

.ktp-input { background: #f8fafc; border: 1px solid #cbd5e1; color: #334155; outline: none; border-radius: 6px; }

.info-toast { position: fixed; bottom: 60px; left: 15px; background: rgba(30, 41, 59, 0.95); color: #fff; padding: 12px 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border-left: 4px solid #e95420; display: flex; align-items: center; gap: 10px; font-weight: 600; z-index: 100001; transform: translateY(20px); opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; }
.info-toast.show { transform: translateY(0); opacity: 1; visibility: visible; }

.desktop { height: calc(100vh - 48px); padding: 15px; position: relative; }
.desktop-icons { display: flex; flex-direction: column; gap: 15px; width: 110px; } 
.icon { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 5px; border-radius: 8px; cursor: pointer; transition: 0.2s; } 
.icon:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); } 
.icon.portfolio-item::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 3px; background-color: #38bdf8; border-radius: 3px; box-shadow: 0 0 8px rgba(56, 189, 248, 0.8); transition: 0.3s ease-in-out; }
.icon.portfolio-item:hover::before { height: 100%; top: 0; background-color: #4ade80; box-shadow: 0 0 12px rgba(74, 222, 128, 0.9); }
.icon-img { font-size: 40px; margin-bottom: 8px; filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4)); } 
.icon span { font-size: 12px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); width: 100%; word-wrap: break-word; color: #fff; font-weight: normal; }

.terminal-icon { color: #4ade80; } .explorer-icon-color { color: #fbbf24; }
.ciremai-color { color: #facc15; } .web-icon { color: #38bdf8; }
.ai-color { color: #a855f7; } .cvats-color { color: #f87171; } .music-color { color: #ec4899; }
.browser-icon-color { color: #38bdf8; }

.window { position: absolute; top: 50px; left: 180px; width: 850px; height: 550px; background-color: #121212; border-radius: 8px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.1); display: flex; flex-direction: column; overflow: hidden; resize: both; min-width: 400px; min-height: 300px; transition: opacity 0.2s ease-in-out; }
.window.minimized { display: none !important; } .window.maximized { top: 0 !important; left: 0 !important; width: 100vw !important; height: calc(100vh - 48px) !important; border-radius: 0; resize: none; }
.title-bar { background: linear-gradient(to right, #2d2d2d, #1a1a1a); padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; cursor: grab; border-bottom: 1px solid #000; } .title-bar:active { cursor: grabbing; } 
.title-info { font-size: 13px; color: #e5e5e5; display: flex; align-items: center; gap: 8px; pointer-events: none; } 
.window-controls { display: flex; gap: 6px; } 
.ctrl-btn { width: 28px; height: 28px; border: none; background: transparent; color: #ccc; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; } 
.ctrl-btn:hover { background: rgba(150, 150, 150, 0.2); } .ctrl-btn.close:hover { background: #e81123; color: white !important; }

.window.dragging iframe { pointer-events: none; }

.terminal-content { flex: 1; padding: 20px; overflow-y: auto; font-family: 'Fira Code', monospace; font-size: 14px; color: #e5e5e5; user-select: text; background-color: #121212; } 
.terminal-content::-webkit-scrollbar { width: 8px; } .terminal-content::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; } 
.prompt { color: #4ade80; font-weight: bold; } .cursor { display: inline-block; width: 8px; height: 15px; background-color: #ccc; animation: blink 1s step-end infinite; } @keyframes blink { 50% { opacity: 0; } } 
.ascii-art { color: #38bdf8; font-weight: bold; margin-bottom: 20px; font-size: 12px; } .highlight-green { color: #4ade80; font-weight: bold; } .highlight-blue { color: #60a5fa; font-weight: bold; } .highlight-yellow { color: #facc15; } .label { color: #c084fc; font-weight: bold; } 
.terminal-content a { color: #38bdf8; text-decoration: none; border-bottom: 1px dashed #38bdf8;} .terminal-content a:hover { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); border-bottom-style: solid; } .hidden { display: none; }

.explorer-win { background-color: #f8fafc; } .explorer-title-bar { background: #e2e8f0; border-bottom: 1px solid #cbd5e1; } .explorer-title { color: #333; } .explorer-btn { color: #333; }
.explorer-toolbar { background: #f1f5f9; padding: 8px 15px; display: flex; align-items: center; gap: 15px; color: #64748b; border-bottom: 1px solid #cbd5e1; } .explorer-toolbar i { cursor: pointer; transition: color 0.2s; } .explorer-toolbar i:hover { color: #0f172a; } 
.address-bar { flex: 1; background: #fff; padding: 5px 10px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 12px; color: #334155; display: flex; align-items: center; gap: 8px; } .explorer-content { flex: 1; padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px; align-content: start; overflow-y: auto; } .file-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 15px 10px; border-radius: 6px; cursor: pointer; text-decoration: none; color: #334155; transition: 0.2s; border: 1px solid transparent; } .file-item:hover { background: #e2e8f0; border-color: #cbd5e1; } .file-icon { font-size: 45px; margin-bottom: 10px; } 
.pdf-color { color: #ef4444; } .ijazah-color{ color: #60a5fa; } .ktp-color{ color: #f59e0b; } .cert-color{ color: #eab308; } .photo-color{ color: #10b981; }
.file-item span { font-size: 12px; word-wrap: break-word; line-height: 1.2; }

.browser-win { background-color: #fff; } .browser-title-bar { background: #1e293b; border-bottom: none; } .browser-title { color: #f8fafc; } .browser-btn { color: #ccc; }
.browser-toolbar { background: #334155; padding: 8px 15px; display: flex; align-items: center; gap: 15px; color: #cbd5e1; } .browser-toolbar i { cursor: pointer; transition: color 0.2s; } .browser-toolbar i:hover { color: #fff; }
.browser-address-container { flex: 1; background: #1e293b; border: 1px solid #475569; border-radius: 20px; display: flex; align-items: center; padding: 0 15px; gap: 10px; } .security-icon { color: #10b981; font-size: 12px; } .browser-address-input { flex: 1; background: transparent; border: none; color: #fff; font-size: 13px; outline: none; padding: 6px 0; }
.browser-ext-btn { background: #38bdf8; border: none; color: #0f172a; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; font-size: 12px; } .browser-ext-btn:hover { background: #0ea5e9; transform: scale(1.1); color: #fff; }
.browser-content-area { flex: 1; background: #fff; display: flex; flex-direction: column; position: relative; }
.iframe-warning { background: #fffbeb; color: #b45309; font-size: 12px; padding: 8px 15px; text-align: center; border-bottom: 1px solid #fde68a; display: flex; justify-content: center; align-items: center; gap: 10px; } .iframe-warning a { color: #d97706; font-weight: bold; cursor: pointer; text-decoration: underline; transition: 0.2s; } .iframe-warning a:hover { color: #92400e; } #browser-iframe { flex: 1; width: 100%; border: none; background: #fff; }

.taskbar { position: fixed; bottom: 0; width: 100%; height: 48px; background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%); backdrop-filter: blur(15px); display: flex; justify-content: space-between; align-items: center; padding: 0 15px; z-index: 100000; border-top: 1px solid rgba(255,255,255,0.1); } 

.start-menu-container { position: relative; }
.start-btn { color: #e95420; font-size: 24px; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: 0.2s; } 
.start-btn:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.1); }
.start-menu { position: absolute; bottom: 55px; left: 0; background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(10px); border: 1px solid #475569; border-radius: 8px; width: 260px; box-shadow: 0 5px 25px rgba(0,0,0,0.6); display: flex; flex-direction: column; padding: 10px; transform-origin: bottom left; transition: all 0.2s ease-out; z-index: 100001; }
.start-menu.hidden { transform: scale(0.9); opacity: 0; pointer-events: none; visibility: hidden; }
.start-menu-header { padding: 10px 10px 15px 10px; border-bottom: 1px solid #475569; margin-bottom: 5px; display: flex; align-items: center; gap: 15px; color: #fff; font-weight: bold; }
.start-menu-item { padding: 12px 15px; border-radius: 6px; cursor: pointer; color: #cbd5e1; display: flex; align-items: center; gap: 15px; transition: 0.2s; font-size: 14px;}
.start-menu-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.start-menu-item i { font-size: 16px; width: 20px; text-align: center; color: #38bdf8;}

.taskbar-apps { display: flex; flex: 1; justify-content: center; gap: 10px; } .app-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; font-size: 20px; color: #ccc; transition: 0.2s; position: relative; } .app-icon:hover { background: rgba(255, 255, 255, 0.1); } .app-icon.active { background: rgba(255, 255, 255, 0.2); } .app-icon.active::after { content: ''; position: absolute; bottom: 2px; width: 16px; height: 3px; background: #38bdf8; border-radius: 3px; } 

.taskbar-right { display: flex; align-items: center; gap: 20px; } 
.systray { display: flex; align-items: center; gap: 20px; color: #e2e8f0; font-size: 16px; } 
.systray i { transition: color 0.2s, transform 0.2s; }
.systray i:hover { color: #fff; transform: scale(1.1); }
.clock { text-align: right; font-size: 12px; }

/* === TEMA TERANG === */
body.light-theme { background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 50%, #eff6ff 100%); color: #334155; }
.light-theme .login-screen { background: rgba(255, 255, 255, 0.9); }
.light-theme .theme-switch-login { color: #64748b; background: rgba(0,0,0,0.05); } .light-theme .theme-switch-login:hover { color: #1e293b; background: rgba(0,0,0,0.1); }
.light-theme .avatar-os { background: #f1f5f9; box-shadow: 0 0 20px rgba(233, 84, 32, 0.2); }
.light-theme .login-box h2 { color: #1e293b; } .light-theme .login-box p { color: #64748b; font-weight: 500; }
.light-theme .toast-overlay { background: rgba(255, 255, 255, 0.7); }
.light-theme .toast-box { background: #ffffff; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 1px solid #cbd5e1; color: #1e293b; }
.light-theme .toast-icon { color: #0ea5e9; } .light-theme .toast-box p { color: #475569; }
.light-theme .btn-primary { background: #0ea5e9; color: #ffffff; } .light-theme .btn-primary:hover { background: #0284c7; } .light-theme .btn-secondary { background: #e2e8f0; color: #334155; } .light-theme .btn-secondary:hover { background: #cbd5e1; }

.light-theme .context-menu { background: rgba(255, 255, 255, 0.95); border-color: #cbd5e1; box-shadow: 0 5px 25px rgba(0,0,0,0.15); }
.light-theme .context-menu-item { color: #475569; }
.light-theme .context-menu-item:hover { background: rgba(0,0,0,0.05); color: #0ea5e9; }
.light-theme .context-menu-divider { background: #e2e8f0; }

.light-theme .icon:hover { background: rgba(255, 255, 255, 0.5); box-shadow: 0 4px 10px rgba(0,0,0,0.05); } 
.light-theme .icon.portfolio-item::before { background-color: #0ea5e9; box-shadow: 0 0 8px rgba(14, 165, 233, 0.5); }
.light-theme .icon.portfolio-item:hover::before { background-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
.light-theme .icon-img { filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15)); } 
.light-theme .icon span { color: #1e293b; text-shadow: 0 1px 3px rgba(255,255,255,0.9); font-weight: 600; }
.light-theme .terminal-icon { color: #10b981; } .light-theme .explorer-icon-color { color: #f59e0b; } .light-theme .ciremai-color { color: #d97706; } .light-theme .web-icon { color: #0ea5e9; } .light-theme .ai-color { color: #9333ea; } .light-theme .cvats-color { color: #ef4444; } .light-theme .music-color { color: #db2777; } .light-theme .browser-icon-color { color: #0ea5e9; }

.light-theme .window { background-color: #ffffff; box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05); }
.light-theme .title-bar { background: linear-gradient(to right, #f1f5f9, #e2e8f0); border-bottom: 1px solid #cbd5e1; }
.light-theme .title-info { color: #334155; font-weight: 600; } 
.light-theme .ctrl-btn { color: #64748b; } .light-theme .ctrl-btn:hover { background: rgba(0, 0, 0, 0.08); color: #1e293b; }

.light-theme .terminal-content { color: #334155; background-color: #ffffff; } 
.light-theme .terminal-content::-webkit-scrollbar-track { background: #f1f5f9; } .light-theme .terminal-content::-webkit-scrollbar-thumb { background: #cbd5e1; } .light-theme .terminal-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.light-theme .prompt { color: #2563eb; } .light-theme .cursor { background-color: #334155; } .light-theme .ascii-art { color: #0ea5e9; } .light-theme .highlight-green { color: #16a34a; } .light-theme .highlight-blue { color: #0284c7; } .light-theme .highlight-yellow { color: #d97706; } .light-theme .label { color: #9333ea; } .light-theme .terminal-content a { color: #2563eb; border-bottom-color: #2563eb; } .light-theme .terminal-content a:hover { color: #1e40af; }

.light-theme .explorer-win { background-color: #ffffff; } .light-theme .explorer-toolbar { background: #f8fafc; border-bottom: 1px solid #e2e8f0; } .light-theme .file-item:hover { background: #f1f5f9; } .light-theme .file-item span { font-weight: 500; }

.light-theme .browser-title-bar { background: #f1f5f9; border-bottom: 1px solid #cbd5e1; } .light-theme .browser-title { color: #334155; } .light-theme .browser-btn { color: #64748b; } .light-theme .browser-toolbar { background: #f8fafc; border-bottom: 1px solid #cbd5e1; color: #475569; } .light-theme .browser-toolbar i:hover { color: #0ea5e9; } .light-theme .browser-address-container { background: #ffffff; border-color: #cbd5e1; } .light-theme .browser-address-container:focus-within { border-color: #0ea5e9; box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2); } .light-theme .browser-address-input { color: #334155; } .light-theme .browser-ext-btn { background: #e2e8f0; color: #475569; }

.light-theme .taskbar { background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(226, 232, 240, 0.9) 100%); border-top: 1px solid rgba(0,0,0,0.08); box-shadow: 0 -2px 10px rgba(0,0,0,0.02); }
.light-theme .start-btn:hover { background: rgba(0, 0, 0, 0.05); }
.light-theme .start-menu { background: rgba(255, 255, 255, 0.95); border-color: #cbd5e1; box-shadow: 0 5px 25px rgba(0,0,0,0.15); }
.light-theme .start-menu-header { color: #1e293b; border-bottom-color: #e2e8f0; } .light-theme .sm-subtitle { color: #64748b !important; }
.light-theme .start-menu-item { color: #475569; } .light-theme .start-menu-item:hover { background: rgba(0,0,0,0.05); color: #0ea5e9; }
.light-theme .app-icon { color: #64748b; } .light-theme .app-icon:hover { background: rgba(0, 0, 0, 0.05); color: #334155; } .light-theme .app-icon.active { background: rgba(0, 0, 0, 0.08); color: #0ea5e9; } .light-theme .app-icon.active::after { background: #0ea5e9; } 
.light-theme .systray { color: #475569; } .light-theme .systray i:hover { color: #1e293b; } .light-theme .clock { color: #334155; font-weight: 500; } .light-theme .clock:hover { background: rgba(0,0,0,0.05); }

/* Tema terang untuk Download Toast */
.light-theme #download-toast { background: rgba(255, 255, 255, 0.95); color: #1e293b; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

@media (max-width: 768px) { .window { width: 96%; height: 85vh; left: 2%; top: 10px; min-width: auto; } }