/* ============ Cloud – vzhľad ============ */
:root {
  --c-primary: #1a73e8;
  --c-accent: #6c4cf5;
  --c-bg: #f6f8fc;
  --c-surface: #ffffff;
  --c-hover: #eef2fa;
  --c-sel: #c2e7ff;
  --c-border: #e3e7ee;
  --topbar-h: 64px;
  --sidebar-w: 256px;
  --bs-primary: #1a73e8;
  --bs-primary-rgb: 26, 115, 232;
  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-border-radius: .65rem;
}
[data-bs-theme="dark"] {
  --c-bg: #121418;
  --c-surface: #1b1e24;
  --c-hover: #252a33;
  --c-sel: #0b3a66;
  --c-border: #2c313a;
}
.btn-primary { --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: #1765cc; --bs-btn-hover-border-color: #1765cc; }
.btn-outline-primary { --bs-btn-color: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: var(--c-primary); }
body { background: var(--c-bg); -webkit-tap-highlight-color: transparent; }
.min-w-0 { min-width: 0; }

/* ---- tlačidlá ---- */
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--bs-body-color); border: 0; background: transparent; font-size: 1.15rem; flex-shrink: 0; }
.btn-icon:hover, .btn-icon.active { background: var(--c-hover); }
.btn-icon.btn-sm { width: 32px; height: 32px; font-size: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.25rem; color: var(--bs-body-color); text-decoration: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(26,115,232,.3); }
.brand-logo-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #34a853, #1a73e8); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.avatar.has-img { background: var(--c-hover); overflow: hidden; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-xl { width: 96px; height: 96px; font-size: 2.4rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .85rem; }
.avatar-btn { padding: 2px; border-radius: 50%; border: 0; }

/* ---- prihlasovanie ---- */
.auth-page { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, rgba(108,76,245,.18), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(26,115,232,.18), transparent 60%), var(--c-bg); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px; max-width: 460px; margin: 0 auto; }
.auth-card { border-radius: 24px; background: var(--c-surface); }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 5; }
.btn-passkey { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; border: 0; border-radius: 18px; transition: transform .15s, box-shadow .15s; }
.btn-passkey:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,115,232,.35); }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--bs-secondary-color); font-size: .85rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }

/* ---- rozloženie aplikácie ---- */
.app-topbar { position: sticky; top: 0; z-index: 1030; height: var(--topbar-h); display: flex; align-items: center; gap: .5rem; padding: 0 12px; padding-top: env(safe-area-inset-top); background: var(--c-bg); }
.app-topbar .brand { width: calc(var(--sidebar-w) - 24px); }
.search-box { flex: 1; min-width: 0; position: relative; margin-right: .5rem; }
.search-box i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); }
.search-box .form-control { height: 46px; border-radius: 24px; padding-left: 48px; background: var(--c-hover); border: 1px solid transparent; }
.search-box .form-control:focus { background: var(--c-surface); border-color: var(--c-border); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.app-body { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.app-sidebar { width: var(--sidebar-w); flex-shrink: 0; }
@media (min-width: 992px) {
  .app-sidebar { position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); background: transparent !important; }
  .app-sidebar .offcanvas-body { padding: 8px 12px 16px; overflow-y: auto; }
}
.app-main { flex: 1; min-width: 0; background: var(--c-surface); border-radius: 18px 18px 0 0; margin: 0 12px 0 0; padding: 16px 20px 100px; }
@media (max-width: 991.98px) {
  .app-topbar .brand { width: auto; }
  .app-main { margin: 0; border-radius: 18px 18px 0 0; padding: 12px 12px 110px; }
  .app-sidebar { --bs-offcanvas-width: 290px; }
  .app-sidebar .offcanvas-body { padding: 8px 12px 16px; }
}
@media (max-width: 575.98px) {
  .app-topbar { gap: .25rem; padding: 0 6px; }
  .search-box .form-control { height: 42px; }
}
.btn-new { background: var(--c-surface); border: 0; border-radius: 16px; padding: 14px 22px; font-weight: 600; display: inline-flex; align-items: center; }
[data-bs-theme="light"] .btn-new:hover { background: #e9eefb; }
.side-nav .nav-link { color: var(--bs-body-color); border-radius: 24px; padding: 8px 16px; display: flex; align-items: center; gap: 14px; font-weight: 500; margin-bottom: 2px; }
.side-nav .nav-link i { font-size: 1.1rem; }
.side-nav .nav-link:hover { background: var(--c-hover); }
.side-nav .nav-link.active { background: var(--c-sel); color: #041e49; font-weight: 600; }
[data-bs-theme="dark"] .side-nav .nav-link.active { color: #d3e3fd; }
.quota-box { padding: 16px 12px 8px; }

/* ---- hlavička disku ---- */
.drive-head { display: flex; align-items: center; gap: 4px; min-height: 48px; margin-bottom: 8px; }
.drive-crumbs { font-size: 1.35rem; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; min-width: 0; align-items: center; }
/* každá časť cesty sa skráti s „…“ – nikdy sa neprekrývajú */
.drive-crumbs .breadcrumb-item { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; padding-left: 0; overflow: hidden; }
.drive-crumbs .breadcrumb-item + .breadcrumb-item::before { float: none; flex-shrink: 0; padding: 0 .35rem; }
.drive-crumbs .breadcrumb-item:not(:last-child) { flex-shrink: 4; max-width: 40%; min-width: 4.5em; }
.drive-crumbs .breadcrumb-item.crumb-root, .drive-crumbs .breadcrumb-item.crumb-more { flex-shrink: 0; max-width: none; min-width: auto; }
.drive-crumbs .breadcrumb-item.active { color: var(--bs-body-color); font-weight: 500; flex-shrink: 1; }
.drive-crumbs .crumb-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-crumbs a { display: flex; align-items: center; min-width: 0; max-width: 100%; color: var(--bs-secondary-color); text-decoration: none; border-radius: 8px; padding: 2px 6px; }
.drive-crumbs a:hover { background: var(--c-hover); }
.drive-crumbs a.drop-target { background: var(--c-sel); }
.drive-crumbs .crumb-chip { max-width: 100%; height: auto; font-size: .9rem; padding: 2px 12px; line-height: 1.4; }
@media (max-width: 575.98px) { .drive-crumbs { font-size: 1.1rem; } .drive-crumbs .breadcrumb-item:not(:last-child) { max-width: 34%; } }
/* dlhé názvy v kartách a dialógoch */
.item-name, .file-meta, .folder-card { min-width: 0; }
.modal-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-main h1 { overflow-wrap: anywhere; }

.selection-bar { position: sticky; top: var(--topbar-h); z-index: 10; display: flex; align-items: center; gap: 2px; background: var(--c-sel); border-radius: 24px; padding: 4px 8px; margin-bottom: 10px; }
[data-bs-theme="dark"] .selection-bar { color: #d3e3fd; }

/* ---- zoznam ---- */
.list-header, .row-item { display: grid; grid-template-columns: 36px minmax(0,1fr) 140px 110px 44px; align-items: center; gap: 8px; padding: 0 8px; }
@media (max-width: 767.98px) { .list-header, .row-item { grid-template-columns: 36px minmax(0,1fr) 90px 44px; } }
@media (max-width: 575.98px) { .list-header, .row-item { grid-template-columns: 0 minmax(0,1fr) 40px; } .c-check { overflow: hidden; } }
.list-header { font-size: .85rem; font-weight: 600; color: var(--bs-secondary-color); height: 44px; border-bottom: 1px solid var(--c-border); }
.row-item { min-height: 52px; border-bottom: 1px solid var(--c-border); cursor: pointer; user-select: none; border-radius: 0; }
.row-item:hover { background: var(--c-hover); }
.row-item .c-name { display: flex; align-items: center; gap: 14px; min-width: 0; font-weight: 500; }
.row-item .c-date, .row-item .c-size { font-size: .88rem; color: var(--bs-secondary-color); }
.item-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.4rem; }
.item-icon img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.item.selected { background: var(--c-sel) !important; }
.item.drop-target { outline: 2px solid var(--c-primary); background: var(--c-sel) !important; }
@media (max-width: 575.98px) { .has-selection .row-item .c-check { width: auto; } .has-selection .list-header, .has-selection .row-item { grid-template-columns: 32px minmax(0,1fr) 40px; } }

/* ---- mriežka ---- */
.section-title { font-size: .9rem; font-weight: 600; margin: 14px 4px 10px; }
.grid { display: grid; gap: 14px; }
.grid-folders { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-files { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 575.98px) { .grid-folders, .grid-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.folder-card { display: flex; align-items: center; gap: 12px; background: var(--c-hover); border-radius: 14px; padding: 6px 6px 6px 16px; height: 52px; cursor: pointer; user-select: none; position: relative; font-weight: 500; }
.folder-card .ic-folder { font-size: 1.3rem; }
.folder-card:hover { filter: brightness(.97); }
[data-bs-theme="dark"] .folder-card:hover { filter: brightness(1.15); }
.file-card { background: var(--c-hover); border-radius: 14px; padding: 6px 6px 10px; cursor: pointer; user-select: none; position: relative; display: flex; flex-direction: column; }
.file-card:hover { filter: brightness(.97); }
.file-meta { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 10px; min-width: 0; font-weight: 500; order: -1; }
.file-thumb { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--c-surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb i { font-size: 3.2rem; }
.file-sub { font-size: .78rem; color: var(--bs-secondary-color); padding: 8px 10px 0; }
.items-grid .item-check { position: absolute; top: 12px; left: 10px; z-index: 2; opacity: 0; transition: opacity .15s; }
.items-grid .file-card .item-check { top: 54px; left: 14px; }
.items-grid .folder-card .item-check { position: static; display: none; }
.items-grid .item:hover .item-check, .has-selection .items-grid .item-check { opacity: 1; }
.has-selection .items-grid .folder-card .item-check { display: block; }
.has-selection .items-grid .folder-card .ic-folder { display: none; }

/* ---- ikony podľa typu ---- */
.ic-folder { color: #5f6368; } [data-bs-theme="dark"] .ic-folder { color: #c4c7c5; }
.ic-image { color: #d93025; } .ic-video { color: #d93025; } .ic-audio { color: #e37400; } .ic-pdf { color: #ea4335; }
.ic-word { color: #4285f4; } .ic-excel { color: #188038; } .ic-ppt { color: #f29900; } .ic-zip { color: #8d6e63; }
.ic-code { color: #6c4cf5; } .ic-text { color: #5f6368; } .ic-file { color: #80868b; }

/* ---- prázdny stav ---- */
.empty-state { text-align: center; padding: 64px 16px; }
.empty-icon { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; background: linear-gradient(135deg, rgba(26,115,232,.12), rgba(108,76,245,.12)); display: flex; align-items: center; justify-content: center; font-size: 3.4rem; color: var(--c-primary); }

/* ---- FAB ---- */
.fab-wrap { position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 1040; }
.fab { width: 60px; height: 60px; border-radius: 18px; border: 0; background: var(--c-surface); color: var(--c-primary); font-size: 1.8rem; box-shadow: 0 4px 16px rgba(0,0,0,.18) !important; }
[data-bs-theme="light"] .fab { background: #c2e7ff; color: #041e49; }

/* ---- drag & drop ---- */
.drop-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(26,115,232,.12); border: 3px dashed var(--c-primary); display: none; align-items: center; justify-content: center; pointer-events: none; }
.drop-overlay.show { display: flex; }
.drop-overlay > div { background: var(--c-primary); color: #fff; padding: 22px 36px; border-radius: 18px; text-align: center; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.drop-overlay i { font-size: 2.6rem; display: block; }

/* ---- panel nahrávania ---- */
.upload-panel { position: fixed; right: 24px; bottom: 0; width: 360px; max-width: calc(100vw - 16px); background: var(--c-surface); border-radius: 16px 16px 0 0; z-index: 1050; overflow: hidden; }
@media (max-width: 575.98px) { .upload-panel { right: 8px; bottom: calc(92px + env(safe-area-inset-bottom)); border-radius: 16px; } }
.upload-head { display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 18px; background: #1f1f1f; color: #fff; font-weight: 600; }
.upload-head span { flex: 1; }
.upload-head .btn-icon { color: #fff; }
.upload-head .btn-icon:hover { background: rgba(255,255,255,.12); }
.upload-list { max-height: 320px; overflow-y: auto; }
.upload-panel.collapsed .upload-list { display: none; }
.upload-panel.collapsed #uploadToggle i { transform: rotate(180deg); }
.up-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--c-border); }
.up-item > i { font-size: 1.3rem; }

/* ---- kontextové menu ---- */
.ctx-menu { position: fixed; z-index: 1060; min-width: 220px; border-radius: 12px; border: 0; padding: 6px 0; }
.ctx-menu .dropdown-item { padding: 8px 18px; }
.dropdown-menu { border-radius: 12px; border-color: var(--c-border); }
.dropdown-item.active, .dropdown-item:active { background: var(--c-sel); color: inherit; }

/* ---- náhľad ---- */
.preview-content { background: rgba(20,20,22,.96); color: #fff; border: 0; border-radius: 0; }
.preview-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: linear-gradient(rgba(0,0,0,.65), transparent); z-index: 3; }
.preview-bar .btn-icon:hover { background: rgba(255,255,255,.12); }
.preview-body { position: absolute; inset: 64px 0 0; display: flex; align-items: center; justify-content: center; padding: 12px; }
.preview-body img, .preview-body video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.preview-body iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 6px; max-width: 1100px; }
.preview-text { width: 100%; max-width: 1000px; height: 100%; overflow: auto; background: #1e1e1e; color: #ddd; padding: 20px; border-radius: 10px; font-size: .85rem; white-space: pre-wrap; word-break: break-word; margin: 0; }
.preview-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; }
.preview-nav:hover { background: rgba(255,255,255,.22); }
.preview-nav.prev { left: 16px; } .preview-nav.next { right: 16px; }
@media (max-width: 575.98px) { .preview-nav { display: none; } }

/* ---- karty / admin ---- */
.card-soft { border: 1px solid var(--c-border); border-radius: 18px; background: var(--c-surface); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(26,115,232,.1); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.admin-tabs .nav-link { border-radius: 24px; color: var(--bs-body-color); }
.admin-tabs .nav-link.active { background: var(--c-sel); color: #041e49; font-weight: 600; }
[data-bs-theme="dark"] .admin-tabs .nav-link.active { color: #d3e3fd; }
.users-table td { padding-top: .8rem; padding-bottom: .8rem; }
.users-table .min-w-0 { max-width: 260px; }
.modal-content { border-radius: 20px; border: 0; }
.modal-fullscreen .modal-content { border-radius: 0; }
.toast { border-radius: 12px; }
.form-control, .form-select { border-radius: 12px; }
.form-floating > .form-control { border-radius: 14px; }

/* Select2 doladenie */
.select2-container--bootstrap-5 .select2-selection { border-radius: 12px; min-height: 38px; }
.select2-container--bootstrap-5 .select2-dropdown { border-radius: 12px; overflow: hidden; }
.input-group .select2-container--bootstrap-5 { flex: 0 0 110px; }
.input-group .select2-container--bootstrap-5 .select2-selection { border-top-left-radius: 0; border-bottom-left-radius: 0; }
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown { background: var(--bs-body-bg); color: var(--bs-body-color); border-color: var(--bs-border-color); }
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection__rendered { color: var(--bs-body-color) !important; }
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-search__field { background: var(--bs-body-bg); color: var(--bs-body-color); }

/* štandalone PWA */
@media (display-mode: standalone) { .app-topbar { padding-top: max(env(safe-area-inset-top), 0px); } }

/* ============ v2: kôš, fotky, zdieľanie, editor, náhľady ============ */
.trash-bar { display: flex; align-items: center; gap: 10px; background: var(--c-hover); border-radius: 14px; padding: 8px 10px 8px 14px; margin-bottom: 10px; }
.readonly .fab-wrap, .readonly .btn-new[data-bs-toggle] { opacity: .45; pointer-events: none; }
.up-cancel { margin-left: -4px; }
.up-item .up-err:empty { display: none; }

/* fotky */
.photo-month { text-transform: capitalize; font-size: 1rem; margin-top: 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
@media (max-width: 575.98px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; } }
.photo-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; cursor: pointer; background: var(--c-hover); user-select: none; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.photo-item:hover img { transform: scale(1.04); }
.photo-item .item-check { position: absolute; top: 8px; left: 8px; z-index: 2; opacity: 0; }
.photo-item:hover .item-check, .has-selection .photo-item .item-check { opacity: 1; }
.photo-item.selected img { transform: scale(.88); border-radius: 8px; }
.photo-item.selected { background: var(--c-sel); }

/* editor */
.editor-area { width: 100%; height: 72vh; border: 0; resize: none; padding: 16px 18px; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--c-surface); color: var(--bs-body-color); outline: none; tab-size: 4; }
.modal-fullscreen-md-down .editor-area { height: calc(100vh - 60px); }
@media (min-width: 768px) { .editor-area { height: 72vh; } }

/* náhľady dokumentov */
.doc-preview { background: #fff; color: #222; width: 100%; max-width: 860px; height: 100%; overflow: auto; padding: 40px 48px; border-radius: 8px; line-height: 1.6; }
.doc-preview img { max-width: 100%; height: auto; }
.doc-preview table { border-collapse: collapse; margin: 1em 0; }
.doc-preview td, .doc-preview th { border: 1px solid #ccc; padding: 4px 8px; }
@media (max-width: 575.98px) { .doc-preview { padding: 20px 16px; } }
.sheet-preview { background: #fff; color: #222; width: 100%; max-width: 1200px; height: 100%; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.sheet-tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: #f1f3f4; overflow-x: auto; flex-shrink: 0; }
.sheet-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px 8px 0 0; font-size: .85rem; white-space: nowrap; }
.sheet-tabs button.active { background: #fff; font-weight: 600; color: #188038; }
.sheet-body { overflow: auto; flex: 1; }
.sheet-body table { border-collapse: collapse; font-size: .85rem; }
.sheet-body td { border: 1px solid #e0e0e0; padding: 3px 8px; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.sheet-body tr:first-child td { background: #f8f9fa; font-weight: 600; position: sticky; top: 0; }
.preview-bar .btn-light { flex-shrink: 0; }

/* verejný odkaz */
.share-page { background: var(--c-bg); min-height: 100vh; }
.share-main { max-width: 1000px; margin: 0 auto; padding: 16px 16px 60px; }
.share-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--c-border); color: inherit; text-decoration: none; }
.share-row:last-child { border-bottom: 0; }
a.share-row:hover { background: var(--c-hover); }
.share-row > i { font-size: 1.4rem; }
.share-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.share-preview { padding: 12px; display: flex; justify-content: center; align-items: center; min-height: 300px; }
.share-preview img, .share-preview video { max-width: 100%; max-height: 75vh; border-radius: 8px; }
.share-preview iframe { width: 100%; height: 80vh; border: 0; border-radius: 8px; }
.share-preview audio { width: 100%; max-width: 500px; }
.card-soft .list-group-item { background: transparent; }
.type-bar { height: 6px; border-radius: 4px; background: var(--c-hover); margin-top: 4px; overflow: hidden; }
.type-bar span { display: block; height: 100%; border-radius: 4px; background: var(--c-primary); min-width: 2px; }
.bulk-bar { padding: 14px 16px; position: sticky; top: calc(var(--topbar-h) + 4px); z-index: 20; box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* ============ upozornenia ============ */
.notif-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d93025; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notif-menu { width: 360px; max-width: calc(100vw - 16px); overflow: hidden; }
.notif-list { max-height: min(70vh, 480px); overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--c-border); position: relative; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--c-hover); }
.notif-item.unread { background: rgba(26,115,232,.06); }
.notif-item.unread::after { content: ""; position: absolute; right: 14px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); }
.notif-ic { width: 36px; height: 36px; border-radius: 50%; background: rgba(26,115,232,.12); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-title, .notif-body { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 14px; }
@media (max-width: 575.98px) { .notif-menu { position: fixed !important; left: 8px !important; right: 8px !important; top: 60px !important; width: auto; transform: none !important; } }
@media (max-width: 420px) { .app-topbar > .brand { display: none; } .app-topbar .btn-icon { width: 36px; } }

/* ============ štítky a farby ============ */
.tag-chip { display: inline-flex; align-items: center; max-width: 140px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.tag-chips { display: inline-flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; min-width: 0; margin-left: 6px; }
.file-card .tag-chips, .folder-card .tag-chips { margin-left: 0; }
.file-card .tag-chips { padding: 6px 10px 0; display: flex; flex-wrap: wrap; }
@media (max-width: 575.98px) { .row-item .tag-chips { display: none; } .row-item .tag-dots { display: inline-flex; } }
.tag-dots { display: none; gap: 3px; margin-left: 6px; }
.tag-dots span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.item.has-color.file-card { box-shadow: inset 0 4px 0 var(--item-color); }
.item.has-color.folder-card { box-shadow: inset 4px 0 0 var(--item-color); }
.row-item.has-color { box-shadow: inset 4px 0 0 var(--item-color); }
.color-palette { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; outline: 2px solid transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.color-swatch.active { outline-color: var(--bs-body-color); outline-offset: 2px; }
.color-swatch.none { background: var(--c-hover); color: var(--bs-secondary-color); border-color: var(--c-border); }
.side-tags .nav-link { padding: 5px 16px; font-size: .92rem; }
.side-tags .tag-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.side-tags .tag-count { margin-left: auto; font-size: .78rem; color: var(--bs-secondary-color); }
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice { border-radius: 10px; border: 0; font-weight: 600; font-size: .8rem; }
.tag-row .color-swatch { width: 22px; height: 22px; }

/* disk servera (admin) */
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.disk-bar { border-radius: 8px; background: var(--c-hover); }
.disk-bar .progress-bar + .progress-bar { border-left: 2px solid var(--c-surface); }
