:root {
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-bg: #f6f8fc;
    --app-sidebar-bg: #fff;
    --app-border: #e5e9f2;
    --app-text: #101828;
    --app-muted: #667085;
    --app-radius-sm: 7px;
    --app-radius: 11px;
    --app-radius-lg: 18px;
    --app-sidebar-width: 264px;
    --app-shadow: 0 12px 40px rgba(16, 24, 40, .07);
}

* { box-sizing: border-box; }
body { color: var(--app-text); background: var(--app-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--app-primary); }
.btn { border-radius: var(--app-radius-sm); font-weight: 650; }
.btn-primary { --bs-btn-bg: var(--app-primary); --bs-btn-border-color: var(--app-primary); --bs-btn-hover-bg: var(--app-primary-dark); --bs-btn-hover-border-color: var(--app-primary-dark); box-shadow: 0 5px 14px rgba(37, 99, 235, .18); }
.btn:focus-visible, .form-control:focus-visible, a:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }
.eyebrow { color: var(--app-primary); display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .13em; margin-bottom: .9rem; }
.brand-mark { align-items: center; color: var(--app-text); display: inline-flex; font-size: 1.22rem; font-weight: 800; gap: .55rem; letter-spacing: -.035em; text-decoration: none; }
.brand-mark span:not(.brand-icon) { color: var(--app-primary); }
.brand-icon { align-items: center; background: var(--app-primary); border-radius: 9px; color: #fff; display: inline-flex; font-size: 1rem; height: 34px; justify-content: center; width: 34px; }
.app-navbar { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--app-border); }

.hero-section { background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.1), transparent 33%), #fff; overflow: hidden; padding: 7rem 0 6rem; }
.hero-section h1 { font-size: clamp(3rem, 6vw, 5.15rem); font-weight: 800; letter-spacing: -.065em; line-height: .98; margin-bottom: 1.65rem; }
.hero-section h1 span { color: var(--app-primary); }
.hero-copy { color: var(--app-muted); font-size: 1.18rem; line-height: 1.75; max-width: 610px; }
.hero-actions { margin-top: 2rem; }
.hero-actions .btn { padding: .9rem 1.4rem; }
.hero-note { align-items: center; color: var(--app-muted); display: flex; flex-wrap: wrap; font-size: .85rem; gap: .55rem; margin-top: 1.4rem; }
.hero-note i { color: #12b76a; }
.hero-note span { background: #d0d5dd; border-radius: 50%; height: 4px; width: 4px; }
.product-preview { background: #fff; border: 1px solid #dfe5ef; border-radius: 18px; box-shadow: 0 30px 80px rgba(28, 44, 74, .17); min-height: 400px; overflow: hidden; transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
.preview-top { align-items: center; background: #f8fafc; border-bottom: 1px solid var(--app-border); display: flex; gap: 6px; padding: 13px 16px; }
.preview-top > span { background: #cbd5e1; border-radius: 50%; height: 7px; width: 7px; }
.preview-search { background: #fff; border: 1px solid var(--app-border); border-radius: 6px; color: #98a2b3; font-size: .65rem; margin-left: auto; padding: 6px 12px; width: 48%; }
.preview-body { display: grid; grid-template-columns: 120px 1fr; min-height: 345px; }
.preview-sidebar { border-right: 1px solid var(--app-border); padding: 18px 10px; }
.preview-new { background: var(--app-primary); border-radius: 6px; color: #fff; font-size: .68rem; font-weight: 700; margin-bottom: 20px; padding: 8px 10px; }
.preview-nav { color: #667085; font-size: .6rem; margin: 7px 0; padding: 6px 7px; }
.preview-nav.active { background: #eff6ff; border-radius: 5px; color: var(--app-primary); }
.preview-files { padding: 25px 22px; }
.preview-heading { align-items: center; display: flex; font-size: .8rem; justify-content: space-between; }
.preview-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.preview-file { border: 1px solid var(--app-border); border-radius: 8px; display: flex; flex-direction: column; min-width: 0; padding: 14px 10px; }
.preview-file > i { font-size: 1.8rem; margin-bottom: 22px; }
.preview-file strong { font-size: .58rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-file small { color: #98a2b3; font-size: .5rem; margin-top: 3px; }
.folder-color { color: #f9b82f; } .pdf-color { color: #ef4444; } .image-color { color: #8b5cf6; }
.features-section { padding: 5.5rem 0; }
.feature-card { height: 100%; padding: 1.25rem; }
.feature-card > span { align-items: center; background: #eaf2ff; border-radius: 11px; color: var(--app-primary); display: flex; font-size: 1.3rem; height: 45px; justify-content: center; margin-bottom: 1.2rem; width: 45px; }
.feature-card h2 { font-size: 1rem; font-weight: 750; }
.feature-card p { color: var(--app-muted); font-size: .9rem; line-height: 1.65; }
.public-footer { background: #fff; border-top: 1px solid var(--app-border); color: var(--app-muted); font-size: .85rem; padding: 2rem 0; }
.error-page { padding: 8rem 1rem; }
.error-code { color: var(--app-primary); font-size: 5rem; font-weight: 800; }
.error-message { color: var(--app-muted); margin: 1rem auto; max-width: 760px; }
.error-trace { background: #111827; border-radius: 10px; color: #e5e7eb; margin-top: 2rem; max-height: 340px; overflow: auto; padding: 1rem; text-align: left; white-space: pre-wrap; }

.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { background: var(--app-sidebar-bg); border-right: 1px solid var(--app-border); flex: 0 0 var(--app-sidebar-width); position: fixed; inset: 0 auto 0 0; width: var(--app-sidebar-width); z-index: 20; }
.sidebar-inner { display: flex; flex-direction: column; min-height: 100%; padding: 1.5rem 1rem; width: 100%; }
.sidebar-brand { margin: 0 .55rem 1.7rem; }
.new-button { justify-content: flex-start; margin: 0 .25rem 1.7rem; padding: .72rem 1rem; text-align: left; }
.new-button i { margin-right: .5rem; }
.sidebar-inner > .dropdown .new-button { margin: 0; }
.new-menu .dropdown-item { align-items: center; display: flex; font-size: .82rem; gap: .6rem; padding: .55rem .8rem; }
.new-menu .dropdown-item small { background: #f2f4f7; border-radius: 10px; color: #98a2b3; font-size: .58rem; margin-left: auto; padding: 2px 6px; }
.sidebar-nav { display: flex; flex-direction: column; gap: .2rem; }
.nav-section { color: #98a2b3; font-size: .65rem; font-weight: 750; letter-spacing: .09em; padding: .5rem .8rem; }
.nav-section-spaced { margin-top: .85rem; }
.sidebar-nav a, .nav-disabled { align-items: center; border-radius: 8px; color: #475467; display: flex; font-size: .875rem; gap: .7rem; min-height: 40px; padding: .58rem .8rem; text-decoration: none; }
.sidebar-nav a.active { background: #edf4ff; color: var(--app-primary); font-weight: 700; }
.nav-disabled { cursor: default; }
.nav-disabled small { background: #f2f4f7; border-radius: 20px; color: #98a2b3; font-size: .57rem; margin-left: auto; padding: 2px 6px; }
.nav-divider { border-top: 1px solid var(--app-border); margin: .8rem .7rem; }
.storage-box { background: #f8fafc; border: 1px solid var(--app-border); border-radius: 10px; font-size: .75rem; margin-top: auto; padding: .9rem; }
.storage-box span, .storage-box small { color: var(--app-muted); }
.storage-box .progress { height: 6px; margin: .7rem 0; }
.app-main { margin-left: var(--app-sidebar-width); min-width: 0; width: calc(100% - var(--app-sidebar-width)); }
.app-topbar { align-items: center; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--app-border); display: flex; gap: 1.25rem; height: 74px; justify-content: space-between; padding: 0 2rem; position: sticky; top: 0; z-index: 25; }
.topbar-search-container { flex: 1; max-width: 560px; position: relative; }
.topbar-search { align-items: center; background: #f1f5f9; border: 1.5px solid transparent; border-radius: 10px; color: #94a3b8; display: flex; gap: .65rem; padding: .52rem .9rem; position: relative; transition: all .2s ease; width: 100%; }
.topbar-search:focus-within { background: #fff; border-color: var(--app-primary); box-shadow: 0 0 0 3.5px rgba(37, 99, 235, .12), 0 10px 25px rgba(15, 23, 42, .06); }
.topbar-search .search-icon { color: #94a3b8; font-size: .95rem; pointer-events: none; transition: color .15s ease; }
.topbar-search:focus-within .search-icon { color: var(--app-primary); }
.topbar-search input { background: transparent; border: 0; color: var(--app-text); font-size: .875rem; outline: 0; width: 100%; }
.topbar-search input::placeholder { color: #94a3b8; }
.search-clear-btn { background: none; border: 0; color: #94a3b8; cursor: pointer; display: inline-flex; font-size: .95rem; line-height: 1; padding: 0; transition: color .15s ease; }
.search-clear-btn:hover { color: #475467; }
.search-shortcut { background: #e2e8f0; border: 1px solid #cbd5e1; border-radius: 6px; color: #64748b; font-size: .66rem; font-weight: 700; padding: .15rem .45rem; pointer-events: none; white-space: nowrap; }

.topbar-search-dropdown { background: #fff; border: 1px solid var(--app-border); border-radius: 14px; box-shadow: 0 20px 45px rgba(15, 23, 42, .14), 0 0 0 1px rgba(0, 0, 0, .04); left: 0; overflow: hidden; padding-top: .65rem; position: absolute; right: 0; top: calc(100% + 8px); z-index: 1050; animation: searchFadeIn .16s ease forwards; }
@keyframes searchFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.search-filter-chips { display: flex; gap: .35rem; overflow-x: auto; padding: .2rem .9rem .65rem; border-bottom: 1px solid #f1f5f9; scrollbar-width: none; }
.search-filter-chips::-webkit-scrollbar { display: none; }
.search-chip { align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; color: #475467; cursor: pointer; display: inline-flex; font-size: .73rem; font-weight: 600; padding: .26rem .7rem; transition: all .12s ease; white-space: nowrap; }
.search-chip:hover, .search-chip.active { background: #eff6ff; border-color: #93c5fd; color: var(--app-primary); }
.search-results-content { max-height: 380px; min-height: 90px; overflow-y: auto; padding: .4rem 0; }
.search-group-title { color: #94a3b8; font-size: .68rem; font-weight: 700; letter-spacing: .05em; padding: .5rem 1.1rem .25rem; text-transform: uppercase; }
.search-result-item { align-items: center; color: var(--app-text); cursor: pointer; display: flex; justify-content: space-between; padding: .6rem 1.1rem; text-decoration: none; transition: background .12s ease; }
.search-result-item:hover, .search-result-item.is-selected { background: #f8fafc; }
.search-item-main { align-items: center; display: flex; gap: .8rem; min-width: 0; flex: 1; }
.search-item-icon { align-items: center; border-radius: 9px; display: flex; flex: 0 0 34px; font-size: 1.15rem; height: 34px; justify-content: center; width: 34px; }
.search-item-icon.folder { background: #fff7e3; color: #e8a317; }
.search-item-icon.image { background: #f3e8ff; color: #7c3aed; }
.search-item-icon.document { background: #fee2e2; color: #dc2626; }
.search-item-icon.video { background: #fdf2f8; color: #db2777; }
.search-item-icon.audio { background: #ecfdf5; color: #059669; }
.search-item-icon.archive { background: #fef3c7; color: #d97706; }
.search-item-icon.file { background: #edf4ff; color: var(--app-primary); }
.search-item-thumb { border-radius: 9px; flex: 0 0 34px; height: 34px; object-fit: cover; width: 34px; border: 1px solid var(--app-border); }
.search-item-text { flex: 1; min-width: 0; }
.search-item-text strong { color: #0f172a; display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-text small { color: #64748b; display: block; font-size: .71rem; margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-actions { display: flex; gap: .35rem; flex: 0 0 auto; }
.search-item-actions .btn { font-size: .72rem; padding: .22rem .55rem; border-radius: 6px; }
.search-empty-state, .search-initial-state, .search-loading-state { align-items: center; display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.2rem; text-align: center; color: var(--app-muted); font-size: .82rem; }
.search-dropdown-footer { align-items: center; background: #f8fafc; border-top: 1px solid #f1f5f9; color: #64748b; display: flex; font-size: .74rem; justify-content: space-between; padding: .65rem 1.1rem; }
.search-view-all-link { align-items: center; color: var(--app-primary); display: inline-flex; font-weight: 650; text-decoration: none; }
.search-view-all-link:hover { text-decoration: underline; }
.search-hint { background: #eaecf0; border-radius: 5px; font-size: .62rem; padding: 2px 6px; }
.user-menu { align-items: center; border: 0; display: flex; gap: .6rem; padding: .35rem; white-space: nowrap; }
.user-menu strong, .user-menu small { display: block; font-size: .78rem; line-height: 1.35; }
.user-menu small { color: var(--app-muted); font-size: .65rem; }
.avatar { align-items: center; background: #dbeafe; border-radius: 50%; color: var(--app-primary-dark); display: flex; font-size: .8rem; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.icon-button { font-size: 1.35rem; padding: .25rem; }
.content-area { margin: auto; max-width: 1500px; padding: 2.1rem; }
.content-header { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 1.8rem; }
.content-header .eyebrow { margin-bottom: .4rem; }
.content-header h1 { font-size: 1.75rem; font-weight: 760; letter-spacing: -.03em; margin: 0; }
.content-header p { color: var(--app-muted); font-size: .875rem; margin: .45rem 0 0; }
.stat-card, .dashboard-card { background: #fff; border: 1px solid var(--app-border); border-radius: var(--app-radius); box-shadow: 0 2px 8px rgba(16,24,40,.025); }
.stat-card { align-items: center; display: flex; gap: 1rem; height: 100%; padding: 1.15rem; }
.stat-icon { align-items: center; border-radius: 10px; display: flex; flex: 0 0 43px; font-size: 1.15rem; height: 43px; justify-content: center; }
.stat-icon.blue { background: #eaf2ff; color: #2563eb; } .stat-icon.violet { background: #f1eafe; color: #7c3aed; } .stat-icon.green { background: #e7f8ef; color: #039855; } .stat-icon.orange { background: #fff3e0; color: #e07912; }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--app-muted); font-size: .74rem; }
.stat-card strong { font-size: 1.3rem; margin-top: .15rem; }
.card-heading { align-items: center; border-bottom: 1px solid var(--app-border); display: flex; justify-content: space-between; padding: 1.2rem 1.4rem; }
.card-heading h2 { font-size: 1rem; font-weight: 750; margin: 0; }
.card-heading p { color: var(--app-muted); font-size: .75rem; margin: .25rem 0 0; }
.empty-state { align-items: center; display: flex; flex-direction: column; padding: 4.5rem 1rem; text-align: center; }
.empty-state > span { align-items: center; background: #edf4ff; border-radius: 50%; color: var(--app-primary); display: flex; font-size: 1.7rem; height: 64px; justify-content: center; width: 64px; }
.empty-state h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.empty-state p { color: var(--app-muted); font-size: .84rem; margin: 0; max-width: 420px; }
.file-list-item { align-items: center; border-bottom: 1px solid var(--app-border); display: flex; gap: .9rem; padding: .9rem 1.4rem; }
.file-list-item:last-child { border-bottom: 0; }
.file-list-item > i { color: var(--app-primary); font-size: 1.35rem; }
.file-list-item div { flex: 1; min-width: 0; }
.file-list-item strong, .file-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-item small, .file-list-item time { color: var(--app-muted); font-size: .75rem; }
.app-toast { background: #fff; border: 1px solid var(--app-border); box-shadow: var(--app-shadow); }
.verification-alert { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; font-size: .78rem; margin-bottom: 1rem; }
.verification-alert form { margin: 0; }

.file-manager-header { margin-bottom: 1.2rem; }
.app-breadcrumb { font-size: .76rem; margin-bottom: .5rem; }
.app-breadcrumb a { color: var(--app-muted); text-decoration: none; }
.app-breadcrumb a:hover { color: var(--app-primary); }
.app-breadcrumb .active { color: #344054; }
.file-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.view-switch { background: #fff; border: 1px solid var(--app-border); border-radius: 8px; padding: 3px; }
.view-switch .btn { border: 0; color: #98a2b3; padding: .35rem .58rem; }
.view-switch .btn.active { background: #edf4ff; color: var(--app-primary); }
.toolbar-note { color: var(--app-muted); font-size: .75rem; }
.file-filters { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.file-filters .form-select { border-color: var(--app-border); color: #475467; flex: 0 0 auto; min-width: 125px; width: auto; }
.file-filters .per-page-select { min-width: 105px; }
.items-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.manager-item { align-items: center; background: #fff; border: 1px solid var(--app-border); border-radius: 11px; display: flex; justify-content: space-between; min-width: 0; padding: 1rem; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.manager-item:hover { border-color: #bfdbfe; box-shadow: 0 8px 25px rgba(37,99,235,.07); transform: translateY(-1px); }
.item-main { align-items: center; display: flex; gap: .85rem; min-width: 0; }
.item-icon { align-items: center; background: #f8fafc; border-radius: 9px; display: flex; flex: 0 0 44px; font-size: 1.4rem; height: 44px; justify-content: center; text-decoration: none; width: 44px; }
.item-icon.folder { background: #fff7e3; color: #e8a317; }
.item-icon.file { background: #edf4ff; color: var(--app-primary); }
.item-icon.image { background: #f3e8ff; color: #7c3aed; }
.item-icon.pdf { background: #fee2e2; color: #dc2626; }
.item-icon.video { background: #fdf2f8; color: #db2777; }
.item-icon.audio { background: #ecfdf5; color: #059669; }
.item-thumbnail { background: #eef2f6; border-radius: 9px; display: block; flex: 0 0 44px; height: 44px; overflow: hidden; width: 44px; }
.item-thumbnail img { display: block; height: 100%; object-fit: cover; width: 100%; }
.item-copy { min-width: 0; }
.item-copy a, .item-copy strong { color: var(--app-text); display: block; font-size: .84rem; font-weight: 700; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.item-copy a:hover { color: var(--app-primary); }
.item-copy small { color: var(--app-muted); display: block; font-size: .68rem; margin-top: .28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-actions > .btn, .item-placeholder-action { border: 0; color: #98a2b3; flex: 0 0 auto; padding: .4rem; }
.item-actions .dropdown-item { align-items: center; display: flex; font-size: .8rem; gap: .65rem; padding: .55rem .8rem; }
.favorite-indicator { color: #f5b301; font-size: .8rem; margin-right: .2rem; }
.items-grid.list-view { display: block; }
.items-grid.list-view .manager-item { border-radius: 0; border-width: 0 0 1px; padding: .78rem 1rem; transform: none; }
.items-grid.list-view .manager-item:first-child { border-radius: 10px 10px 0 0; border-top-width: 1px; }
.items-grid.list-view .manager-item:last-child { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.items-grid.list-view .item-icon { background: transparent; flex-basis: 32px; height: 32px; width: 32px; }
.items-grid.list-view .item-thumbnail { flex-basis: 32px; height: 32px; width: 32px; }
.items-grid { position: relative; }
.file-manager.is-searching .items-grid { min-height: 120px; opacity: .42; pointer-events: none; }
.file-manager.is-searching .items-grid::after { animation: spinner-border .75s linear infinite; border: .2rem solid var(--app-primary); border-right-color: transparent; border-radius: 50%; content: ""; height: 2rem; left: calc(50% - 1rem); opacity: 1; position: absolute; top: 2.4rem; width: 2rem; }
.folder-empty .empty-state h2 { font-size: 1rem; margin: 1rem 0 .4rem; }
.manager-pagination { display: flex; justify-content: center; margin-top: 1.4rem; }
.manager-pagination .page-link { border-color: var(--app-border); color: #475467; }
.manager-pagination .active .page-link { background: var(--app-primary); border-color: var(--app-primary); color: #fff; }
.search-empty-inline { background: #fff; border: 1px dashed var(--app-border); border-radius: 10px; color: var(--app-muted); margin-top: 1rem; padding: 2.5rem 1rem; text-align: center; }
.app-modal { border: 0; border-radius: 14px; box-shadow: var(--app-shadow); }
.app-modal .modal-header { align-items: flex-start; border-bottom: 1px solid var(--app-border); padding: 1.2rem 1.3rem; }
.app-modal .modal-header > div { align-items: center; display: flex; gap: .7rem; }
.modal-icon { align-items: center; background: #edf4ff; border-radius: 8px; color: var(--app-primary); display: flex; height: 36px; justify-content: center; width: 36px; }
.app-modal .modal-body { padding: 1.35rem; }
.app-modal .modal-footer { border-top: 1px solid var(--app-border); padding: .9rem 1.3rem; }
.app-modal .form-label { font-size: .8rem; font-weight: 650; }
.app-modal .form-control, .app-modal .form-select { border-color: #d0d5dd; min-height: 45px; }
.file-info-panel { width: min(410px, 100vw); }
.file-info-panel .offcanvas-header { align-items: flex-start; border-bottom: 1px solid var(--app-border); padding: 1.35rem; }
.file-info-panel .offcanvas-title { font-size: 1rem; font-weight: 750; margin-top: .25rem; max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info-panel .offcanvas-body { padding: 1.35rem; transition: opacity .16s ease; }
.file-info-panel.is-loading .offcanvas-body { opacity: .45; pointer-events: none; }
.info-preview { align-items: center; background: #f5f8fc; border: 1px solid var(--app-border); border-radius: 12px; color: var(--app-primary); display: flex; font-size: 3rem; height: 190px; justify-content: center; margin-bottom: 1.4rem; overflow: hidden; }
.info-preview img { display: block; height: 100%; object-fit: contain; width: 100%; }
.file-info-list { margin: 0; }
.file-info-list > div { border-bottom: 1px solid var(--app-border); display: grid; gap: 1rem; grid-template-columns: 105px minmax(0, 1fr); padding: .8rem 0; }
.file-info-list > div:last-child { border-bottom: 0; }
.file-info-list dt { color: var(--app-muted); font-size: .72rem; font-weight: 600; }
.file-info-list dd { color: #344054; font-size: .78rem; margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.file-info-list .hash-value { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .66rem; }
.move-description { color: var(--app-muted); font-size: .82rem; }
.swal2-popup { border-radius: 14px; font-family: inherit; }
.upload-destination { color: var(--app-muted); display: block; font-size: .7rem; margin-top: .15rem; }
.upload-modal .modal-body { min-height: 310px; }
.filepond--root { font-family: inherit; margin-bottom: .8rem; }
.filepond--panel-root { background: #f8fafc; border: 1.5px dashed #bfcee3; }
.filepond--drop-label { color: #475467; min-height: 10rem; }
.filepond--label-action { color: var(--app-primary); font-weight: 750; text-decoration-color: #93c5fd; }
.filepond--item { margin: .35rem 0 !important; }
.filepond--item-panel { background: #1e293b; border-radius: 9px !important; }
.filepond--file { align-items: center; }
.filepond--file-info-main { font-size: .84rem; font-weight: 650; }
.filepond--file-info-sub { font-size: .7rem; opacity: .85; }
.filepond--file-status-main { font-size: .75rem; }
.filepond--file-status-sub { font-size: .68rem; opacity: .85; }
.upload-modal-actions { align-items: center; display: flex; gap: .8rem; justify-content: space-between; }
.upload-modal-actions span, .upload-security-note { color: var(--app-muted); font-size: .72rem; }
.upload-security-note i { color: #039855; margin-right: .25rem; }
.upload-dock { align-items: center; background: #fff; border: 1px solid var(--app-border); border-radius: 12px; bottom: 1.25rem; box-shadow: 0 15px 45px rgba(16,24,40,.18); display: flex; gap: .75rem; min-width: 290px; padding: .8rem 1rem; position: fixed; right: 1.25rem; text-align: left; z-index: 1040; }
.upload-dock[hidden] { display: none; }
.upload-dock-icon { align-items: center; background: #edf4ff; border-radius: 9px; color: var(--app-primary); display: flex; font-size: 1.05rem; height: 38px; justify-content: center; width: 38px; }
.upload-dock-icon.complete { background: #e7f8ef; color: #039855; }
.upload-dock > span:nth-child(2) { flex: 1; }
.upload-dock strong, .upload-dock small { display: block; }
.upload-dock strong { font-size: .8rem; }
.upload-dock small { color: var(--app-muted); font-size: .68rem; margin-top: .15rem; }
.upload-dock .spinner-border { color: var(--app-primary); }
.trash-card { overflow: hidden; }
.trash-warning { align-items: center; background: #fffaeb; border-bottom: 1px solid #fedf89; color: #93370d; display: flex; font-size: .78rem; gap: .55rem; padding: .75rem 1.2rem; }
.trash-list { background: #fff; }
.trash-item { align-items: center; border-bottom: 1px solid var(--app-border); display: flex; gap: .9rem; padding: .9rem 1.2rem; }
.trash-item:last-child { border-bottom: 0; }
.trash-copy { flex: 1; min-width: 0; }
.trash-copy strong, .trash-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-copy strong { font-size: .84rem; }
.trash-copy small { color: var(--app-muted); font-size: .7rem; margin-top: .25rem; }
.trash-actions { display: flex; gap: .45rem; }
.trash-actions .btn { font-size: .7rem; }
.preview-page { min-height: calc(100vh - 118px); }
.preview-header { align-items: center; background: #fff; border: 1px solid var(--app-border); border-radius: 12px; display: flex; justify-content: space-between; margin-bottom: 1rem; padding: .8rem 1rem; }
.preview-file-title { align-items: center; display: flex; gap: .7rem; min-width: 0; }
.preview-file-title > div { min-width: 0; }
.preview-file-title h1 { font-size: .9rem; font-weight: 730; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-file-title small { color: var(--app-muted); display: block; font-size: .68rem; margin-top: .2rem; }
.preview-stage { align-items: center; background: radial-gradient(circle at 50% 20%, #1e293b 0%, #090d16 100%); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; box-shadow: inset 0 2px 12px rgba(0, 0, 0, .45), 0 20px 40px rgba(15, 23, 42, .12); display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 215px); overflow: hidden; position: relative; }
.preview-stage-image { align-items: stretch; justify-content: flex-start; }
.image-toolbar { align-items: center; background: rgba(15, 23, 42, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; gap: .5rem; justify-content: center; min-height: 52px; padding: .5rem 1rem; position: sticky; top: 0; z-index: 10; }
.preview-toolbar-group { align-items: center; display: flex; gap: .35rem; }
.preview-toolbar-divider { background: rgba(255, 255, 255, .15); height: 22px; margin: 0 .4rem; width: 1px; }
.preview-tool-btn { align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; color: #e2e8f0; display: inline-flex; font-size: .84rem; height: 33px; justify-content: center; padding: 0; transition: all .16s ease; width: 33px; }
.preview-tool-btn:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .3); color: #fff; transform: translateY(-1px); }
.preview-tool-btn:active { transform: translateY(0); }
.preview-zoom-badge { color: #cbd5e1; display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .78rem; font-weight: 700; min-width: 50px; text-align: center; user-select: none; }
.preview-dim-badge { align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 7px; color: #94a3b8; display: inline-flex; font-size: .72rem; font-weight: 600; padding: .3rem .7rem; user-select: none; }
.image-viewport { align-items: center; display: flex; flex: 1; justify-content: center; min-height: calc(100vh - 275px); overflow: hidden; padding: 2rem; position: relative; user-select: none; width: 100%; }
.image-viewport.can-pan { cursor: grab; }
.image-viewport.can-pan:active { cursor: grabbing; }
.image-viewport.has-checkerboard { background-color: #0c1222; background-image: linear-gradient(45deg, #182235 25%, transparent 25%), linear-gradient(-45deg, #182235 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #182235 75%), linear-gradient(-45deg, transparent 75%, #182235 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0px; }
.image-canvas-wrapper { align-items: center; display: flex; justify-content: center; position: relative; transform-origin: center center; will-change: transform; }
.preview-image-element { border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; box-shadow: 0 25px 65px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); display: block; max-height: calc(100vh - 290px); max-width: 100%; object-fit: contain; pointer-events: none; }
.preview-stage:fullscreen { border-radius: 0; height: 100vh; max-height: 100vh; min-height: 100vh; width: 100vw; }
.preview-stage:fullscreen .image-viewport { min-height: calc(100vh - 65px); }
.preview-stage:fullscreen .preview-image-element { max-height: calc(100vh - 100px); }
.preview-video { padding: 1.25rem; }
.preview-video .plyr { max-height: calc(100vh - 245px); width: 100%; }
.preview-audio { flex-direction: column; gap: 2rem; padding: 2rem; }
.preview-audio .plyr { border-radius: 10px; max-width: 800px; width: 100%; }
.audio-preview-art { color: #fff; text-align: center; }
.audio-preview-art > span { align-items: center; background: linear-gradient(135deg, #2563eb, #7c3aed); border-radius: 28px; box-shadow: 0 20px 55px rgba(37,99,235,.28); display: flex; font-size: 4rem; height: 170px; justify-content: center; margin: auto; width: 170px; }
.audio-preview-art h2 { font-size: 1rem; margin-top: 1.2rem; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-pdf { align-items: stretch; flex-direction: column; justify-content: flex-start; }
.pdf-toolbar { align-items: center; background: #fff; border-bottom: 1px solid var(--app-border); display: flex; gap: .55rem; justify-content: center; min-height: 52px; padding: .5rem; position: sticky; top: 0; z-index: 2; }
.pdf-toolbar span { color: #475467; font-size: .72rem; }
.pdf-divider { background: var(--app-border); height: 22px; margin: 0 .35rem; width: 1px; }
.pdf-canvas-wrap { align-items: flex-start; display: flex; flex: 1; justify-content: center; overflow: auto; padding: 2rem; position: relative; }
.pdf-canvas-wrap canvas { background: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.25); }
.preview-loading { align-items: center; color: #d0d5dd; display: flex; flex-direction: column; gap: .8rem; inset: 0; justify-content: center; position: absolute; }
.preview-loading[hidden] { display: none; }
.preview-loading i { color: #fdb022; font-size: 1.8rem; }
.plyr { --plyr-color-main: var(--app-primary); }

.admin-stat-grid .stat-card { min-height: 102px; }
.admin-chart-card { height: 100%; }
.chart-wrap { height: 330px; padding: 1.25rem; position: relative; }
.chart-wrap.compact { height: 245px; }
.admin-filter { align-items: center; display: flex; gap: .7rem; margin-bottom: 1rem; padding: .85rem; }
.admin-filter .input-group { flex: 1; }
.admin-filter .input-group-text, .admin-filter .form-control, .admin-filter .form-select { background-color: #fff; border-color: var(--app-border); }
.admin-filter .form-select { max-width: 190px; }
.admin-table-card { overflow: hidden; }
.admin-table-card thead th { background: #f8fafc; border-bottom-color: var(--app-border); color: #667085; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: .8rem 1rem; text-transform: uppercase; white-space: nowrap; }
.admin-table-card tbody td { border-bottom-color: var(--app-border); color: #344054; font-size: .76rem; padding: .85rem 1rem; vertical-align: middle; }
.admin-table-card tbody tr:last-child td { border-bottom: 0; }
.admin-user { align-items: center; display: flex; gap: .7rem; min-width: 210px; }
.admin-user .avatar { flex: 0 0 36px; height: 36px; width: 36px; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { color: var(--app-text); font-size: .78rem; }
.admin-user small { color: var(--app-muted); font-size: .68rem; margin-top: .15rem; }
.status-badge, .category-badge { border-radius: 999px; display: inline-block; font-size: .66rem; font-weight: 700; padding: .3rem .55rem; }
.status-badge.active { background: #ecfdf3; color: #027a48; }
.status-badge.blocked { background: #fef3f2; color: #b42318; }
.status-badge.pending { background: #fffaeb; color: #b54708; }
.category-badge { background: #eef4ff; color: #3538cd; text-transform: capitalize; }
.table-file-name { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-form { padding: 1.4rem; }
.settings-form .form-label { color: #344054; font-size: .78rem; font-weight: 700; }
.settings-form .form-control { border-color: var(--app-border); min-height: 44px; }
.settings-form small { color: var(--app-muted); display: block; font-size: .68rem; margin-top: .4rem; }
.settings-switch { align-items: center; background: #f8fafc; border: 1px solid var(--app-border); border-radius: 10px; display: flex; gap: .7rem; min-height: 78px; padding: 1rem 1rem 1rem 3.2rem; }
.settings-switch .form-check-input { margin-left: -2.2rem; }
.settings-switch strong, .settings-switch small { display: block; }
.settings-actions { border-top: 1px solid var(--app-border); display: flex; justify-content: flex-end; margin: 1.5rem -1.4rem -1.4rem; padding: 1rem 1.4rem; }
.swal-form-label { color: #475467; display: block; font-size: .75rem; font-weight: 700; margin: .8rem auto .2rem; max-width: 80%; text-align: left; }
.swal2-popup .swal2-select, .swal2-popup .swal2-input { margin-bottom: .5rem; margin-top: .2rem; width: 80%; }

/* Profile Page Styles */
.profile-banner { align-items: center; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; border-radius: 16px; box-shadow: 0 4px 18px rgba(37, 99, 235, .06); display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; padding: 1.6rem 2rem; }
.profile-banner-stat { background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); border: 1px solid rgba(191, 219, 254, .8); border-radius: 12px; padding: .8rem 1.25rem; text-align: right; }
.avatar-lg { align-items: center; background: linear-gradient(135deg, #2563eb, #7c3aed); border-radius: 50%; box-shadow: 0 8px 24px rgba(37, 99, 235, .28); color: #fff; display: flex; flex: 0 0 68px; font-size: 1.7rem; font-weight: 800; height: 68px; justify-content: center; width: 68px; }
.profile-tabs { background: #fff; border: 1px solid var(--app-border); border-radius: 12px; padding: .35rem .6rem 0; }
.profile-tabs .nav-link { align-items: center; border: 0; border-bottom: 2.5px solid transparent; border-radius: 0; color: #475467; display: inline-flex; font-size: .86rem; font-weight: 650; gap: .5rem; padding: .75rem 1.15rem; transition: all .15s ease; }
.profile-tabs .nav-link:hover { color: var(--app-primary); }
.profile-tabs .nav-link.active { background: transparent; border-bottom-color: var(--app-primary); color: var(--app-primary); }
.profile-card { border-radius: 14px; overflow: hidden; }
.profile-card-header { align-items: center; border-bottom: 1px solid var(--app-border); display: flex; justify-content: space-between; padding: 1.15rem 1.5rem; }
.profile-card-header h3 { font-size: .95rem; font-weight: 750; margin: 0; }
.profile-card-body { padding: 1.5rem; }
.profile-card-body .form-label { color: #344054; font-size: .78rem; font-weight: 700; margin-bottom: .35rem; }
.profile-card-body .form-control { border-color: #d0d5dd; min-height: 44px; }
.profile-card-body small { color: var(--app-muted); display: block; font-size: .68rem; margin-top: .35rem; }
.storage-usage-box { background: #f8fafc; border: 1px solid var(--app-border); }
.category-stat-card { background: #fff; border-color: var(--app-border); transition: transform .15s ease, box-shadow .15s ease; }
.category-stat-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .06); transform: translateY(-2px); }
.cat-icon { align-items: center; border-radius: 10px; display: inline-flex; font-size: 1.25rem; height: 40px; justify-content: center; width: 40px; }
.cat-icon.image { background: #f3e8ff; color: #7c3aed; }
.cat-icon.document { background: #fee2e2; color: #dc2626; }
.cat-icon.video { background: #fdf2f8; color: #db2777; }
.cat-icon.audio { background: #ecfdf5; color: #059669; }
.cat-icon.archive { background: #fef3c7; color: #d97706; }
.cat-icon.other { background: #f1f5f9; color: #475467; }

@media (max-width: 991.98px) {
    .hero-section { padding: 5rem 0; }
    .product-preview { transform: none; }
    .app-main { margin-left: 0; width: 100%; }
    .sidebar-inner { min-height: calc(100vh - 68px); }
    .content-area { padding: 1.5rem; }
    .admin-table-card { border-radius: 10px; }
}
@media (max-width: 575.98px) {
    .app-navbar .btn-link { display: none; }
    .hero-section { padding: 3.8rem 0; }
    .hero-section h1 { font-size: 3.2rem; }
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
    .preview-file:last-child { display: none; }
    .app-topbar { height: 66px; padding: 0 .9rem; }
    .topbar-search { padding: .45rem .6rem; }
    .topbar-search-container { max-width: none; }
    .topbar-search-dropdown { left: -8px; right: -8px; border-radius: 12px; }
    .content-area { padding: 1.1rem .85rem; }
    .content-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .content-header .btn { width: 100%; }
    .stat-card { align-items: flex-start; flex-direction: column; gap: .7rem; }
    .items-grid { grid-template-columns: 1fr; }
    .file-manager-header .btn { width: 100%; }
    .file-manager-header .dropdown, .file-manager-header .dropdown > .btn { width: 100%; }
    .file-toolbar { align-items: stretch; flex-direction: column; gap: .8rem; }
    .view-switch { align-self: flex-start; }
    .file-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .file-filters .form-select { min-width: 0; }
    .file-filters .form-select { width: 100%; }
    .file-filters .per-page-select { grid-column: 1 / -1; }
    .upload-modal-actions { align-items: stretch; flex-direction: column; }
    .upload-dock { bottom: .75rem; left: .75rem; min-width: 0; right: .75rem; }
    .trash-item { align-items: flex-start; }
    .trash-actions { flex-direction: column; }
    .trash-actions .btn span { display: none; }
    .preview-header { align-items: stretch; flex-direction: column; gap: .7rem; }
    .preview-header > .btn { width: 100%; }
    .preview-stage { min-height: calc(100vh - 290px); }
    .image-toolbar { flex-wrap: wrap; padding: .4rem .6rem; }
    .image-viewport { min-height: calc(100vh - 350px); padding: 1rem; }
    .pdf-canvas-wrap { padding: 1rem; }
    .admin-filter { align-items: stretch; flex-direction: column; }
    .admin-filter .form-select { max-width: none; }
    .admin-filter .btn { width: 100%; }
    .chart-wrap { height: 270px; padding: .8rem; }
    .settings-actions .btn { width: 100%; }
    .profile-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 1.2rem; }
    .profile-banner .avatar-lg { margin: auto; }
    .profile-banner-stat { text-align: center; }
    .profile-banner-stat .progress { margin: .5rem auto 0; }
}
/* Paylaşım ve premium kota */
.plan-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .65rem;border-radius:999px;font-size:.78rem;font-weight:700;border:1px solid #d0d5dd;background:#f9fafb;color:#475467;white-space:nowrap}
.plan-badge.premium{background:#fffaeb;border-color:#fedf89;color:#b54708}
.status-badge.reviewing{background:#eff8ff;color:#175cd3}.status-badge.approved{background:#ecfdf3;color:#027a48}.status-badge.rejected{background:#fef3f2;color:#b42318}
.quota-request-card{background:linear-gradient(145deg,#fff 0%,#f8faff 100%);border-color:#dce5f5!important}
.quota-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.quota-admin-card{padding:1.25rem}
.quota-request-details{display:grid;gap:.65rem;margin:0 0 1rem}
.quota-request-details>div{display:grid;grid-template-columns:140px 1fr;gap:.75rem}
.quota-request-details dt{color:#667085;font-size:.8rem}
.quota-request-details dd{margin:0;color:#344054;overflow-wrap:anywhere}
[data-share-link] .form-control{font-size:.86rem}
.share-once-option{background:#f8fafc;border:1px solid #e4e7ec;border-radius:10px;padding:.8rem .9rem .8rem 2.3rem}.share-once-option label{display:flex;flex-direction:column;gap:.15rem}.share-once-option small{color:#667085;font-size:.78rem}
.public-download-section{background:radial-gradient(circle at 50% 0,rgba(37,99,235,.12),transparent 38%),#f6f8fc;display:grid;min-height:calc(100vh - 154px);padding:4rem 0;place-items:center}.public-download-card{background:#fff;border:1px solid #e4e7ec;border-radius:22px;box-shadow:0 24px 70px rgba(16,24,40,.1);margin:auto;max-width:720px;padding:2.5rem;text-align:center}.public-download-shield{color:#027a48;font-size:.82rem;font-weight:700;margin-bottom:1.5rem}.public-download-icon{align-items:center;background:#eff4ff;border-radius:20px;color:#2563eb;display:inline-flex;font-size:2.7rem;height:86px;justify-content:center;margin-bottom:1.35rem;width:86px}.public-download-card h1{font-size:clamp(1.5rem,4vw,2.25rem);font-weight:800;letter-spacing:-.03em;margin:.1rem auto 1.25rem;max-width:600px;overflow-wrap:anywhere}.public-download-meta{color:#667085;display:flex;flex-wrap:wrap;font-size:.83rem;gap:.75rem 1.25rem;justify-content:center;margin-bottom:1.5rem}.public-download-meta span{align-items:center;display:inline-flex;gap:.35rem}.public-download-warning{align-items:center;display:flex;gap:.75rem;margin:0 auto 1.5rem;max-width:570px;text-align:left}.public-download-warning>i{font-size:1.4rem}.public-download-button{min-width:min(100%,260px);padding:.85rem 1.4rem}.public-download-note{color:#667085;font-size:.8rem;margin:1rem 0 0}
@media(max-width:767.98px){.quota-admin-grid{grid-template-columns:1fr}.quota-request-details>div{grid-template-columns:1fr;gap:.15rem}}
@media(max-width:575.98px){.public-download-section{padding:2rem 0}.public-download-card{border-radius:16px;padding:1.5rem}.public-download-meta{align-items:center;flex-direction:column}}
