
/* ── VARIABLES ── */
:root{
  --bg:#090d18;
  --panel:#101726;
  --panel-2:#151d31;
  --muted:#94a3b8;
  --text:#eef2ff;
  --line:rgba(255,255,255,.08);
  --green:#22c55e;
  --red:#ef4444;
  --blue:#60a5fa;
  --purple:#8b5cf6;
  --pink:#ec4899;
  --input:#0c1322;
}

/* ── RESET ── */
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:radial-gradient(circle at top,#111b34 0,#090d18 35%,#060812 100%);
  color:var(--text);
}
a{color:#9cc0ff;text-decoration:none}

/* ── LAYOUT ── */
.container{
  max-width:1180px;
  margin:0 auto;
  padding:16px;
  padding-top:200px;
}

/* ── FIXED HEADER SHELL ── */
.header{
  position:fixed;
  top:0; left:0; right:0;
  width:100%;
  z-index:100;
  background:rgba(9,13,24,.97);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* ── HEADER VARIANTS ── */
.desktop-header,
.mobile-header{
  width:100%;
}

.desktop-header{display:flex;flex-direction:column;gap:6px;padding:10px 24px 10px}

.mobile-header{display:none;flex-direction:column;gap:10px;padding:10px 14px 12px}

/* ════════════════════════════════
   DESKTOP HEADER  (>= 901px)
   Row 1: [Brand] [nav pills …] [Muaji  Dil]
   Row 2: [balance pill] [hyrje pill] [dalje pill]
   ════════════════════════════════ */
.desktop-header{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 24px 10px;
  width:100%;
}
.desktop-header .dh-row1{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
}
/* Brand block */
.desktop-header .dh-brand{
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  gap:1px;
  align-items:flex-start;
}
..desktop-header .dh-brand h1{
  margin:0;
  font-size:32px;
  font-weight:800;
  line-height:1.05;
  white-space:nowrap;
}
.desktop-header .dh-brand .dh-sub{
  font-size:13px;
  color:var(--muted);
  white-space:nowrap;
}
/* Nav pills — take remaining space */
.desktop-header .dh-nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  min-width:0;
  flex-wrap:nowrap;
  overflow:hidden;
}
.desktop-header .dh-nav .pill{
  font-size:14px;
  padding:10px 16px;
  min-height:44px;
  border-radius:20px;
}
/* Right block — month + dil */
.desktop-header .dh-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.desktop-header .dh-month{
  font-size:15px;
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
}
/* Summary row inside desktop header */
.desktop-header .summary-row{
  margin:0;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
  margin:0;
  grid-template-columns:repeat(3,1fr);
}

/* ════════════════════════════════
   MOBILE HEADER  (<= 900px)
   Row 1: [Muaji: Prill 2026]  [Eksporto CSV] [●Dil]
   Row 2: big brand centred
   Row 3: 3 summary pills
   Row 4: 3×2 button grid
   ════════════════════════════════ */
.mobile-header{
  display:none;
  flex-direction:column;
  gap:10px;
  padding:10px 14px 12px;
  width:100%;
}
/* Row 1 */
.mob-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:8px;
}
.mob-topbar .mob-month{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
}
.mob-topbar .mob-actions{
  display:flex;
  align-items:center;
  gap:6px;
}
/* Row 2 */
.mob-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:2px;
}
.mob-brand h1{
  margin:0;
  font-size:40px;
  font-weight:800;
  line-height:1.1;
}
.mob-brand .mob-sub{
  font-size:13px;
  color:var(--muted);
}
/* Row 3 — summary — handled by .summary-row below */
/* Row 4 — button grid */
.mob-btn-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  width:100%;
}
.mob-btn-grid .pill{
  width:100%;
  text-align:center;
  padding:12px 6px;
  min-height:50px;
  font-size:13px;
  font-weight:600;
  border-radius:20px;
}

/* ── SHARED accent colours ── */
.accent1{color:#60a5fa}
.accent2{color:#f472b6}
.muted{color:var(--muted);font-size:13px;line-height:1.4}

/* ── PILLS ── */
.pill{
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  color:var(--text);
  border-radius:16px;
  padding:8px 14px;
  font-size:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s,color .15s,transform .15s,box-shadow .15s;
}
.pill:hover{background:rgba(255,255,255,.18);transform:translateY(-1px);color:#fff;}
.pill.small{padding:6px 10px;font-size:11px;min-height:30px;border-radius:14px}
.pill.round{width:38px;height:38px;padding:0;border-radius:999px;flex-shrink:0}
.pill.purple{background:linear-gradient(180deg,#8b5cf6,#6d28d9);border-color:rgba(139,92,246,.4);color:#e9d5ff}
.pill.blue{background:rgba(96,165,250,.15);border-color:rgba(96,165,250,.35);color:#bfdbfe}
.pill.danger{background:linear-gradient(180deg,#b91c1c,#991b1b);border-color:rgba(239,68,68,.5);color:#ffe4e6}
.pill.danger.small{background:linear-gradient(180deg,#b91c1c,#991b1b);border-color:rgba(239,68,68,.6);color:#ffe4e6}
.pill.active{background:rgba(96,165,250,.20);border-color:rgba(96,165,250,.45);color:#e0f2fe}
.pill.purple.active{background:linear-gradient(180deg,#7c3aed,#5b21b6);border-color:rgba(139,92,246,.65);color:#ede9fe}
.pill.blue.active{background:linear-gradient(180deg,#60a5fa,#2563eb);border-color:rgba(96,165,250,.6);color:#dbeafe}

/* ── SUMMARY ROW ── */
.summary-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:4px 0 0;
}
.summary-pill{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:3px;
  min-height:56px;
}
.summary-pill strong{font-size:14px;font-weight:700;color:var(--text);line-height:1.1}
.summary-pill span{font-size:12px;color:var(--muted)}
.summary-pill--balance{background:rgba(96,165,250,.08);border-color:rgba(96,165,250,.2)}
.summary-pill--in{background:rgba(34,197,94,.08);border-color:rgba(34,197,94,.2)}
.summary-pill--out{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.2)}

/* ── DOTS ── */
.dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.dot.blue{background:var(--blue)}.dot.green{background:var(--green)}.dot.red{background:var(--red)}.dot.yellow{background:#facc15}

/* ── FORMS / INPUTS ── */
select,input,textarea,button{
  width:100%;border-radius:16px;border:1px solid var(--line);
  background:var(--input);color:var(--text);padding:14px 16px;font-size:16px;min-height:44px;
}
button{cursor:pointer;font-weight:700;background:linear-gradient(180deg,#1f2b47,#172038);border:none;
  transition:transform .15s,filter .15s,box-shadow .15s,background .15s,color .15s}
button:hover{transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 8px 20px rgba(0,0,0,.15)}
button.primary{background:linear-gradient(180deg,#2563eb,#1d4ed8)}
button.ghost{background:transparent;border:1px solid var(--line)}
button.danger{background:linear-gradient(180deg,#7f1d1d,#991b1b)}

/* ── MONTH FORM ── */
.month-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.month-form input,.month-form button{min-width:180px}
.month-form select,input[type="month"]{min-width:180px}
.month-label{color:var(--text);font-weight:700;white-space:nowrap}

/* ── GRID / CARDS ── */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}
.span-4{grid-column:span 4}.span-6{grid-column:span 6}.span-8{grid-column:span 8}.span-12{grid-column:span 12}
.card{background:rgba(14,20,34,.98);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:26px;box-shadow:0 18px 50px rgba(0,0,0,.22)}
.card h2{margin:0 0 16px;font-size:20px;letter-spacing:.01em}
.card h3,.card h4{margin:0 0 14px}
.card-intro{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:14px;margin-bottom:16px;color:var(--muted);line-height:1.6}
.card-intro strong{color:var(--text)}

/* ── KPI ── */
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.kpi{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:20px;padding:18px}
.kpi .label{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.kpi .value{font-size:20px;font-weight:800;margin-top:8px}

/* ── FORM GRID ── */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:14px}
.form-grid.three{grid-template-columns:repeat(3,minmax(220px,1fr))}
.label{display:block;margin:0 0 8px;font-weight:700;color:#d5def5;font-size:14px}
textarea{min-height:92px;resize:vertical}
.footer-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

/* ── TABS ── */
.tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:18px 0 24px}
.tab-link{text-align:center;padding:12px 14px;min-height:52px;display:flex;align-items:center;justify-content:center;
  border-radius:20px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05);color:var(--muted);
  font-weight:700;font-size:13px;transition:transform .18s,background .18s,box-shadow .18s,color .18s}
.tab-link:hover{background:rgba(255,255,255,.15);transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.12);color:#fff}
.tab-link.active{color:var(--text);background:rgba(139,92,246,.18);border-color:rgba(139,92,246,.55);box-shadow:inset 0 -2px 0 var(--purple)}

/* ── ENTRY TYPE CONTROLS ── */
.entry-type-controls{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:8px;margin-bottom:16px}
.entry-type-controls .pill{min-height:50px;justify-content:center;padding:12px 14px;font-size:14px;font-weight:700}

/* ── NOTICE ── */
.notice{padding:12px 14px;border-radius:16px;margin-bottom:14px;border:1px solid var(--line)}
.notice.ok{background:rgba(34,197,94,.12);color:#bbf7d0}
.notice.err{background:rgba(239,68,68,.12);color:#fecaca}

/* ── ACCOUNTS ── */
.account-grid{display:block;border-top:1px solid var(--line);margin-top:10px}
.account-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;background:transparent}
.account-item:last-child{border-bottom:none}
.account-item .name{font-weight:700;font-size:13px}
.account-item .amt{font-size:16px;font-weight:700;color:var(--text)}
.account-item .small{color:var(--muted);font-size:12px;margin-top:2px}

/* ── TABLE ── */
.table-wrap{overflow:auto}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:14px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:normal}

/* ── BADGES ── */
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px;background:rgba(255,255,255,.06);border:1px solid var(--line)}
.badge.hyrje{color:#86efac;background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.35)}
.badge.shpenzim{color:#fecaca;background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.35)}
.badge.dhenie{color:#facc15;background:rgba(250,204,21,.12);border-color:rgba(250,204,21,.35)}
.badge.transfer,.badge.konvertim{color:#bfdbfe;background:rgba(96,165,250,.12);border-color:rgba(96,165,250,.35)}
.detail-line{color:var(--muted);font-size:13px;margin-top:4px}
.small{font-size:13px;color:var(--muted)}
.pill-group{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:8px}

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width:1100px){
  .span-4,.span-6,.span-8,.span-12{grid-column:span 12}
  .kpi-grid,.tabs{grid-template-columns:repeat(2,1fr)}
  .desktop-header .dh-nav .pill{font-size:11px;padding:7px 10px}
}

/* Switch to mobile header at 900px */
@media (max-width:900px){
  .container{padding-top:520px;padding-left:12px;padding-right:12px;padding-bottom:16px}
  .desktop-header{display:none}
  .mobile-header{display:flex}
  .mob-topbar .mob-month{font-size:14px}
  .mob-brand h1{font-size:44px}
  .mob-brand .mob-sub{font-size:14px}
  .mob-btn-grid .pill{font-size:15px;padding:14px 12px;min-height:56px}
  .mob-actions .pill{font-size:13px;padding:8px 12px}
  .summary-pill strong{font-size:14px}
  .summary-pill span{font-size:12px}
  .summary-pill{padding:10px 14px;min-height:58px}
  .span-4,.span-6,.span-8,.span-12{grid-column:span 12}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .tabs{grid-template-columns:repeat(2,1fr)}
  .entry-type-controls{grid-template-columns:repeat(2,1fr)}
  .form-grid,.form-grid.three{grid-template-columns:repeat(2,1fr)}
  .month-form{flex-direction:column;align-items:stretch}
  .month-form input,.month-form button{min-width:0}
}

@media (max-width:600px){
  .container{padding-top:calc(var(--header-h,420px) + 10px);padding-left:10px;padding-right:10px}
  .mob-topbar .mob-month{font-size:15px}
  .mob-brand h1{font-size:38px}
  .mob-brand .mob-sub{font-size:14px}
  .mob-actions .pill{font-size:13px;padding:8px 12px}
  .mob-btn-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .mob-btn-grid .pill{font-size:14px;padding:14px 10px;min-height:54px}
  .summary-pill strong{font-size:13px}
  .summary-pill span{font-size:11px}
  .summary-pill{padding:10px 12px;min-height:52px}
  .form-grid,.form-grid.three{grid-template-columns:1fr}
  .tabs{grid-template-columns:1fr}
  .hide-mobile{display:none!important}
  .table th,.table td{padding:10px 8px;font-size:12px}
  .card{padding:16px;border-radius:18px}
  .card h2{font-size:18px}
  select,input,textarea,button{font-size:15px;min-height:46px}
  textarea{min-height:90px}
  .footer-actions{justify-content:stretch}
  .footer-actions button,.footer-actions .pill{width:100%}
  .badge{font-size:12px;padding:6px 10px}
  .detail-line{font-size:13px}
  body.tab-shto .mobile-header .summary-row{display:none!important}
  .entry-type-controls{grid-template-columns:1fr}
}
