/* Looking Glass masaüstü kabuğu
   Pencereler kalınlığı olan cam levhalardır: ön yüz, arka yüz (not) ve dört kenar ayrı 3B yüzeylerdir.
   Konum/dönüş lg.js tarafından --px --py --z --ry --s değişkenleriyle verilir. */

:root {
    --T: 22px;                                   /* cam kalınlığı */
    --glass: rgba(100, 149, 237, .56);              /* cornflower blue #6495ED */
    --glass-strong: rgba(84, 130, 222, .90);
    --glass-line: rgba(232, 240, 255, .88);
    --ink: #0f2142;
    --ease: cubic-bezier(.2, .85, .25, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { font: 14px/1.45 "Segoe UI", Tahoma, Verdana, sans-serif; color: #19212f; background: #6f9bc4; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
/* klavye odağı: tarayıcının kutusu yerine yumuşak hale; fare tıklamasında halka çıkmaz */
:focus { outline: 0; }
:focus-visible { outline: 2px solid rgba(225, 236, 255, .95); outline-offset: 2px; border-radius: 4px; }
.lg-ic { width: 100%; height: 100%; display: block; }
.lg-ic--sm { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- gökyüzü / panorama ---------- */
#lg-sky { position: fixed; inset: 0; overflow: hidden; }
#lg-sky-img {
    position: absolute; inset: -14px -28px;
    transform: translate(var(--mx, 0), var(--my, 0));
    background-repeat: repeat-x; background-size: auto 100%;
    background-position: 50% 0;
}
/* canlı fütüristik arka plan: lg-sky.js canvas'a çizer; küçük resim için CSS yaklaşığı */
#lg-sky-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
body.lg-live #lg-sky-fx { display: block; }
body.lg-live #lg-sky-img { background: #030714; }
.lg-bgapp__card canvas { display: block; width: 100%; height: 100%; }

/* ---------- 3B sahne ---------- */
#lg-scene { position: fixed; inset: 0; z-index: 10; perspective: 1500px; perspective-origin: 50% 42%; overflow: hidden; }
/* world z=0 düzlemindedir; fareyi yakalarsa geriye çekilmiş (z<0) pencerelere tıklanamaz */
#lg-world { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
#lg-world > .lgw { pointer-events: auto; }
#lg-world > .lgw.is-closing { pointer-events: none; }
#lg-world.is-spinning { animation: lg-spin 1.8s cubic-bezier(.45, .05, .3, 1); }
@keyframes lg-spin {
    0% { transform: translateZ(0) rotateY(0); }
    50% { transform: translateZ(-900px) rotateY(180deg); }
    100% { transform: translateZ(0) rotateY(360deg); }
}

/* ---------- pencere ---------- */
.lgw {
    position: absolute; transform-style: preserve-3d;
    transform: translate3d(var(--px, 0px), var(--py, 0px), var(--z, 0px)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
    transition: transform .7s var(--ease), opacity .45s ease, left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
    will-change: transform;
}
.lgw.is-dragging { transition: none; }
.lgw.is-opening { transform: translate3d(var(--px, 0px), var(--py, 0px), -700px) rotateY(110deg) scale(.55); opacity: 0 !important; }
.lgw.is-closing { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + 45vh), -900px) rotateY(var(--ry, 0deg)) scale(.12); opacity: 0 !important; pointer-events: none; }
.lgw.is-parked, .lg-tilt .lgw.is-tilted { cursor: pointer; }
.lgw.is-parked:hover .lgw__face, .lgw.is-parked:hover .lgw__side { filter: brightness(1.12); }

.lgw__face {
    position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--glass-line); border-radius: 5px;
    background: linear-gradient(160deg, rgba(235, 242, 255, .35), rgba(255, 255, 255, 0) 38%), var(--glass);
    box-shadow: inset 0 0 0 1px rgba(26, 57, 114, .25), 0 18px 50px rgba(0, 0, 0, .35);
}
.lgw__front { transform: translateZ(calc(var(--T) / 2)); }
.lgw__back { transform: rotateY(180deg) translateZ(calc(var(--T) / 2)); backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(26, 57, 114, .25); }
/* arka yüz öndeyken ön yüz camın ardından ters ve soluk görünür */
.lgw.is-flipped .lgw__front { pointer-events: none; }
.lgw.is-flipped .lgw__front .lgw__content { opacity: .55; }
.lgw:not(.is-flipped) .lgw__back { pointer-events: none; }

.lgw__side { position: absolute; border: 1px solid var(--glass-line); background: linear-gradient(90deg, rgba(180, 203, 245, .92), var(--glass-strong)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lgw__side--l { left: 0; top: 0; bottom: 0; width: var(--T); transform: translateX(-50%) rotateY(-90deg); }
.lgw__side--r { right: 0; top: 0; bottom: 0; width: var(--T); transform: translateX(50%) rotateY(90deg); }
.lgw__side--t { top: 0; left: 0; right: 0; height: var(--T); transform: translateY(-50%) rotateX(90deg); }
.lgw__side--b { bottom: 0; left: 0; right: 0; height: var(--T); transform: translateY(50%) rotateX(-90deg); }
.lgw__side span { writing-mode: vertical-rl; white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #fff; text-shadow: 0 1px 2px rgba(1, 21, 59, .85); }

.lgw__bar { flex: 0 0 34px; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 9px; cursor: grab; color: var(--ink); touch-action: none; transition: background .3s, color .3s; }
/* etkin pencere: dolu cornflower başlık + beyaz yazı; arka pencerelerde başlık cam gibi soluk kalır */
.lgw.is-active .lgw__front .lgw__bar { color: #fff; background: linear-gradient(rgba(108, 152, 236, .96), rgba(66, 108, 200, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(15, 40, 100, .35); }
.lgw.is-active .lgw__front .lgw__title { text-shadow: 0 1px 2px rgba(8, 24, 70, .75); }
.lgw.is-active .lgw__front .lgw__btn { color: #fff; opacity: .88; }
.lgw.is-active .lgw__face { border-color: #fff; box-shadow: inset 0 0 0 1px rgba(26, 57, 114, .25), 0 0 0 1px rgba(160, 195, 255, .35), 0 22px 60px rgba(0, 0, 0, .5); }
.lgw.is-dragging .lgw__bar { cursor: grabbing; }
.lgw__ico { flex: 0 0 20px; width: 20px; height: 20px; }
.lgw__title { flex: 1; font-size: 14.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.lgw__btn { flex: 0 0 25px; width: 25px; height: 25px; padding: 5px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink); opacity: .7; }
.lgw__btn:hover { opacity: 1; background: rgba(255, 255, 255, .55); border-color: rgba(26, 57, 114, .4); }
.lgw__btn--x:hover { background: #c8443a; color: #fff; border-color: #8e2a22; }

.lgw__content { position: relative; flex: 1; margin: 0 5px 5px; overflow: auto; border: 1px solid rgba(26, 57, 114, .4); border-radius: 3px; background: rgba(252, 253, 250, .95); user-select: text; }
.lgw:not(.is-active) .lgw__content { background: rgba(244, 247, 253, .975); }
/* tam ekran */
.lgw__i-restore, .lgw.is-max .lgw__i-max { display: none; }
.lgw.is-max .lgw__i-restore { display: block; }
.lgw.is-max .lgw__grip { display: none; }
/* tam ekranda sağ üstteki levhalar gizlendiği için başlık düğmeleri köşeye kadar gidebilir */
.lgw.is-max .lgw__bar { cursor: default; }
.lgw__loading { padding: 24px; color: #525e73; }
.lgw__grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
    background: linear-gradient(135deg, transparent 50%, rgba(26, 57, 114, .55) 50%, rgba(26, 57, 114, .55) 58%, transparent 58%, transparent 70%, rgba(26, 57, 114, .55) 70%, rgba(26, 57, 114, .55) 78%, transparent 78%); }

.lgw__back .lgw__bar { background: rgba(98, 92, 190, .55); color: #fff; }
.lgw__back .lgw__title { text-shadow: 0 1px 2px rgba(0, 0, 40, .6); }
.lgw__back .lgw__btn { color: #fff; }
.lgw__memo { flex: 1; margin: 0 5px 5px; padding: 12px 14px; resize: none; border: 1px solid rgba(150, 140, 40, .5); border-radius: 3px; outline: 0;
    background: rgba(246, 238, 120, .80); color: #2b2608; font: 600 15px/1.5 Georgia, "Times New Roman", serif; }
.lgw__memo::placeholder { color: rgba(60, 55, 10, .55); }

/* ---------- sağ üst köşe ---------- */
#lg-topright { position: fixed; top: 14px; right: 22px; z-index: 4000; display: flex; flex-direction: column; align-items: stretch; gap: 12px; pointer-events: none; }

/* ---------- görev çubuğu: perspektifli cam raf ---------- */
#lg-dock { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: 5000; perspective: 520px; perspective-origin: 50% -60%; pointer-events: none; }
.lg-dock__shelf { position: absolute; left: 3%; right: 3%; bottom: 10px; height: 120px; transform-origin: 50% 100%; transform: rotateX(70deg);
    border: 3px solid var(--glass-line); border-radius: 4px;
    background: linear-gradient(rgba(170, 200, 255, .22), rgba(100, 149, 237, .50) 55%, rgba(74, 120, 214, .82));
    box-shadow: 0 6px 0 rgba(58, 98, 190, .85), 0 26px 40px rgba(0, 0, 0, .45), inset 0 0 60px rgba(200, 222, 255, .18); }
.lg-dock__row { position: absolute; left: 7%; right: 7%; bottom: 30px; display: flex; align-items: flex-end; gap: 18px; pointer-events: none; }
/* varsayılan uygulama başlatıcıları: zemindeki Menü düğmesinin sağında dururlar */
.lg-dock__row > * { pointer-events: auto; }
.lg-dock__tasks { flex: 1; display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; min-height: 60px; }

.lg-launch { width: 42px; height: 42px; padding: 0; border: 0; background: transparent; transform-origin: 50% 100%; transition: transform .2s var(--ease), filter .2s;
    filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .45)); }
.lg-launch:hover { transform: translateY(-6px) scale(1.22); filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .4)) brightness(1.1); }
/* rafın ön köşeleri: solda ayna (pencereleri eğ ve seç), sağda tüm pencereleri kapat bayrağı */
/* ayna: sapının ucu rafın sol ön köşesinin hemen içinde, beyaz ön çizginin arkasında */
/* konumları lg.js placeCornerIcons() verir (rafın arka köşeleri); arkada oldukları için biraz küçükler */
#lg-logo { position: absolute; left: 12%; bottom: 74px; width: 32px; height: 32px; pointer-events: auto; }
.lg-tilt #lg-logo { filter: drop-shadow(0 0 10px #fff) brightness(1.15); }
/* bayrak: direğinin dibi rafın sağ ön köşesinin hemen içinde, beyaz ön çizginin arkasında (aynanın simetriği) */
#lg-exit { position: absolute; right: 12%; bottom: 74px; width: 32px; height: 32px; pointer-events: auto; }

/* saat ve tarih: sağ üst köşede süzülen, hafifçe içe dönük cam levha */
#lg-datetime { perspective: 700px; animation: lg-float-slab 7s ease-in-out infinite; }
.lg-datetime__slab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 214px; padding: 11px 20px 12px;
    transform: rotateY(-16deg); transform-origin: 100% 50%; text-align: center; white-space: nowrap;
    border: 1px solid var(--glass-line); border-right: 7px solid var(--glass-strong); border-radius: 5px;
    /* açık renkli (tam ekran) pencerelerin üstünde de okunsun diye pencere camından daha opak */
    background: linear-gradient(160deg, rgba(235, 242, 255, .30), rgba(255, 255, 255, 0) 45%), rgba(72, 116, 208, .90);
    box-shadow: inset 0 0 0 1px rgba(30, 60, 130, .3), 0 14px 34px rgba(0, 0, 0, .4);
    color: #fff; text-shadow: 0 1px 3px rgba(8, 24, 70, .9); }
#lg-clock { font: 700 30px/1 Consolas, "Courier New", monospace; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
#lg-date { font: 600 14px/1 "Segoe UI", Tahoma, sans-serif; letter-spacing: .4px; color: rgba(235, 243, 255, .95); }
@keyframes lg-float-slab { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.lg-task { position: relative; padding: 0; border: 0; background: transparent; transform-origin: 50% 100%; transition: transform .35s var(--ease), opacity .35s; }
.lg-task.is-closing { transform: scale(0); opacity: 0; }
.lg-task:hover { transform: translateY(-8px) scale(1.15); }
.lg-task__slab { display: block; width: 50px; height: 60px; padding: 12px 8px 8px; transform: perspective(260px) rotateY(-26deg);
    border: 1px solid var(--glass-line); border-right-width: 5px; border-radius: 3px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(198, 213, 242, .8));
    box-shadow: inset 0 9px 0 var(--glass-strong), 4px 8px 8px rgba(0, 0, 0, .4); }
.lg-task.is-active .lg-task__slab { box-shadow: inset 0 9px 0 #2c55a2, 0 0 14px 3px rgba(235, 242, 255, .95); }
.lg-task__name { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 2px 8px; border-radius: 3px; white-space: nowrap;
    background: rgba(13, 28, 57, .85); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lg-task:hover .lg-task__name { opacity: 1; }

/* ---------- pencere içi uygulama stilleri ---------- */
.lg-app--pad { padding: 16px 22px; }
.lg-app h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: .2px; color: #123067; }
.lg-bgapp { height: 100%; display: grid; grid-template-columns: 44px 1fr 44px; grid-template-rows: 1fr auto; align-items: center; padding: 10px; background: linear-gradient(#1a263c, #0a101a); }
.lg-bgapp__nav { width: 40px; height: 40px; padding: 8px; border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass-strong); color: #fff; }
.lg-bgapp__nav:hover { background: #2c55a2; }
.lg-bgapp__stage { height: 100%; min-height: 170px; perspective: 900px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lg-bgapp__ring { position: relative; width: 200px; height: 120px; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.lg-bgapp__card { position: absolute; inset: 0; padding: 0; border: 2px solid var(--glass-line); border-radius: 4px; background-color: #222; background-size: cover !important; background-position: center; overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .6); -webkit-box-reflect: below 4px linear-gradient(transparent 60%, rgba(0, 0, 0, .25)); }
.lg-bgapp__name { grid-column: 1 / -1; padding: 8px 0 2px; text-align: center; color: #d3e0f8; font-weight: 600; }

.lg-error { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.lg-error a { color: #d3e0f8; }

/* sürükleme/park sırasında iframe fareyi yutmasın */
.lgw.is-dragging iframe, .lgw:not(.is-active) iframe { pointer-events: none; }

/* ---------- Başlat menüsü: raftan doğrulan cam panel ---------- */
/* Başlat düğmesi: köşedeki aynadan biraz içeride, raf bandının dikey ortasında */
#lg-menu { position: fixed; left: 6%; bottom: 108px; z-index: 4500; width: 330px; perspective: 1100px; perspective-origin: 50% 100%; pointer-events: none; }
.lg-menu__panel { display: flex; flex-direction: column; max-height: calc(100vh - 140px); padding: 0 0 6px; overflow: hidden;
    transform-origin: 50% 100%; transform: rotateX(-88deg) translateY(24px); opacity: 0;
    transition: transform .5s var(--ease), opacity .3s ease;
    border: 1px solid var(--glass-line); border-left: 7px solid var(--glass-strong); border-radius: 6px;
    background: linear-gradient(160deg, rgba(235, 242, 255, .30), rgba(255, 255, 255, 0) 40%), rgba(52, 90, 180, .95);
    box-shadow: inset 0 0 0 1px rgba(30, 60, 130, .3), 0 24px 60px rgba(0, 0, 0, .55); color: #fff; }
#lg-menu.is-open { pointer-events: auto; }
#lg-menu.is-open .lg-menu__panel { transform: rotateX(0deg) rotateY(7deg); opacity: 1; }
.lg-menu__search { margin: 0 12px 8px; padding: 7px 12px; border: 1px solid var(--glass-line); border-radius: 16px; outline: 0; font: inherit; color: #0f2142; background: rgba(250, 252, 255, .94); }
.lg-menu__search:focus { box-shadow: 0 0 0 3px rgba(225, 236, 255, .45); }
.lg-menu__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px; }
.lg-menu__cat { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(225, 236, 255, .75); }
.lg-menu__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #fff; text-align: left;
    transition: transform .18s var(--ease), background .15s; }
.lg-menu__item .lg-ic { flex: 0 0 28px; width: 28px; height: 28px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .4)); }
.lg-menu__item:hover, .lg-menu__item:focus-visible { outline: 0; background: rgba(255, 255, 255, .20); border-color: var(--glass-line); transform: translateX(6px); }
.lg-menu__item[hidden], .lg-menu__group[hidden] { display: none; }
.lg-menu__empty { padding: 18px 12px; color: rgba(225, 236, 255, .8); }
.lg-menu__foot { display: flex; gap: 6px; margin: 6px 8px 0; padding-top: 6px; border-top: 1px solid rgba(232, 240, 255, .35); }
.lg-menu__foot button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #fff; font-size: 13px; }
.lg-menu__foot button:hover { background: rgba(255, 255, 255, .20); border-color: var(--glass-line); }
.lg-menu__foot .lg-ic { width: 20px; height: 20px; }

/* ---------- Başlat düğmesi: rafın zeminine boyalı dört cam ----------
   Düğme .lg-dock__shelf'in içindedir; raf rotateX ile yattığı için kare ikon ekranda basık bir eşkenar dörtgen gibi görünür. */
/* raf yattığı ve öne doğru genişlediği için ikon dar ve kısa tutulur; rafın derinliğinde (120px) ortalıdır */
#lg-start { position: absolute; left: 22px; bottom: 12px; width: 84px; height: 78px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; pointer-events: auto; }
.lg-start__ico { display: block; flex: 0 0 46px; width: 60px; height: 46px; }
.lg-panes { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(190, 215, 255, .85)); transition: filter .25s; }
/* ölçü sabit: üzerine gelince / menü açıkken yalnızca parlar, büyümez ve camlar oynamaz */
#lg-start:hover .lg-panes { filter: drop-shadow(0 0 10px rgba(225, 236, 255, 1)) brightness(1.1); }
#lg-start.is-on .lg-panes { filter: drop-shadow(0 0 16px #fff) brightness(1.22); }

/* ---------- Başlat menüsü: kullanıcı alanı ve giriş formu ---------- */
.lg-menu__user { padding: 12px 12px 10px; margin-bottom: 8px; border-bottom: 1px solid rgba(232, 240, 255, .35); background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); }
.lg-user__row { display: flex; align-items: center; gap: 10px; }
.lg-user__avatar { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
    border: 2px solid var(--glass-line); background: radial-gradient(circle at 35% 30%, #cfe0ff, #6495ed 55%, #1b3a78); font-size: 19px; font-weight: 700; text-shadow: 0 1px 2px rgba(8, 24, 70, .8); }
.lg-user__avatar--guest { background: rgba(255, 255, 255, .16); color: rgba(235, 243, 255, .9); padding: 8px; }
.lg-user__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; text-shadow: 0 1px 3px rgba(8, 24, 70, .9); }
.lg-user__who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-user__who small { font-size: 12px; color: rgba(225, 236, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-user__btn { flex: 0 0 auto; padding: 5px 12px; border: 1px solid var(--glass-line); border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 600; }
.lg-user__btn:hover { background: rgba(255, 255, 255, .32); }
.lg-login { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.lg-login[hidden] { display: none; }
.lg-login input[type=text], .lg-login input[type=password] { padding: 7px 12px; border: 1px solid var(--glass-line); border-radius: 5px; outline: 0; font: inherit; color: #0f2142; background: rgba(250, 252, 255, .95); }
.lg-login input:focus { box-shadow: 0 0 0 3px rgba(225, 236, 255, .45); }
.lg-login__note { margin: 0; font-size: 12.5px; color: rgba(235, 243, 255, .9); }
.lg-login__remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(235, 243, 255, .92); }
.lg-login__error { padding: 6px 10px; border-radius: 5px; border: 1px solid #ffb3a8; background: rgba(170, 40, 30, .78); font-size: 13px; }
.lg-login__submit { padding: 7px 12px; border: 1px solid var(--glass-line); border-radius: 5px; background: linear-gradient(#f4f8ff, #bcd3ff); color: #0f2142; font-weight: 700; }
.lg-login__submit:hover { background: linear-gradient(#fff, #d6e4ff); }
.lg-login__submit:disabled, .lg-user__btn:disabled { opacity: .55; cursor: wait; }

/* ==========================================================================
   Pencere içi arayüz seti — kabuğu kullanan tüm projeler aynı görünsün diye.
   Kısmi görünümlerde: <div class="lg-app lg-app--pad"> ... </div>
   ========================================================================== */
.lg-app { color: #1a2740; font-size: 14px; }
.lgw__content { scrollbar-width: thin; scrollbar-color: #8fb0ee #e6edfa; }
.lgw__content ::-webkit-scrollbar, .lgw__content::-webkit-scrollbar, .lg-menu__list::-webkit-scrollbar { width: 10px; height: 10px; }
.lgw__content ::-webkit-scrollbar-track, .lgw__content::-webkit-scrollbar-track { background: #e6edfa; }
.lgw__content ::-webkit-scrollbar-thumb, .lgw__content::-webkit-scrollbar-thumb { background: #8fb0ee; border: 2px solid #e6edfa; border-radius: 6px; }
.lgw__content ::-webkit-scrollbar-thumb:hover, .lgw__content::-webkit-scrollbar-thumb:hover { background: #6495ed; }
.lg-menu__list { scrollbar-width: thin; scrollbar-color: rgba(225, 236, 255, .6) transparent; }
.lg-menu__list::-webkit-scrollbar-thumb { background: rgba(225, 236, 255, .55); border-radius: 6px; }

.lg-toolbar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: linear-gradient(#f3f7ff, #dde8fb); border-bottom: 1px solid #b9cdf3; }
.lg-toolbar__spacer { flex: 1; }

.lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 14px; border: 1px solid #9db6e6; border-radius: 5px;
    background: linear-gradient(#ffffff, #e4ecfb); color: #1a2f5c; font-weight: 600; line-height: 1.2; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 1px 2px rgba(20, 50, 110, .15); transition: background .15s, box-shadow .15s, transform .05s; }
.lg-btn:hover { background: linear-gradient(#ffffff, #d3e1fa); border-color: #6495ed; }
.lg-btn:active { transform: translateY(1px); box-shadow: none; }
.lg-btn:disabled { opacity: .55; cursor: not-allowed; }
.lg-btn--primary { border-color: #3d68c0; background: linear-gradient(#7aa5f2, #4a7ad8); color: #fff; text-shadow: 0 1px 1px rgba(10, 30, 80, .5); }
.lg-btn--primary:hover { background: linear-gradient(#8bb2f6, #3f6fd0); border-color: #2c54a8; }
.lg-btn--danger { border-color: #b3392f; background: linear-gradient(#e8665b, #c8443a); color: #fff; text-shadow: 0 1px 1px rgba(80, 10, 10, .5); }
.lg-btn--danger:hover { background: linear-gradient(#ee766c, #b93a31); }
.lg-btn--sm { padding: 3px 9px; font-size: 12.5px; }

.lg-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.lg-field > label, .lg-label { font-size: 12.5px; font-weight: 600; color: #3a4f7a; }
.lg-input, .lg-select, .lg-textarea { width: 100%; padding: 7px 10px; border: 1px solid #a9bfe9; border-radius: 5px; background: #fff; color: #1a2740; font: inherit; transition: border-color .15s, box-shadow .15s; }
.lg-input:focus, .lg-select:focus, .lg-textarea:focus { outline: 0; border-color: #6495ed; box-shadow: 0 0 0 3px rgba(100, 149, 237, .28); }
.lg-input[readonly], .lg-input:disabled { background: #eef3fc; color: #5b6c8f; }
.lg-textarea { min-height: 90px; resize: vertical; }
.lg-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.lg-hint { font-size: 12px; color: #6a7a9b; }

.lg-grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lg-grid th { position: sticky; top: 0; padding: 8px 10px; text-align: left; font-weight: 700; color: #1a2f5c; background: linear-gradient(#eef4ff, #d6e3fb); border-bottom: 2px solid #9db6e6; white-space: nowrap; }
.lg-grid td { padding: 7px 10px; border-bottom: 1px solid #e1e9f8; }
.lg-grid tbody tr:nth-child(even) { background: #f6f9ff; }
.lg-grid tbody tr:hover { background: #e3edff; }
.lg-grid .is-num { text-align: right; font-variant-numeric: tabular-nums; }

.lg-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: #dbe7ff; color: #1b3a78; }
.lg-badge--ok { background: #d9f2e0; color: #1f6b3a; }
.lg-badge--warn { background: #fff0c9; color: #8a5a00; }
.lg-badge--err { background: #fde0dd; color: #a02b22; }

.lg-alert { padding: 9px 12px; margin-bottom: 12px; border: 1px solid #9db6e6; border-left-width: 4px; border-radius: 5px; background: #eef4ff; color: #1a2f5c; }
.lg-alert--ok { border-color: #7cc596; background: #ecf9f0; color: #1f6b3a; }
.lg-alert--err { border-color: #e39a93; background: #fdeeed; color: #a02b22; }

.lg-card { padding: 14px 16px; border: 1px solid #c6d6f4; border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgba(20, 50, 110, .08); }
/* minyatür kabı rafın üstünü boydan boya kaplar: zemindeki Başlat düğmesine tıklamayı kesmesin */
.lg-dock__row > .lg-dock__tasks { pointer-events: none; }
.lg-task { pointer-events: auto; }
/* "Başlat" yazısı da zemine boyalı: raf yattığı için dikeyde basılır, o yüzden font büyük */
.lg-start__label { position: relative; font: 700 19px/1.15 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; letter-spacing: .6px; white-space: nowrap;
    /* raf yazıyı dikeyde ~1/3'e bastığı için scaleY ile uzatılır: harfler ekranda okunur yükseklikte kalır */
    transform-origin: 50% 0; transform: translateX(var(--lbl-x, 0px)) skewX(var(--lbl-skew, 0deg)) scaleY(1.75);
    /* parlak gümüş: neredeyse beyaz metal gradyan + koyu kontur (zeminde silik kalmasın) */
    color: #fff; background: linear-gradient(#ffffff 0%, #ffffff 45%, #d5dce6 62%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 1px #061640) drop-shadow(0 1px 1px #061640) drop-shadow(0 0 6px rgba(225, 236, 255, .75)); }
#lg-start:hover .lg-start__label, #lg-start.is-on .lg-start__label { filter: drop-shadow(0 0 1px #061640) drop-shadow(0 1px 1px #061640) drop-shadow(0 0 10px #fff); }
/* görev çubuğundaki varsayılan uygulama ikonları: 3B gümüş detay görünsün diye biraz büyük */

/* ---------- döviz levhası: saat/tarih levhasının altında, aynı cam stilinde ---------- */
#lg-fx { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; perspective: 700px; pointer-events: auto; animation: lg-float-slab 7s ease-in-out -2.5s infinite; }
.lg-fx__slab { align-items: stretch; gap: 5px; padding: 9px 16px 10px; transition: filter .2s; }
#lg-fx:hover .lg-fx__slab { filter: brightness(1.12); }
.lg-fx__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 5px; margin-bottom: 1px; border-bottom: 1px solid rgba(232, 240, 255, .4);
    font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(235, 243, 255, .9); }
.lg-fx__head small { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(225, 236, 255, .75); }
.lg-fx__row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.lg-fx__row b { font-size: 13.5px; letter-spacing: 1px; color: rgba(235, 243, 255, .95); }
.lg-fx__row i { font: 700 17px/1.15 Consolas, "Courier New", monospace; font-style: normal; font-variant-numeric: tabular-nums; }
/* açık pencere minyatürleri, arka sağ köşedeki "tümünü kapat" ikonunun solunda biter (üst üste binmesinler) */
.lg-dock__row > .lg-dock__tasks { margin-right: 8%; }

/* düz siyah arka plan (canlı tema çalışmaz, işlemci harcamaz) */
body[data-bg="siyah"] #lg-sky-img, .lg-bgthumb--siyah { background: #000; }

/* video arka plan (denizanası tankı): tuvalin altında, ekranı kaplar */
#lg-sky-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; background: #000; pointer-events: none; }
body.lg-video #lg-sky-video { display: block; }
body.lg-video #lg-sky-img { background: #000; }
.lg-bgapp__credit { grid-column: 1 / -1; min-height: 15px; text-align: center; font-size: 11.5px; color: rgba(211, 224, 248, .7); }

/* ---------- sol üstteki dikey araç çubuğu: hafifçe içe dönük cam levha, ikon + altında etiket ---------- */
#lg-toolbar { position: fixed; left: 14px; top: 14px; z-index: 4000; perspective: 700px; perspective-origin: 0 50%; animation: lg-float-slab 8s ease-in-out -3s infinite; }
.lg-toolbar__slab { display: flex; flex-direction: column; gap: 8px; padding: 12px 8px 10px; transform-origin: 0 50%; transform: rotateY(14deg);
    border: 1px solid var(--glass-line); border-left: 7px solid var(--glass-strong); border-radius: 12px;
    background: linear-gradient(160deg, rgba(235, 242, 255, .30), rgba(255, 255, 255, 0) 45%), rgba(72, 116, 208, .62);
    box-shadow: inset 0 0 0 1px rgba(30, 60, 130, .3), 0 16px 38px rgba(0, 0, 0, .45); }
.lg-tool { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 5px 2px 4px; border: 1px solid transparent; border-radius: 8px; background: transparent;
    transition: transform .2s var(--ease), background .15s, border-color .15s; }
.lg-tool .lg-ic { width: 46px; height: 46px; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .45)); transition: transform .2s var(--ease); }
.lg-tool__tip { max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1.2; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(8, 24, 70, .95); overflow-wrap: anywhere; }
.lg-tool:hover, .lg-tool:focus-visible { background: rgba(255, 255, 255, .18); border-color: var(--glass-line); }
.lg-tool:hover .lg-ic, .lg-tool:focus-visible .lg-ic { transform: translateY(-2px) scale(1.1); }

/* ---------- rafın ortasındaki marka: zemine boyalı logo + firma adı ----------
   Raf rotateX ile yattığı için her şey dikeyde ~1/3'e basılır; logo ve yazı bu yüzden dikeyde uzatılmıştır. */
.lg-dock__brand { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; white-space: nowrap; pointer-events: none; }
.lg-dock__brand img { display: block; width: 33px; height: 60px; }
.lg-dock__brand span { display: block; font: 700 20px/1 Calibri, Carlito, "Segoe UI", sans-serif; letter-spacing: 0; color: #000; transform: scale(.76, 1.9); margin: 0 -30px;   /* eni daraltılmış; negatif kenar boşluğu ölçeklemeyle oluşan boşluğu kapatır */ text-shadow: 0 0 5px rgba(225, 236, 255, .55); }

/* tam ekran pencere varken saat/tarih ve döviz levhaları yumuşakça kaybolur */
#lg-topright { transition: opacity .35s ease, transform .35s var(--ease); }
body.lg-hasmax #lg-topright { opacity: 0; transform: translateY(-16px); pointer-events: none; }
body.lg-hasmax #lg-topright * { pointer-events: none; }

/* tam ekran pencere varken soldaki araç çubuğu da sola doğru kayarak kaybolur */
#lg-toolbar { transition: opacity .35s ease, margin-left .35s var(--ease); }
body.lg-hasmax #lg-toolbar { opacity: 0; margin-left: -40px; pointer-events: none; }
body.lg-hasmax #lg-toolbar * { pointer-events: none; }
