/* Panel layout on top of BlazorBlueprint's theme variables (themes.css: data-base-color / data-primary-color on <html>). */
:root { --radius: 0.625rem; }

html, body { margin: 0; background: var(--background); color: var(--foreground); }
body { font-family: var(--font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); font-size: 14px; -webkit-font-smoothing: antialiased; }
code, .mono, pre { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); }
@layer base { a { color: inherit; } }

/* Sidebar */
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; padding: .25rem .25rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0;
    border-radius: calc(var(--radius) - 2px); background: var(--primary); color: var(--primary-foreground); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; overflow: hidden; white-space: nowrap; }
.brand-title { font-weight: 600; font-size: .95rem; }
.brand-sub { font-size: .75rem; color: var(--muted-foreground); }
[data-state="collapsed"] .brand-text, [data-state="collapsed"] .user-text, [data-state="collapsed"] .user-box form { display: none; }
.user-box { display: flex; align-items: center; gap: .6rem; padding: .35rem .25rem; }
.user-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.user-name { font-weight: 500; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-login { font-size: .75rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Top bar + page */
.topbar { display: flex; align-items: center; gap: .5rem; height: 3.5rem; padding: 0 1rem; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--background); z-index: 10; }
.topbar-sep { height: 1rem !important; margin: 0 .25rem; }
.topbar-title { font-size: .85rem; color: var(--muted-foreground); }
.page { padding: 1.5rem; max-width: 1280px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 1.25rem; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.page-desc { margin: .25rem 0 0; color: var(--muted-foreground); }
.page-actions { display: flex; gap: .5rem; align-items: center; }
.crumbs { margin-bottom: -.5rem; }
.page-loading, .table-loading { display: flex; justify-content: center; padding: 3rem; }
.section { margin-top: .25rem; }

/* Utility bits */
.muted { color: var(--muted-foreground); }
.small { font-size: .8rem; }
.strong { font-weight: 500; }
.w-full { width: 100%; }
.mb { margin-bottom: 1rem; }
.plain-link { text-decoration: none; }
.plain-link:hover { text-decoration: underline; }
.code-link { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 600; color: var(--primary); text-decoration: none; }
.code-link:hover { text-decoration: underline; }
.origin-chip { font-family: var(--font-mono, ui-monospace, monospace); font-size: .78rem; background: var(--muted); padding: .1rem .4rem; border-radius: 4px; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.stat-value { font-size: 1.75rem !important; font-weight: 600; }
.stat-value.mono { font-size: 1.1rem !important; }
.stat-of { font-size: 1rem; color: var(--muted-foreground); font-weight: 400; }
.stat-skeleton { height: 128px; border-radius: var(--radius); }

/* Tables */
.flush { padding: 0 !important; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; font-weight: 500; color: var(--muted-foreground); padding: .65rem 1rem; border-bottom: 1px solid var(--border);
    white-space: nowrap; font-size: .8rem; }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: color-mix(in oklch, var(--muted) 60%, transparent); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .actions { width: 1%; text-align: right; }
.table-footer { border-top: 1px solid var(--border); padding-top: .9rem !important; }
.toolbar { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
    border-bottom: 1px solid var(--border); padding-bottom: 1rem !important; }
.search { max-width: 320px; }
.segmented { display: inline-flex; background: var(--muted); border-radius: calc(var(--radius) - 2px); padding: 3px; }
.segmented button { border: 0; background: transparent; padding: .3rem .8rem; border-radius: calc(var(--radius) - 4px); font: inherit; font-size: .8rem;
    color: var(--muted-foreground); cursor: pointer; }
.segmented button.active { background: var(--background); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / .08); font-weight: 500; }
.person { display: flex; align-items: center; gap: .65rem; }
.self-badge { margin-left: .35rem; }
.danger-item { color: var(--destructive) !important; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1.25rem; align-items: start; }
.form-layout.narrow { grid-template-columns: minmax(0, 560px); }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.side-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .25rem; }
.switch-field { align-items: flex-start !important; gap: .75rem; }
.textarea-tall { min-height: 6.5rem; }
.pad-top { padding-top: 1.5rem !important; }
.danger-card { border-color: color-mix(in oklch, var(--destructive) 35%, var(--border)) !important; }
.code-block { margin: 0; background: var(--muted); border-radius: calc(var(--radius) - 2px); padding: .75rem; font-size: .78rem; white-space: pre-wrap; word-break: break-all; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .875rem; }
.facts dt { color: var(--muted-foreground); }
.facts dd { margin: 0; }

/* Plain inputs on the static sign-in page (styled like the library's input). */
.native-input { width: 100%; box-sizing: border-box; height: 2.25rem; padding: .25rem .75rem; font: inherit; font-size: .875rem; color: var(--foreground);
    background: transparent; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); box-shadow: 0 1px 2px rgb(0 0 0 / .05); outline: none; }
.native-input:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }

/* Password reveal */
.reveal-grid { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; align-items: center; margin: .5rem 0; }
.reveal-value { display: flex; align-items: center; gap: .5rem; }
.reveal-value code { background: var(--muted); padding: .3rem .55rem; border-radius: 6px; font-size: .9rem; }
.reveal-value code.secret { font-weight: 600; letter-spacing: .02em; }

/* Sign-in */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
    background: radial-gradient(1200px 500px at 50% -10%, color-mix(in oklch, var(--primary) 12%, transparent), transparent), var(--muted); }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: .5rem; }
.auth-title { text-align: center; font-size: 1.35rem !important; }
.auth-desc { text-align: center; }
h1:focus, h1:focus-visible { outline: none; }
.data-table .num, .data-table .nowrap { white-space: nowrap; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 6px; border: 1px solid var(--border);
    background: var(--background); color: var(--muted-foreground); cursor: pointer; }
.copy-btn:hover { color: var(--foreground); background: var(--muted); }
/* Card header with an action on the right (shadcn layout). */
.head-with-action { display: grid !important; grid-template-columns: 1fr auto; column-gap: 1rem; }
.head-with-action > .head-action { grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-self: end; }
.head-with-action > :not(.head-action) { grid-column: 1; }

/* Row actions: plain icon buttons (no popover). */
.row-actions { display: inline-flex; gap: .15rem; justify-content: flex-end; }

/* Update page */
.small-title { font-size: 1.15rem !important; }
.progress-row { display: flex; align-items: center; gap: 1rem; }
.progress-track { flex: 1; height: .75rem; background: var(--muted); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .6s ease; }
.progress-value { font-weight: 600; font-size: 1.1rem; min-width: 4.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.progress-meta { display: flex; gap: 1.5rem; margin: .6rem 0 1.25rem; flex-wrap: wrap; }
.warn-text { color: oklch(0.6 0.15 60); font-weight: 500; }
.step-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
@media (max-width: 900px) { .step-timeline { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: .35rem; padding: .75rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); }
.step-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 999px;
    background: var(--muted); color: var(--muted-foreground); }
.step-dot { width: .45rem; height: .45rem; border-radius: 999px; background: currentColor; opacity: .5; }
.step-name { font-weight: 500; font-size: .85rem; }
.step-basarili .step-icon { background: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); }
.step-calisiyor { border-color: var(--primary); }
.step-calisiyor .step-icon { background: var(--primary); color: var(--primary-foreground); }
.step-basarisiz .step-icon { background: color-mix(in oklch, var(--destructive) 15%, transparent); color: var(--destructive); }
.step-atlandi { opacity: .6; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.log-details { margin-top: 1rem; }
.log-details summary { cursor: pointer; font-size: .85rem; color: var(--muted-foreground); margin-bottom: .5rem; }
.log-block { max-height: 320px; overflow: auto; white-space: pre; word-break: normal; margin-top: 1rem; }
.selected-row { background: color-mix(in oklch, var(--primary) 6%, transparent); }

/* Güncelleme: SFTP form */
.form-actions-left { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.section-tight { margin-top: 1rem; }
.check-result { display: grid; gap: .25rem; }
.check-line { display: flex; gap: .4rem; align-items: center; font-weight: 500; }
.ok-text { color: oklch(0.6 0.13 160); }
