/* Sarıyaka panel — minimalist gri + sarı tema (Sarı Yaka), UIkit üstüne.
   Bootstrap = yalnız grid/utility · UIkit = bileşenler · bu dosya = tema (en son yüklenir). */
:root {
  --yellow:      #F5B301;
  --yellow-dark: #e0a200;
  --yellow-soft: #FEF3C7;
  --yellow-ink:  #7c5e00;
  --ink:         #1c1c1c;   /* başlık / sidebar */
  --body:        #4b5563;   /* gövde metni */
  --muted:       #9ca3af;
  --line:        #ececef;
  --bg:          #f6f6f7;
  --card:        #ffffff;
  --sidebar-bg:  #1c1c1c;
  --sidebar-fg:  #9a9a9a;
}

/* --- Tipografi (Inter) --- */
html, body { font-family: Inter, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; }
body { background: var(--bg); color: var(--body); font-size: 14px; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 1.25rem; }  h5 { font-size: 1.05rem; }  h6 { font-size: .92rem; font-weight: 600; }
a { color: var(--yellow-ink); text-decoration: none; }
a:hover { color: var(--ink); }
.small, small { font-size: 12px; }
.text-muted { color: var(--muted) !important; }

/* --- Yerleşim --- */
.layout { display: flex; min-height: 100vh; }

/* Sidebar (charcoal gri) */
.sidebar { width: 224px; flex-shrink: 0; background: var(--sidebar-bg); color: var(--sidebar-fg);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 16px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--yellow); color: #1c1c1c;
  font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.brand-title { color: #fff; font-weight: 600; letter-spacing: .2px; line-height: 1.15; }
.brand-subtitle { font-size: 11px; color: #6f6f6f; margin-top: 1px; }
.nav-section { padding: 6px 12px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #5f5f5f; padding: 12px 12px 6px; }
.sidebar .nav-link { display: flex; align-items: center; gap: 11px; color: var(--sidebar-fg);
  padding: 8px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 1px; transition: .12s; }
.sidebar .nav-link i { font-size: 16px; width: 18px; text-align: center; opacity: .85; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.055); color: #f3f3f3; }
.sidebar .nav-link.active { background: var(--yellow); color: #1c1c1c; font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.07); }

.content { flex: 1; padding: 28px 32px; max-width: 1250px; }

/* --- UIkit buttons → düz, minimalist --- */
.uk-button { border-radius: 8px; text-transform: none; font-size: 13px; font-weight: 600;
  line-height: 34px; padding: 0 16px; transition: .12s; border: 1px solid transparent; }
.uk-button-small { line-height: 28px; font-size: 12.5px; padding: 0 12px; }
.uk-button-primary { background: var(--yellow); color: #1c1c1c; }
.uk-button-primary:hover { background: var(--yellow-dark); color: #1c1c1c; }
.uk-button-default { background: #fff; border-color: var(--line); color: #374151; }
.uk-button-default:hover { background: #fafafa; border-color: #d9d9de; color: var(--ink); }
.uk-button-danger { background: #ef4444; color: #fff; }
.uk-button-danger:hover { background: #dc2626; }
.uk-button-text { color: var(--yellow-ink); padding: 0; line-height: inherit; }
.uk-button:disabled { opacity: .5; }

/* --- UIkit cards → hairline, gölgesiz --- */
.uk-card-default { box-shadow: none !important; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.uk-card-body { padding: 18px; }
.stat-card b { font-size: 25px; color: var(--ink); font-weight: 700; }
.stat-card .icon { font-size: 20px; color: var(--yellow); }

/* --- UIkit tables --- */
.uk-table { font-size: 13px; color: var(--body); margin: 0; }
.uk-table th { text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; color: var(--muted);
  font-weight: 600; border-bottom: 1px solid var(--line); padding: 10px 12px; }
.uk-table td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: middle; }
.uk-table-hover tbody tr:hover { background: #fafafa; }
.uk-table tbody tr:first-child td { border-top: 0; }

/* --- UIkit forms --- */
.uk-input, .uk-select, .uk-textarea { border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); height: 36px; font-size: 13.5px; }
.uk-textarea { height: auto; padding: 8px 10px; }
.uk-input:focus, .uk-select:focus, .uk-textarea:focus { border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,179,1,.16); outline: none; }

/* --- UIkit labels (rozet) --- */
.uk-label { text-transform: none; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 500;
  background: #f4f4f5; color: var(--body); border: 1px solid var(--line); line-height: 1.4; }
.uk-label-success { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.uk-label-warning { background: var(--yellow-soft); color: var(--yellow-ink); border-color: #fde68a; }
.uk-label-danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* --- Uyarılar --- */
.uk-alert { border-radius: 10px; padding: 12px 14px; border: 1px solid transparent; }
.uk-alert-primary { background: var(--yellow-soft); color: var(--yellow-ink); border-color: #fde68a; }
.uk-alert-warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.uk-alert-danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.uk-alert-success { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }

/* leftover Bootstrap parçaları (input-group / form-check) — sade */
.input-group-text { background: #fafafa; border-color: var(--line); color: var(--muted); }
.form-check-input:checked { background-color: var(--yellow); border-color: var(--yellow); }

pre.logbox { background: #1c1c1c; color: #d7d7d7; padding: 16px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.55; max-height: 70vh; overflow: auto; }
img.thumb { height: 76px; border-radius: 8px; margin: 3px; border: 1px solid var(--line); background: #fff; }

/* Giriş */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--sidebar-bg); }
.login-card { width: 340px; }
.login-card .brand-mark { margin: 0 auto; }

/* Telefon */
@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding-bottom: 6px; }
  .brand { padding: 10px 12px 6px; }
  .nav-section { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px 8px; }
  .nav-label { display: none; }
  .sidebar .nav-link { padding: 6px 10px; font-size: 13.5px; }
  .sidebar-footer { margin: 0; border: 0; padding: 2px 8px; }
  .content { padding: 16px 12px; }
}
