
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root{
  --bg:#0f141b;
  --card:#1b222c;
  --card2:#222b36;
  --text:#ffffff;
  --muted:#9aa4b2;
  --accent:#2ecc71;
  --danger:#ff4d4f;
  --border:#2f3a47;
}

body{
  font-family:'Manrope',sans-serif;
  background:var(--bg);
  color:var(--text);
  padding-bottom:90px;
}

.navbar{
  background:#131a22!important;
  border-bottom:1px solid var(--border);
}

.card{
  background:linear-gradient(180deg,var(--card),var(--card2));
  border:1px solid var(--border);
  border-radius:20px;
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  transition:.3s ease;
}
.card:hover{ transform:translateY(-3px); }

.kpi-value{
  font-size:28px;
  font-weight:800;
}

.btn-accent{
  background:var(--accent);
  border:none;
  border-radius:12px;
  font-weight:700;
}

.bottom-nav{
  position:fixed;
  left:0;right:0;bottom:0;
  height:75px;
  background:#131a22;
  border-top:1px solid var(--border);
}

.bottom-nav .wrap{
  display:flex;
  justify-content:space-around;
  align-items:center;
  height:75px;
}

.bottom-nav a{
  color:var(--muted);
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:12px;
}

.bottom-nav a.active{ color:var(--accent); }

.table{ color:var(--text); }
.table thead th{
  color:var(--muted);
  border-bottom:1px solid var(--border);
}

body, .card, .table, .form-label, .form-control, .form-select {
  color: #ffffff !important;
}

/* ===== SBER STYLE THEME ===== */
:root{
  --bg:#f3f7f4;
  --card:#ffffff;
  --primary:#21a038;
  --primary-dark:#178a2c;
  --text:#111111;
  --muted:#6b7280;
  --border:#e5e7eb;
}

body{
  background:var(--bg) !important;
  color:var(--text) !important;
}

.navbar{
  background:linear-gradient(90deg,var(--primary),var(--primary-dark)) !important;
}

.card{
  background:var(--card) !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
  box-shadow:0 6px 18px rgba(0,0,0,.06) !important;
}

.btn-accent{
  background:var(--primary) !important;
  color:#fff !important;
  border-radius:12px !important;
}

.btn-accent:hover{
  background:var(--primary-dark) !important;
}

.bottom-nav{
  background:#ffffff !important;
  border-top:1px solid var(--border) !important;
}

.bottom-nav a.active{
  color:var(--primary) !important;
}

.table thead th{
  color:var(--muted) !important;
}

.kpi-value{
  color:var(--primary) !important;
  font-weight:800;
}



/* ===== SBER ONLINE INSPIRED UI (template) ===== */
:root{
  --bg:#f2f5f3;
  --surface:#ffffff;
  --surface2:#f7faf8;
  --text:#0b1220;
  --muted:#6b7280;
  --border:#e5e7eb;

  --green:#21a038;
  --green2:#2bbf4b;
  --greenDark:#178a2c;
}

body{
  background: var(--bg) !important;
  color: var(--text) !important;
}

.navbar{
  background: linear-gradient(90deg, var(--green), var(--greenDark)) !important;
  border-bottom: 0 !important;
}
.navbar .navbar-brand{ color:#fff !important; }

.card{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(11,18,32,.06) !important;
}

.text-muted2{ color: var(--muted) !important; }

.btn-accent{
  background: linear-gradient(135deg,var(--green),var(--green2)) !important;
  border:0 !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  color:#fff !important;
  box-shadow: 0 10px 22px rgba(33,160,56,.22);
}

.btn-outline-light{
  border-color: rgba(11,18,32,.18) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
}
.btn-outline-light:hover{
  background: rgba(33,160,56,.10) !important;
  border-color: rgba(33,160,56,.30) !important;
}

/* Bottom nav */
.bottom-nav{
  background: rgba(255,255,255,.92) !important;
  border-top: 1px solid var(--border) !important;
  backdrop-filter: blur(14px);
}
.bottom-nav a{ color: var(--muted) !important; }
.bottom-nav a.active{ color: var(--green) !important; }

/* Virtual card */
.vcard{
  border-radius: 22px;
  padding: 18px 18px 16px;
  color:#fff;
  background:
    radial-gradient(420px 160px at 20% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(420px 160px at 90% 20%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(135deg, #0f7a2e, #21a038 55%, #2bbf4b);
  box-shadow: 0 18px 40px rgba(33,160,56,.25);
  border: 1px solid rgba(255,255,255,.16);
  overflow:hidden;
  position: relative;
}
.vcard:before{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width:180px; height:180px;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  filter: blur(0px);
  transform: rotate(12deg);
}
.vcard *{ position:relative; z-index:1; }
.vcard .brand{
  display:flex; justify-content:space-between; align-items:center;
  font-weight: 800;
  letter-spacing:.2px;
}
.vcard .brand .chip{
  width:44px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.18));
  border:1px solid rgba(255,255,255,.25);
}
.vcard .num{
  margin-top: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 16px;
}
.vcard .row2{
  margin-top: 10px;
  display:flex; justify-content:space-between; align-items:flex-end;
}
.vcard .bal{
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}
.vcard .bal small{
  display:block;
  font-size:12px;
  opacity:.92;
  font-weight:700;
  letter-spacing:.2px;
}
.vcard .meta{
  text-align:right;
  font-size:12px;
  opacity:.92;
  font-weight:700;
}

/* Operations list */
.ops .op{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px dashed rgba(11,18,32,.12);
}
.ops .op:last-child{ border-bottom:0; }
.ops .left{
  display:flex; gap:10px; align-items:center;
}
.ops .ico{
  width:38px; height:38px; border-radius:14px;
  background: rgba(33,160,56,.10);
  display:flex; align-items:center; justify-content:center;
  color: var(--green);
}
.ops .ttl{ font-weight: 800; }
.ops .sub{ font-size:12px; color: var(--muted); }
.ops .amt{ font-weight: 900; }
.ops .amt.minus{ color: #ef4444; }
.ops .amt.plus{ color: var(--greenDark); }

/* Admin theme hook */
body.admin{
  background: #0b1220 !important;
  color: #e5e7eb !important;
}



/* ===== FIX: readability on light cards (mobile/desktop) ===== */
.card, .card *{ color: var(--text) !important; }
.text-muted2{ color: var(--muted) !important; }
.table, .table *{ color: var(--text) !important; }
.form-control, .form-select{ color: var(--text) !important; background: #fff !important; border-color: var(--border) !important; }
.form-control::placeholder{ color: rgba(17,17,17,.45); }
hr{ opacity:.25; }


/* ===== Mobile optimization ===== */
.container{ max-width: 980px; }
@media (max-width: 768px){
  .container{ padding-left: 14px; padding-right: 14px; }
  .navbar .container{ padding-left: 14px; padding-right: 14px; }
  .vcard .bal{ font-size: 24px; }
  .ops .op{ padding: 10px 0; }
  .bottom-nav{ height: 74px; }
  body{ padding-bottom: 86px; }
}

/* ===== Premium badges for schedule statuses ===== */
.badge-status{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.2px;
  border: 1px solid rgba(11,18,32,.10);
}
.badge-paid{ background: rgba(33,160,56,.14); color: #0f7a2e; border-color: rgba(33,160,56,.26); }
.badge-planned{ background: rgba(245,158,11,.16); color: #8a5b00; border-color: rgba(245,158,11,.30); }
.badge-late{ background: rgba(239,68,68,.14); color: #b42318; border-color: rgba(239,68,68,.28); }

/* KPI chips */
.kpi-chip{
  background: var(--surface2);
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 16px;
  padding: 12px 12px;
}

/* Chart cards */
.chart-wrap{
  background: linear-gradient(180deg, rgba(33,160,56,.06), rgba(255,255,255,0));
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(11,18,32,.08);
}

/* Payments list */
.paylist .item{
  display:flex; justify-content:space-between; gap:12px;
  padding:12px 0;
  border-bottom:1px dashed rgba(11,18,32,.12);
}
.paylist .item:last-child{ border-bottom:0; }
.paylist .left{ display:flex; gap:10px; align-items:center; }
.paylist .ico{
  width:40px; height:40px; border-radius:16px;
  background: rgba(33,160,56,.10);
  display:flex; align-items:center; justify-content:center;
  color: var(--green);
}
.paylist .ttl{ font-weight: 900; }
.paylist .sub{ font-size:12px; color: var(--muted); }
.paylist .amt{ font-weight: 900; }
.paylist .amt.minus{ color:#ef4444; }
.paylist .amt.plus{ color: var(--greenDark); }

@media (max-width: 768px){
  .kpi-chip{ padding: 10px; }
  .chart-wrap{ padding: 12px; }
  .paylist .ico{ width:36px; height:36px; border-radius:14px; }
}
