:root {
    --purple: #7b2fbe;
    --pink: #d02a8c;
    --blue: #2f80ed;
    --blue-dark: #1c66d1;
    --teal: #1f7a8c;
    --teal-dark: #17606e;
    --text: #2b2f36;
    --muted: #7a8190;
    --border: #e3e6eb;
    --bg: #f5f6f8;
    --card: #ffffff;
    --green-bg: #e3fbe3;
    --red: #d93025;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---- Ust bar ---- */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.logo {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo span { font-size: 14px; font-weight: 600; }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: #666; font-weight: 600; font-size: 13px; }
.page-files .topbar { background: #2d3340; border-bottom-color: #2d3340; }
.page-files .topbar nav a { color: #c9ced8; }

/* ---- Butonlar ---- */
.btn {
    display: inline-block;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 4px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-teal { background: var(--teal); border-color: var(--teal-dark); color: #fff; }
.btn-small { padding: 3px 10px; font-size: 12px; }

/* ---- Yukleme (hero) ---- */
.hero {
    min-height: calc(100vh - 64px - 50px);
    padding: 90px 16px 60px;
    text-align: center;
    color: #fff;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px),
        radial-gradient(ellipse at 60% 20%, #9cc8ff 0%, transparent 45%),
        linear-gradient(180deg, #2a5fbf 0%, #1a3f8f 55%, #6f93d1 100%);
    transition: outline .1s;
}
.hero.drag { outline: 4px dashed rgba(255,255,255,.8); outline-offset: -20px; }
.hero h1 { font-size: 40px; margin: 0 0 30px; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.btn-upload {
    background: var(--blue);
    color: #fff;
    border: 0;
    font-size: 26px;
    font-weight: 700;
    padding: 14px 48px;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    cursor: pointer;
}
.btn-upload:hover { background: var(--blue-dark); }
.ico-up { margin-left: 6px; }
.hero-sub { font-size: 22px; font-weight: 700; margin: 140px 0 6px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hero-small { font-size: 13px; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ---- Kart / kapsayici ---- */
.container { width: 100%; max-width: 1120px; margin: 32px auto; padding: 0 16px; flex: 1; }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}
.card h2 { margin: 0 0 6px; font-size: 20px; }
label { display: block; font-weight: 600; margin: 12px 0; }
label input[type=text], label input[type=password], label input[type=url], label textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font: inherit;
}
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.alert { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }
.alert-error { background: #fdecea; color: #a12622; }
.alert-success { background: #e6f4ea; color: #1e6b34; }

/* ---- Yukleme kuyrugu ---- */
.q-row { border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin-top: 12px; }
.q-head { display: flex; gap: 12px; align-items: center; }
.q-name { font-weight: 600; flex: 1; overflow-wrap: anywhere; }
.q-size { color: var(--muted); white-space: nowrap; }
.q-remove { border: 0; background: none; color: var(--red); font-size: 16px; cursor: pointer; }
.q-vt { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; font: inherit; }
.progress { height: 8px; background: #eef0f3; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.q-status { margin-top: 6px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-done .progress-fill { background: #34a853; }
.q-error .q-status { color: var(--red); }
.q-link { overflow-wrap: anywhere; }
.queue-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.queue-actions .inline:last-of-type { margin-right: auto; }

/* ---- Giris ---- */
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 22px; margin: 0 0 10px; }
.login-card .btn { width: 100%; margin-top: 8px; padding: 10px; }

/* ---- Dosya yoneticisi ---- */
.manager { display: flex; flex: 1; min-height: calc(100vh - 64px - 50px); }
.sidebar { width: 200px; flex-shrink: 0; background: #2d3340; color: #fff; padding: 16px 12px; }
.side-title { font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid #3e4554; margin-bottom: 14px; }
.side-link { display: block; color: #fff; padding: 6px 0; }
.side-link.active, .side-folder.active { font-weight: 700; color: #7fd3e0; }
.side-folders { margin: 4px 0 10px; }
.side-folder { display: block; color: #d6dae2; padding: 5px 0 5px 10px; font-size: 13px; overflow-wrap: anywhere; }
.side-new { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #3e4554; }
.side-new input { width: 100%; padding: 5px 7px; font-size: 12px; }
.side-usage { font-size: 12px; color: #aab0bc; margin-top: 10px; }
.side-hint { font-size: 11px; color: #8d94a2; padding: 6px 0 0 10px; }
.side-link.drop-over, .side-folder.drop-over { background: var(--teal); color: #fff; border-radius: 4px; }
body.dragging-rows [data-folder] { outline: 1px dashed #7fd3e0; outline-offset: -1px; border-radius: 4px; }
.ftable tr[draggable="true"] { cursor: grab; }
.ftable tr.drag-src { opacity: .45; }
.folder-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.folder-head .manager-title { margin: 0 auto 0 0; }
.bulk-move { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.manager-main { flex: 1; padding: 40px 36px; background: #fff; min-width: 0; }
.manager-title { font-size: 20px; color: #555; margin: 0 0 20px; }
.table-wrap { overflow-x: auto; }
.ftable { width: 100%; border-collapse: collapse; font-size: 12px; }
.ftable th { background: var(--teal); color: #fff; padding: 14px 10px; font-weight: 700; text-align: center; white-space: nowrap; }
.ftable td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.ftable td:nth-child(2) { text-align: left; }
.ftable tbody tr:nth-child(even) { background: #eef5f6; }
.ftable .c-num { text-align: right; }
.ftable .c-chk { width: 40px; }
.ftable .c-folder select { max-width: 140px; font-size: 12px; padding: 2px 4px; }
.ftable .c-public { background: var(--green-bg); }
.ftable .c-public:not(.on) { background: #f6eaea; }
.ftable .empty { padding: 30px; color: var(--muted); }
.fdesc { color: var(--muted); margin-top: 3px; }
.link-copy { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 0; cursor: pointer; text-decoration: underline; }
.ico-edit { color: #e0a43a; font-size: 16px; }
.ico-del { border: 0; background: none; color: var(--red); font-size: 15px; cursor: pointer; }
.bulk-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.edit-card { max-width: 640px; margin-bottom: 28px; }
.row-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- Indirme sayfasi ---- */
.file-card { max-width: 1100px; margin: 0 auto; }
.file-head { display: flex; align-items: center; gap: 16px; }
.file-icon {
    width: 56px; height: 56px; border-radius: 10px;
    background: var(--blue); color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.file-name { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.file-desc { margin: 14px 0 0; }
.file-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.file-info div { border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; }
.file-info span { display: block; font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin-bottom: 4px; }
.vt-box { margin-top: 20px; border-radius: 8px; padding: 16px 20px; border: 1px solid var(--border); }
.vt-box.has { border-color: #b8cff7; background: #f2f7ff; }
.vt-title { font-weight: 700; font-size: 15px; }
.vt-title::before { content: "\1F6E1\FE0F  "; }
.vt-box p { margin: 6px 0 12px; }
.vt-box.none p { margin-bottom: 0; }
.btn-vt { background: #394eff; border-color: #394eff; color: #fff; }
.wait-box {
    margin-top: 20px; padding: 14px; text-align: center; font-weight: 700;
    color: #1a4fa0; background: #eef5ff; border: 1px solid #c4dafa; border-radius: 6px;
}
.wait-box.ready { color: #1e6b34; background: #e6f4ea; border-color: #b7dfc2; }
.dl-wrap { text-align: center; margin-top: 16px; }
.btn-download { background: var(--blue); border-color: var(--blue); color: #fff; padding: 14px 40px; font-size: 16px; }
.btn-download.disabled { background: #e9eaec; border-color: #ddd; color: #a3a7ad; cursor: not-allowed; }
.notfound { text-align: center; }
.howto { max-width: 1100px; margin: 16px auto 0; }
.howto-title { font-size: 17px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.howto-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.howto-steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; line-height: 1.7; }
.howto-steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--blue); color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.howto-note { margin: 4px 0 0; line-height: 1.7; color: #555; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; height: 50px; }

@media (max-width: 760px) {
    .topbar { padding: 0 16px; }
    .logo { font-size: 20px; }
    .logo span { display: none; }
    .topbar nav { gap: 12px; }
    .hero { padding-top: 50px; }
    .hero h1 { font-size: 26px; }
    .hero-sub { margin-top: 60px; font-size: 17px; }
    .manager { flex-direction: column; }
    .sidebar { width: auto; }
    .manager-main { padding: 20px 16px; }
    .file-info { grid-template-columns: 1fr; }
}

/* ---- Yasal Bilgiler ---- */
.legal { max-width: 820px; margin: 0 auto; line-height: 1.6; }
.legal h1 { margin: 0 0 4px; font-size: 26px; }
.legal h2 { margin: 24px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
