/* --- FONT & BASE --- */
@font-face { font-family: 'SF Pro Display'; src: url('fonts/SFPRODISPLAYREGULAR.otf') format('opentype'); font-weight: normal; }
@font-face { font-family: 'SF Pro Display'; src: url('fonts/SFPRODISPLAYBOLD.otf') format('opentype'); font-weight: bold; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* BASE DESKTOP FISSO (No scroll) */
body, html { width: 100%; height: 100%; background-color: #FFFFFF; font-family: 'SF Pro Display', sans-serif; overflow: hidden; color: #000000; user-select: none; -webkit-user-select: none; cursor: url('cursor-arrow.png') 0 0, default; touch-action: pan-y; }
button, input, select, textarea { font-family: inherit; }

/* CURSORI CLICK */
button, a, .desktop-icon, .list-item, .grid-item, .btn-mac, .login-help-box, .gallery-arrow, .roulette-letter, .preview-image, .grid-full-image, .preview-text, .grid-full-image-label, .login-back-button { cursor: url('cursor-pointer.png') 10 0, pointer !important; }

/* --- CLASSI PER SEQUENZA INTRO --- */
.hide-initially { opacity: 0; pointer-events: none; transform: translateY(25px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.show-element { opacity: 1 !important; pointer-events: auto !important; transform: translateY(0) !important; }
.intro-lock { overflow: hidden !important; touch-action: none !important; }

/* --- LOGIN SCREEN --- */
#login-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #8c8c8c; background-image: radial-gradient(circle at center, #a0a0a0, #555555); z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.6s ease; }
.login-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.2); margin-bottom: 15px; border: 2px solid rgba(255, 255, 255, 0.1); transform-origin: center; }

/* Animazione Avatar */
.avatar-spin { animation: avatarSpinAnim 3s forwards ease-in-out; }
@keyframes avatarSpinAnim {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    2% { transform: translate(-4px, 3px) scale(1.02) rotate(-3deg); }
    4% { transform: translate(3px, -4px) scale(1.02) rotate(4deg); }
    6% { transform: translate(-5px, -2px) scale(1.02) rotate(-2deg); }
    8% { transform: translate(4px, 5px) scale(1.02) rotate(3deg); }
    10% { transform: translate(-3px, 2px) scale(1.02) rotate(-4deg); }
    12% { transform: translate(5px, -3px) scale(1.02) rotate(2deg); }
    14% { transform: translate(-2px, -5px) scale(1.02) rotate(-3deg); }
    16% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: scale(0.25) rotate(0deg); } 
    100% { transform: scale(0.25) rotate(2160deg); } 
}

.login-name { font-size: 26px; font-weight: bold; color: #ffffff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); margin-bottom: 25px; letter-spacing: 0.5px; transition: opacity 0.2s; }
.login-controls-area { position: relative; display: flex; align-items: center; justify-content: center; width: 220px; transition: opacity 0.2s; }

/* BOTTONE INVIO ARANCIONE A SINISTRA */
.login-back-button { position: absolute; left: -45px; width: 32px; height: 32px; border-radius: 50%; background-color: #ff4500; border: none; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.1s; z-index: 10; }
.login-back-button:active { transform: scale(0.9); }
.login-back-button:hover { background-color: #e03d00; }
.login-back-button svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.login-input-container { position: relative; width: 100%; display: flex; }
.login-input { width: 100%; padding: 8px 35px 8px 15px; font-size: 15px; color: #ffffff; background-color: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; outline: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); cursor: text; }
.login-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.login-input:focus { border-color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.25); }

.login-help-box { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; background-color: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.login-help-box:hover { background-color: rgba(255, 255, 255, 0.3); }
.login-help-text { color: #fff; font-size: 13px; font-weight: bold; }
.help-popover { position: absolute; top: 35px; right: 0; background-color: rgba(255, 255, 255, 0.95); color: #333; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 15px rgba(0,0,0,0.2); white-space: nowrap; display: none; z-index: 100; animation: fadeIn 0.2s ease; }
.help-popover::after { content: ''; position: absolute; bottom: 100%; right: 5px; border-width: 5px; border-style: solid; border-color: transparent transparent rgba(255, 255, 255, 0.95) transparent; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.login-error { color: #ffcccc; font-size: 14px; font-weight: bold; margin-top: 15px; display: none; text-align: center; animation: shake 0.4s ease-in-out; }

/* --- NOME IN ALTO --- */
.main-title { 
    position: absolute; left: 50%; white-space: nowrap; z-index: 5; pointer-events: none; 
    top: 40px; transform: translateX(-50%); font-size: 80px; font-weight: bold; color: #ff4500; 
    transition: top 0.5s cubic-bezier(0.5, -0.5, 0.1, 1.2), 
                font-size 0.5s cubic-bezier(0.5, -0.5, 0.1, 1.2), 
                transform 0.5s cubic-bezier(0.5, -0.5, 0.1, 1.2);
}
.main-title.intro-center { top: 50%; transform: translate(-50%, -50%); font-size: 140px; }
.main-title span { pointer-events: auto; }
.cursor { display: inline-block; color: #ff4500; margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.roulette-letter { display: inline; transition: color 0.1s; } 

/* --- DESKTOP FISSO --- */
#desktop { width: 100%; height: 100%; position: relative; background-color: #e7e6e5; overflow: hidden; }

.desktop-icon { position: absolute; width: 110px; display: flex; flex-direction: column; align-items: center; transition: transform 0.1s; touch-action: none; z-index: 10;}
.desktop-icon:active { transform: scale(0.95); opacity: 0.7; }
.icon-emoji { font-size: 65px; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1)); }
.icon-img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1)); pointer-events: none; }
.icon-label { margin-top: 5px; font-size: 12px; font-weight: bold; color: #333; text-align: center; background: rgba(255,255,255,0.6); padding: 2px 5px; border-radius: 4px; word-wrap: break-word; max-width: 100%; text-transform: uppercase; }

#animation-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999999; display: none; background-position: center; background-size: cover; background-repeat: no-repeat; }

/* --- WIDGET ASCII 3D --- */
.ascii-window { width: 450px !important; height: 400px !important; min-width: 300px !important; min-height: 250px !important; overflow: hidden; background-color: #1a1a1a !important; }
.ascii-body { padding: 0 !important; background: #000 !important; display: flex; justify-content: center; align-items: center; overflow: hidden; position: relative; }

#ascii-3d-container { width: 100%; height: 100%; background: #000; overflow: hidden; cursor: grab; display: flex; justify-content: center; align-items: center; touch-action: none; }
#ascii-3d-container:active { cursor: grabbing; }

/* --- MAC OS WINDOWS --- */
.mac-window { position: absolute; top: 15%; left: 20%; width: 900px; height: 550px; background-color: #ececec; border-radius: 5px; padding: 0; box-shadow: 0 0 1px 0 rgba(0,0,0,.9), 0 20px 30px 0 rgba(0,0,0,.3), 0 10px 50px 0 rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease; min-width: 600px; min-height: 200px; z-index: 50; }
.mac-window-notes { background-color: transparent !important; box-shadow: 0 20px 30px 0 rgba(0,0,0,.3), 0 10px 50px 0 rgba(0,0,0,.2); }
.mac-window.minimized { height: 22px !important; min-height: 22px !important; width: 250px !important; min-width: 250px !important; transition: width 0.3s ease, height 0.3s ease; }
.mac-window.minimized .window-body, .mac-window.minimized .window-body-grid, .mac-window.minimized .finder-toolbar, .mac-window.minimized .notes-window { display: none !important; }
.mac-window:not(.minimized) .notes-fallback-title { display: none !important; }
.mac-window.minimized .notes-fallback-title { display: flex !important; }
.mac-window.maximized { top: 20px !important; left: 20px !important; width: calc(100% - 40px) !important; height: calc(100% - 40px) !important; display: flex !important; }
.mac-window.maximized .window-body, .mac-window.maximized .window-body-grid, .mac-window.maximized .notes-window { display: flex !important; }
.title-bar { position: relative; height: 22px; padding: 0 70px; border-radius: 5px 5px 0 0; box-shadow: inset 0 0 0 0 hsla(0,0%,100%,.6), inset 0 0 0 0 rgba(0,0,0,.2); background-image: linear-gradient(180deg,#e7e6e7,#d1d0d1); display: flex; align-items: center; justify-content: center; cursor: move; touch-action: none; } 
.window-controls { display: flex; position: absolute; top: 5px; left: 6px; z-index: 30; }
.btn-mac { display: block; height: 12px; width: 12px; padding: 0; border-radius: 50%; border: 1px solid; background-color: #fff; box-shadow: none; transition: background-color 50ms ease-out; margin-left: 0; }
.btn-mac + .btn-mac { margin-left: 8px; }
.btn-close { background-color: #ff5f58; border-color: #e1483f; } .btn-close:hover { background-color: #ff5049; }
.btn-minimize { background-color: #ffbe2f; border-color: #e0a028; } .btn-minimize:hover { background-color: #ffb920; }
.btn-maximize { background-color: #2ac940; border-color: #2bac2d; } .btn-maximize:hover { background-color: #27bc3c; }
.window-title { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 400; color: #423f42; font-family: 'SF Pro Display', sans-serif; letter-spacing: -.3px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;}
.finder-toolbar { height: 32px; background: #d1d0d1; padding: 8px 12px; box-shadow: 0 .5px 0 #bdbebe, 0 1px 0 #a8a7a7, inset 0 0 0 hsla(0,0%,100%,.6); display: flex; align-items: center; gap: 8px; }
.toolbar-btn { width: 37px; height: 22px; border-radius: 4px; border: none; background: linear-gradient(180deg,#f3f3f3,#e7e6e7); color: #555; display: flex; justify-content: center; align-items: center; box-shadow: none; }
.toolbar-btn:hover:not(.disabled) { background: linear-gradient(180deg,#e0e0e0,#cbcacb); }
.toolbar-btn.disabled { opacity: 0.5; cursor: not-allowed !important; }
.toolbar-text { font-size: 15px; line-height: 20px; font-weight: 500; color: #423f42; margin-left: 4px; letter-spacing: -.3px; text-transform: uppercase; }

.window-body { flex: 1; display: flex; height: calc(100% - 54px); margin: 0; background-color: #ececec; } 
.column { overflow-y: auto; overflow-x: hidden; }
.col-sidebar { width: 192px; padding: 5px 0; border-right: 1px solid #d9d9d9; background-color: #e8e8e8; }
.col-list { width: 300px; border-right: 1px solid #d9d9d9; background-color: transparent; }
.col-preview { flex-grow: 1; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background-color: transparent; }
.sidebar-item { display: flex; justify-content: space-between; align-items: center; padding: 3px 12px; font-size: 13px; font-weight: 500; color: #333; overflow: hidden; transition: background-color 0.1s; }
.sidebar-item.active { background-color: #d8d8d8; }
.folder-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; padding-right: 5px; }
.badge { color: #ededed; background-color: #b6b6b6; font-size: 11px; padding: 1px 8px 2px; border-radius: 6px/7px; text-align: center; flex-shrink: 0; min-width: 30px; }
.sidebar-item.active .badge { background-color: #fff; color: #000; }
.list-item { position: relative; width: 100%; padding: 2px 21px 1px 24px; font-size: 13px; line-height: 1.2; display: flex; align-items: center; color: #000; }
.list-item.active { background-color: #3897fe; color: white; }
.file-icon { margin-right: 8px; font-size: 14px; display: flex; align-items: center; justify-content: center; width: 14px; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; display: flex; }
.file-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none; }
.list-item.active .file-arrow { display: block; }
.preview-text { margin-top: 15px; font-size: 13px; color: #333; word-break: break-word; transition: color 0.15s; }
.preview-text:hover, .grid-full-image-label:hover { text-decoration: underline; color: #ff4500; }
.grid-full-image, .preview-image { transition: transform 0.1s; }
.grid-full-image:active, .preview-image:active { transform: scale(0.98); }

.window-body-grid { flex: 1; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 30px; padding: 30px; height: calc(100% - 54px); background-color: #ececec; overflow-y: auto; }
.grid-item { display: flex; flex-direction: column; align-items: center; width: 130px; padding: 10px; border-radius: 8px; transition: background-color 0.1s; }
.grid-item:hover { background-color: rgba(0,0,0,0.05); }
.grid-item:active { background-color: rgba(0,0,0,0.1); }
.grid-item-img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.15)); transition: transform 0.1s; }
.grid-item:active .grid-item-img { transform: scale(0.95); }
.grid-item-label { margin-top: 10px; font-size: 12px; font-weight: 500; text-align: center; word-break: break-word; color: #333; line-height: 1.2; }
.grid-full-image-wrapper { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.grid-full-image { max-width: 100%; max-height: 85%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); border-radius: 4px; }
.grid-full-image-label { margin-top: 20px; font-size: 14px; font-weight: bold; color: #333; transition: color 0.15s; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; transition: all 0.2s; z-index: 10; }
.gallery-arrow:hover:not(.disabled) { background: rgba(255, 255, 255, 0.9); transform: translateY(-50%) scale(1.05); }
.gallery-arrow.disabled { opacity: 0.3; cursor: default !important; }
.gallery-arrow-left { left: 40px; } .gallery-arrow-right { right: 40px; }
.gallery-arrow svg { width: 26px; height: 26px; fill: #333; pointer-events: none; }

/* --- NOTES / CONTACTS APP --- */
.notes-window { display: flex; height: 100%; width: 100%; border-radius: 5px; overflow: hidden; position: relative; background: #ececec; }
.notes-drag-handle { position: absolute; top: 0; left: 60px; right: 0; height: 35px; z-index: 10; cursor: move; }
.notes-sidebar { width: 160px; border-right: 1px solid #d9d9d9; padding-top: 10px; display: flex; flex-direction: column; position: relative; background-color: rgba(232, 232, 232, 0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.notes-sidebar-header { font-size: 11px; color: #888; font-weight: bold; padding-left: 15px; margin-bottom: 5px; margin-top: 30px; text-transform: uppercase; }
.notes-sidebar-item { padding: 4px 15px; font-size: 13px; color: #333; }
.notes-sidebar-item.active { background-color: rgba(0,0,0,0.08); font-weight: bold; } 
.notes-list { width: 250px; background-color: transparent; border-right: 1px solid #d9d9d9; display: flex; flex-direction: column; position: relative; }
.notes-search-bar { padding: 10px; border-bottom: 1px solid #eaeaea; position: relative; z-index: 20; }
.notes-search-input { width: 100%; padding: 4px 8px; border-radius: 4px; border: 1px solid #ccc; font-size: 12px; outline: none; }
.notes-list-items { flex: 1; overflow-y: auto; }
.notes-list-item { padding: 10px 15px; border-bottom: 1px solid #eaeaea; }
.notes-list-item.active { background-color: #fcee9d; } 
.notes-list-title { font-weight: bold; font-size: 13px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #000; }
.notes-list-time { font-size: 11px; color: #888; }
.notes-editor { flex: 1; display: flex; flex-direction: column; background: transparent; position: relative; }
.notes-editor-header { height: 45px; display: flex; justify-content: center; align-items: center; font-size: 12px; color: #888; }
.notes-editor-body { flex: 1; padding: 0 40px 40px; outline: none; overflow-y: auto; font-size: 14px; color: #333; line-height: 1.6; position: relative; z-index: 20; cursor: text; }

/* --- MOOD E MIRROR --- */
.widget-window { width: 320px !important; height: 320px !important; min-width: 320px !important; min-height: 320px !important; }
.mood-body { flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 20px; background: #ececec; height: calc(100% - 22px); }
.mood-btn { background: #f8f8f8; border: 1px solid #ddd; border-radius: 50%; width: 45px; height: 45px; transition: transform 0.2s; display: flex; align-items: center; justify-content: center; }
.mood-btn:hover { transform: scale(1.15); background: #eee; }
.mood-icon { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1)); pointer-events: none; }
.mood-message { display: none; text-align: center; font-size: 16px; color: #ff4500; font-weight: bold; line-height: 1.4; padding: 0 10px; }
.flying-emoji { position: absolute; pointer-events: none; z-index: 100; animation: flyToCenterAndFade 2.2s forwards cubic-bezier(0.25, 1, 0.5, 1); }
@keyframes flyToCenterAndFade { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 40%, 70% { transform: translate(var(--tx), var(--ty)) scale(3.5); opacity: 1; } 100% { transform: translate(var(--tx), calc(var(--ty) - 80px)) scale(0.5); opacity: 0; } }

.mirror-body { background-color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: calc(100% - 22px); }
.mirror-video { width: 80%; max-width: 600px; border-radius: 8px; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.8); transform: scaleX(-1); }
.mirror-text { color: #ff4500; font-size: 18px; margin-top: 25px; text-align: center; font-weight: bold; }

/* --- FOOTER & CLOCK DESKTOP --- */
.footer { position: fixed; bottom: 40px; left: 40px; right: 40px; display: flex; justify-content: flex-start; z-index: 10; pointer-events: none; }
#dynamic-time-zone-footer { font-size: 16px; font-weight: bold; color: #000; }
.mobile-time-box { display: none; }

/* ========================================================
   MEDIA QUERIES - OTTIMIZZAZIONE MOBILE & TABLET 
   ======================================================== */
@media screen and (max-width: 768px) {
    .title-bar, .desktop-icon { touch-action: pan-y; }

    /* Desktop scrollabile Mobile */
    #desktop {
        display: flex !important; flex-wrap: wrap !important; align-content: flex-start !important;
        justify-content: center !important; overflow-y: auto !important; overflow-x: hidden !important;
        padding-bottom: 80px; padding-top: 170px !important; gap: 20px; 
    }

    /* --- TITOLO GRANDE (Mobile) - Responsive per non uscire dallo schermo --- */
    .main-title { position: absolute; left: 50%; transform: translateX(-50%); z-index: 5; width: 90vw; text-align: center; white-space: normal; line-height: 1; }
    .main-title.intro-center { top: 50%; transform: translate(-50%, -50%); font-size: 12vw; }
    .main-title:not(.intro-center) { top: 50px; font-size: 10vw; }

    /* Finestre a card centrali */
    .mac-window { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 95% !important; min-width: 95% !important; flex: 0 0 95% !important; height: 400px !important; min-height: unset !important; margin: 0 auto !important; order: 1; transform: none !important; }
    .mac-window.minimized { width: 95% !important; min-width: 95% !important; flex: 0 0 95% !important; height: 40px !important; min-height: 40px !important; margin: 5px auto !important; order: 2; overflow: hidden; opacity: 0.9; }
    
    .ascii-window { height: 350px !important; margin: 0 auto !important; }
    .mac-window-notes { height: 550px !important; }

    /* --- APP GRID --- */
    .desktop-icon { position: relative !important; top: auto !important; left: auto !important; width: 28% !important; flex: 0 0 28% !important; margin: 10px 1% !important; transform: none !important; }
    .desktop-icon .icon-label { font-size: 10px; padding: 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%; }
    #icon-finder { order: 10 !important; } #icon-contacts { order: 11 !important; } #icon-notes { order: 12 !important; }
    #icon-projects { order: 13 !important; } #icon-clothing { order: 14 !important; } #icon-mirror { order: 15 !important; }

    /* Orologio Mobile */
    .mobile-time-box { display: flex; position: fixed; bottom: 15px; left: 0; background-color: #ff4500; color: white; font-family: 'SF Pro Display', sans-serif; font-weight: bold; font-size: 20px; padding: 8px 15px; z-index: 9999; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
    .footer { display: none !important; }

    /* Layout Finder Mobile */
    .window-body { flex-direction: column; }
    .col-sidebar { width: 100%; height: 55px; min-height: 55px; flex-shrink: 0; display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: none; border-bottom: 1px solid #d9d9d9; padding: 0 10px; align-items: center; background-color: #f9f9f9; -webkit-overflow-scrolling: touch; }
    .col-sidebar::-webkit-scrollbar { display: none; } .col-sidebar { -ms-overflow-style: none; scrollbar-width: none; }
    .sidebar-item { padding: 6px 14px; margin-right: 8px; border-radius: 15px; flex-shrink: 0; background-color: #fff; border: 1px solid #ccc; font-weight: 600; font-size: 12px; }
    .sidebar-item.active { background-color: #000; border-color: #000; color: #fff; }
    .sidebar-item .badge { display: none; }
    .col-list { width: 100%; height: 40%; flex-shrink: 0; border-right: none; border-bottom: 1px solid #d9d9d9; overflow-y: auto; }
    .list-item { padding: 12px 15px; font-size: 13px; }
    .col-preview { width: 100%; flex-grow: 1; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .preview-image { max-width: 100%; max-height: 90%; object-fit: contain; }

    /* Layout Note Mobile */
    .notes-window { flex-direction: column; }
    .notes-sidebar { width: 100%; height: 55px; min-height: 55px; border-right: none; border-bottom: 1px solid #d9d9d9; flex-direction: row; padding: 0 10px; padding-left: 75px !important; align-items: center; overflow-x: auto; background-color: #f9f9f9; }
    .notes-sidebar-header { display: none; } 
    .notes-sidebar-item { padding: 6px 14px; margin-right: 8px; border-radius: 15px; background: #fff; border: 1px solid #ccc; font-weight: 600; font-size: 12px; white-space: nowrap; flex-shrink: 0;}
    .notes-sidebar-item.active { background: #000; color: #fff; border-color: #000; }
    .notes-list { width: 100%; height: 35%; border-right: none; border-bottom: 1px solid #d9d9d9; }
    .notes-editor { width: 100%; height: 65%; padding: 15px; font-size: 14px; }
    .notes-drag-handle { display: none; } 

    .window-body-grid { justify-content: space-evenly; gap: 10px; padding: 10px; }
    .grid-item { width: 45%; padding: 5px; } .grid-item-img { width: 100%; height: auto; aspect-ratio: 1; }
    .widget-window, .mirror-window { width: 95% !important; min-width: 95% !important; height: auto !important; aspect-ratio: 1; margin: 0 auto !important;}

    /* --- LOGIN MOBILE --- */
    .login-avatar { width: 110px; height: 110px; } .login-name { font-size: 22px; }
    .login-controls-area { width: 100%; padding: 0 40px; } 
    .login-back-button { position: relative; left: 0; margin-right: 15px; flex-shrink: 0; }
    .help-popover { right: -10px !important; left: auto !important; transform: none !important; top: 40px !important; width: 180px !important; white-space: normal !important; text-align: center; }
    .help-popover::after { right: 15px !important; left: auto !important; transform: none !important; }
    
    .title-bar { cursor: default; } .btn-maximize { display: none; }
}