/* ============================================================
   YENİDEN TASARIM — selamlama topbar + alt navigasyon
   ============================================================ */
.topbar-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--accent-dim)); color: #07221b; font-weight: 800; font-size: 17px; display: grid; place-items: center; flex-shrink: 0; }
.tb-greet { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tb-hi { font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent2); font-weight: 700; }
.tb-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text-primary); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alt navigasyon (mobil) */
.bottom-nav { display: none; }
@media (max-width: 860px) {
    .bottom-nav {
        display: flex; align-items: center; justify-content: space-around;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
        height: 62px; padding-bottom: env(safe-area-inset-bottom);
        background: var(--bg-base); border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0,0,0,.18);
    }
    .content { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .tb-name { font-size: 10px; }
    .tb-avatar { width: 38px; height: 38px; font-size: 15px; }
}
.bn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; color: var(--text-muted); font-size: 10.5px; font-weight: 600; padding: 6px 0; }
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--accent2); }
.bn-center { flex: 0 0 auto; }
.bn-logo {
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center; margin-top: -28px;
    background: var(--bg-base);
    box-shadow: 0 0 0 5px var(--bg-deep), 0 0 22px var(--logo-glow);
    border: 2px solid var(--accent);
}
.bn-logo img { width: 34px; height: 34px; }

/* ============================================================
   YENİDEN TASARIM — Dashboard
   ============================================================ */
.dash-hero { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 6px; margin-bottom: 16px; }
.dh-brand { flex: 0 0 auto; display: grid; place-items: center; padding: 0 14px; }
.dh-brand img { width: 62px; height: 62px; object-fit: contain; }
.dh-stat { flex: 1 1 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-left: 1px solid var(--border); text-align: center; min-width: 96px; }
.dh-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.dh-ic svg { width: 20px; height: 20px; }
.dh-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.dh-lim { font-size: 16px; font-weight: 700; color: var(--text-muted); }
.dh-lbl { font-size: 12px; color: var(--text-muted); }
.dh-rem { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }

.dash-search { display: flex; gap: 10px; margin-bottom: 14px; }
.ds-input { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; min-width: 0; }
.ds-input svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.ds-input input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text-primary); font-size: 14px; font-family: inherit; }
.ds-input input::placeholder { color: var(--text-muted); }
.ds-filter { width: 50px; flex-shrink: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; display: grid; place-items: center; color: var(--text-secondary); }
.ds-filter:hover { color: var(--accent2); border-color: var(--border-strong); }
.ds-filter svg { width: 20px; height: 20px; }

.dash-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 26px; }
.dash-chips::-webkit-scrollbar { height: 0; }
.dchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 11px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.dchip svg { width: 15px; height: 15px; }
.dchip:hover { color: var(--text-primary); }
.dchip.active { color: var(--accent2); border-color: var(--accent2); background: var(--accent2-soft); }

.dash-block { margin-bottom: 28px; }
.db-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.db-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.db-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent2); font-size: 13.5px; font-weight: 600; }
.db-link svg { width: 14px; height: 14px; }

.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* Solda ikon, sağda işlem adı (yatay) */
.qa-tile { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border); transition: all .15s ease; text-align: left; }
.qa-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.qa-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.qa-ic svg { width: 20px; height: 20px; }
.qa-t { font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: .2px; text-transform: uppercase; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-recent { display: flex; flex-direction: column; gap: 10px; }
.dr-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border); transition: all .15s ease; }
.dr-row:hover { border-color: var(--border-strong); }
.dr-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.dr-ic svg { width: 20px; height: 20px; }
.dr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-name { font-weight: 700; font-size: 14.5px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-meta { font-size: 12px; color: var(--text-muted); }
.dr-share { color: var(--text-muted); display: grid; place-items: center; flex-shrink: 0; }
.dr-share svg { width: 19px; height: 19px; }
.dr-more { width: 32px; height: 32px; border-radius: 8px; color: var(--text-muted); display: grid; place-items: center; flex-shrink: 0; }
.dr-more:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.dr-more svg { width: 18px; height: 18px; }

.dash-ai { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--bg-surface); border: 1px solid var(--border); transition: all .15s ease; }
.dash-ai:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.dai-logo { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: radial-gradient(circle, var(--accent-soft), transparent 70%); box-shadow: 0 0 22px var(--logo-glow); }
.dai-logo img { width: 38px; height: 38px; }
.dai-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dai-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-primary); }
.dai-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
.dai-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--accent2); color: var(--accent2); font-weight: 700; font-size: 13px; white-space: nowrap; }
.dai-btn svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
    .dh-brand { padding: 0 8px; } .dh-brand img { width: 50px; height: 50px; }
    .dh-val { font-size: 21px; } .dh-ic { width: 34px; height: 34px; } .dh-ic svg { width: 17px; height: 17px; } .dh-lbl { font-size: 10.5px; }
    .dh-lim { font-size: 13px; } .dh-rem { font-size: 9.5px; padding: 2px 6px; }
    .qa-grid { gap: 9px; } .qa-tile { padding: 11px 12px; gap: 10px; } .qa-ic { width: 38px; height: 38px; }
    .dash-ai { flex-wrap: wrap; } .dai-btn { width: 100%; justify-content: center; }
}
.dr-empty { display: flex; align-items: center; gap: 9px; padding: 16px; border-radius: 14px; background: var(--bg-surface); border: 1px dashed var(--border-strong); color: var(--text-muted); font-size: 13px; }
.dr-empty svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ============================================================
   YENİDEN TASARIM — Workspaces (renkli liste)
   ============================================================ */
.ws-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ws-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-primary); }
.ws-view-toggle { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--accent2); background: var(--accent2-soft); }
.ws-view-toggle svg { width: 20px; height: 20px; }

.ws-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.ws-search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 13px; padding: 12px 15px; min-width: 0; }
.ws-search svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.ws-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text-primary); font-size: 14px; font-family: inherit; }
.ws-search input::placeholder { color: var(--text-muted); }
.ws-filter { width: 48px; flex-shrink: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 13px; display: grid; place-items: center; color: var(--text-secondary); }
.ws-filter:hover { color: var(--accent2); }
.ws-filter svg { width: 19px; height: 19px; }

.ws-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; }
.ws-tabs::-webkit-scrollbar { height: 0; }
.wtab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 11px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.wtab:hover { color: var(--text-primary); }
.wtab.active { background: var(--accent2); border-color: transparent; color: #fff; }
.wtab-c { font-size: 11px; background: rgba(0,0,0,.12); padding: 1px 7px; border-radius: 20px; }
.wtab.active .wtab-c { background: rgba(255,255,255,.25); color: #fff; }
.wtab-badge { font-size: 10px; font-weight: 800; background: var(--warning); color: #07221b; padding: 1px 6px; border-radius: 20px; }

.ws-list { display: flex; flex-direction: column; gap: 10px; }
.wsrow { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 15px; background: var(--bg-surface); border: 1px solid var(--border); transition: all .14s ease; }
.wsrow:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.wsrow-folder { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.wsrow-folder svg { width: 23px; height: 23px; }
.wsrow-folder.muted { background: var(--bg-elevated) !important; color: var(--text-muted); }
.wsrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wsrow-name { font-weight: 700; font-size: 15px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsrow-sub { font-size: 12.5px; color: var(--text-muted); text-transform: lowercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsrow-pill { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.wsrow-pill.pill-muted { background: var(--bg-elevated); color: var(--text-muted); }
.wsrow-star { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--text-muted); }
.wsrow-star svg { width: 18px; height: 18px; }
.wsrow-star:hover, .wsrow-star.on { color: var(--warning); }
.wsrow-star.on svg { fill: var(--warning); }

.wsrow-menu { position: relative; flex-shrink: 0; }
.wsrow-more { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--text-muted); }
.wsrow-more:hover { color: var(--text-primary); background: var(--bg-surface-2); }
.wsrow-more svg { width: 18px; height: 18px; }
.wsrow-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 172px; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 30; display: none; flex-direction: column; gap: 2px; }
.wsrow-menu.open .wsrow-pop { display: flex; }
.wsrow-pop a, .wsrow-pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-align: left; background: none; }
.wsrow-pop a:hover, .wsrow-pop button:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.wsrow-pop button.danger:hover { color: var(--danger); }
.wsrow-pop svg { width: 16px; height: 16px; }
.wsrow-pop form { width: 100%; }

.wsrow-accept { display: flex; gap: 7px; flex-shrink: 0; }
.wsrow-ok, .wsrow-no { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.wsrow-ok { background: rgba(34,197,94,.16); color: #22c55e; }
.wsrow-ok:hover { background: rgba(34,197,94,.28); }
.wsrow-no { background: rgba(240,85,109,.14); color: var(--danger); }
.wsrow-no:hover { background: rgba(240,85,109,.24); }
.wsrow-ok svg, .wsrow-no svg { width: 18px; height: 18px; }
.wsrow-open { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent2); background: var(--accent2-soft); flex-shrink: 0; }
.wsrow-open svg { width: 18px; height: 18px; }

.ws-list.compact .wsrow { padding: 8px 12px; gap: 11px; }
.ws-list.compact .wsrow-folder { width: 38px; height: 38px; border-radius: 11px; }
.ws-list.compact .wsrow-folder svg { width: 19px; height: 19px; }
.ws-list.compact .wsrow-name { font-size: 14px; }

.ws-fab { position: fixed; right: 28px; bottom: 28px; width: 58px; height: 58px; border-radius: 50%; background: var(--accent2); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(74,147,255,.45); z-index: 70; transition: transform .15s ease, filter .15s ease; }
.ws-fab:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ws-fab svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .ws-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 18px; } }

.share-ws-name { color: var(--text-secondary); font-size: 13px; margin-bottom: 6px; }

/* ============================================================
   AIChat — hazır soru baloncukları
   ============================================================ */
.ai-bubbles-intro { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.ai-bubbles { display: flex; flex-direction: column; gap: 8px; }
.ai-bubble { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-dim); color: var(--text-primary); font-size: 13.5px; font-weight: 600; text-align: left; transition: all .14s ease; }
.ai-bubble:hover { background: var(--accent2-soft); border-color: var(--accent); transform: translateY(-1px); }
.ai-bubble svg { width: 17px; height: 17px; color: var(--accent-bright); flex-shrink: 0; }
.ai-bubble span { line-height: 1.3; }
.ai-bubble-other { background: var(--bg-surface-2); border: 1px dashed var(--border-strong); color: var(--text-secondary); }
.ai-bubble-other svg { color: var(--text-muted); }
.ai-bubble-other:hover { background: var(--bg-base); color: var(--text-primary); border-color: var(--text-muted); }

/* Tablo araç çubuğu — fareyle sürükleyerek yatay kaydırma */
.s-tools { cursor: grab; }
.s-tools.dragging { cursor: grabbing; user-select: none; }
.s-tools.dragging * { pointer-events: none; }
.s-icon-btn:disabled { opacity: .4; pointer-events: none; }

/* Giriş formu üstü marka (logo + AtmoSpace / WEB) */
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.auth-brand .brand-mark { width: 46px; height: 46px; }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.auth-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.3px; color: var(--text-primary); }
.auth-brand-name span { color: var(--accent); }
.auth-brand-sub { font-size: 11.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-bright); margin-top: 2px; }
/* hidden özniteliği display:flex'i ezmesin (dosya satırı / durum gizlenebilsin) */
.cm-file[hidden], .cm-status[hidden] { display: none; }
/* 3-nokta menüsü açık olan satır öne gelsin (popup alttaki satırın altında kalmasın) */
.wsrow.menu-open { position: relative; z-index: 40; }

/* Tablolar — workspace'e göre gruplama başlığı */
.tbl-group { margin-bottom: 22px; }
.tbl-group-head { display: flex; align-items: center; gap: 10px; padding: 8px 6px; margin-bottom: 10px; border-bottom: 1px solid var(--border); transition: color .14s ease; }
.tgh-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.tgh-ic svg { width: 17px; height: 17px; }
.tgh-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.tgh-count { font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--bg-surface-2); padding: 2px 10px; border-radius: 20px; }
.tgh-arrow { margin-left: auto; color: var(--text-muted); display: grid; place-items: center; }
.tgh-arrow svg { width: 15px; height: 15px; }
a.tbl-group-head:hover .tgh-name { color: var(--accent-bright); }
a.tbl-group-head:hover .tgh-arrow { color: var(--accent); }

