/* =========================
   AF RIIKH — WHITE/RED THEME
   ========================= */

:root{
  --red: #e11d48;
  --red2:#ef4444;

  --bg:#f7f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;

  --shadow: 0 10px 30px rgba(2,6,23,.06);
  --radius: 18px;
}

html,body{height:100%}
body{
  background: radial-gradient(1000px 500px at 70% 0%, rgba(225,29,72,.10), transparent 60%),
              radial-gradient(900px 450px at 0% 20%, rgba(239,68,68,.08), transparent 55%),
              var(--bg);
  color: var(--text);
}

/* Layout cards/glass */
.section-glass, .card, .table-wrap, .panel, .box, .content-card{
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

/* Sidebar */
.sidebar{
  background: #fff !important;
  border-right: 1px solid var(--border) !important;
}
.sidebar .brand{
  color: var(--text) !important;
}
.sidebar a{
  color: #111827 !important;
  opacity: .9;
}
.sidebar a:hover{
  background: rgba(225,29,72,.08) !important;
  color: var(--red) !important;
}
.sidebar a.active{
  background: rgba(225,29,72,.12) !important;
  color: var(--red) !important;
  border: 1px solid rgba(225,29,72,.25) !important;
}

/* Top badge / chips */
.badge, .pill{
  background: rgba(225,29,72,.10) !important;
  color: var(--red) !important;
  border: 1px solid rgba(225,29,72,.25) !important;
}

/* Buttons */
.btn-primary, .btn-red, button[type="submit"]{
  background: linear-gradient(90deg, var(--red), var(--red2)) !important;
  border: none !important;
  color:#fff !important;
  border-radius: 14px !important;
}
.btn-primary:hover, .btn-red:hover, button[type="submit"]:hover{
  filter: brightness(.95);
}
.btn-outline{
  background:#fff !important;
  border: 1px solid rgba(225,29,72,.30) !important;
  color: var(--red) !important;
  border-radius: 14px !important;
}
.btn-outline:hover{
  background: rgba(225,29,72,.08) !important;
}

/* Inputs */
input, select, textarea, .form-control, .form-select{
  background:#fff !important;
  border:1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
}
input:focus, select:focus, textarea:focus, .form-control:focus, .form-select:focus{
  outline: none !important;
  border-color: rgba(225,29,72,.55) !important;
  box-shadow: 0 0 0 4px rgba(225,29,72,.12) !important;
}

/* Tables */
table, .table{
  color: var(--text) !important;
}
.table th{
  color:#111827 !important;
  border-color: var(--border) !important;
}
.table td{
  border-color: var(--border) !important;
}
.table tr:hover td{
  background: rgba(225,29,72,.04) !important;
}

/* Headings */
h1,h2,h3,h4{ color: var(--text) !important; }
.text-muted{ color: var(--muted) !important; }
a{ color: var(--red) }
/* Background-ka guud */
body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

/* KPI Cards Custom Colors */
.bg-primary-soft { background-color: rgba(79, 70, 229, 0.1) !important; }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-indigo-soft  { background-color: rgba(99, 102, 241, 0.1) !important; }

.size-14 { width: 14px; height: 14px; }
.size-18 { width: 18px; height: 18px; }
.extra-small { font-size: 0.75rem; }

/* Transitions */
.fade-up {
    animation: fadeUp 0.5s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick Action Buttons */
.btn-light:hover {
    background-color: #f1f5f9 !important;
    transform: translateX(5px);
    transition: all 0.3s ease;
}/* FORCE sidebar to left always */
.sidebar{
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 260px !important;
  height: 100vh !important;
  overflow-y: auto !important;
  z-index: 50 !important;
}

/* Push content to the right */
.content{
  margin-left: 260px !important;
  padding: 18px !important;
}

/* Links vertical */
.sidebar .item{
  display:flex !important;
  width: 100% !important;
  white-space: normal !important;
}
/* Sidebar Container */
.sidebar {
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

/* Label Modules */
.menu-label {
    padding: 20px 15px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Sidebar Items */
.sidebar .item {
    display: flex !important;
    align-items: center;
    padding: 10px 12px !important;
    margin-bottom: 4px;
    border-radius: 10px !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent !important;
}

/* Icon Styling */
.sidebar .item i {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    stroke-width: 2px;
}

/* Hover & Active States */
.sidebar .item:hover {
    background: #f8fafc !important;
    color: var(--red) !important;
    transform: translateX(4px);
}

.sidebar .item.active {
    background: rgba(225, 29, 72, 0.08) !important;
    color: var(--red) !important;
    border: 1px solid rgba(225, 29, 72, 0.1) !important;
}

/* Logout Styling */
.logout-item:hover {
    background: #fff1f2 !important;
    color: #e11d48 !important;
}

/* Custom Icon Colors (Optional - for Pro Look) */
.icon-products { color: #8b5cf6; }    /* Purple */
.icon-ims { color: #f59e0b; }         /* Orange */
.icon-sales { color: #10b981; }       /* Green */
.icon-pos { color: #ef4444; }         /* Red */
.icon-accounting { color: #3b82f6; }  /* Blue */
.icon-reports { color: #6366f1; }     /* Indigo */
/* Brand Section */
.brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-system {
    font-size: 10px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 1px;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

/* Sidebar Navigation */
.sidebar-scroll {
    padding: 15px;
}

.menu-label {
    padding: 15px 12px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.sidebar .item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px !important;
    margin-bottom: 4px;
    border-radius: 10px !important;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none !important;
}

.sidebar .item i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* States */
.sidebar .item:hover {
    background: #f1f5f9 !important;
    color: var(--red) !important;
}

.sidebar .item.active {
    background: rgba(225, 29, 72, 0.08) !important;
    color: var(--red) !important;
    font-weight: 600;
}

.logout-item:hover {
    background: #fff1f2 !important;
    color: #e11d48 !important;
}
/* Sidebar Setup */
.sidebar {
    width: 260px;
    background: #fff !important;
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

/* Brand Section */
.brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: cover;
}
.brand-system {
    font-size: 10px;
    font-weight: 800;
    color: #e11d48;
    letter-spacing: 1px;
}
.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

/* Menu Scroll */
.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
}

.menu-label {
    padding: 20px 12px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Items */
.sidebar .item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px !important;
    margin-bottom: 4px;
    border-radius: 10px !important;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s;
}

/* Icons */
.sidebar .item i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* Hover & Active */
.sidebar .item:hover {
    background: #f8fafc !important;
    color: #e11d48 !important;
}

.sidebar .item.active {
    background: rgba(225, 29, 72, 0.08) !important;
    color: #e11d48 !important;
    font-weight: 600;
}

.logout-item:hover {
    background: #fff1f2 !important;
    color: #e11d48 !important;
}
/* ---------- APP LAYOUT ---------- */
.app-body{ background: var(--bg); }
.app-shell{
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ---------- SIDEBAR ---------- */
.sidebar{
  width: 260px;
  flex: 0 0 260px;
  background: #fff;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 14px 12px;
}

.sidebar::-webkit-scrollbar{ width: 8px; }
.sidebar::-webkit-scrollbar-thumb{ background: rgba(15,23,42,.10); border-radius: 10px; }

.sidebar .brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.sidebar .brand img{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.sidebar .brand .appname{
  font-weight: 900;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--red);
}
.sidebar .brand .bizname{
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}

/* items */
.sidebar .item{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  margin: 6px 6px;
  border-radius: 14px;
  color: #0f172a;
  text-decoration:none;
  transition: .18s ease;
}
.sidebar .item .ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(225,29,72,.08);
  color: var(--red);
  border: 1px solid rgba(225,29,72,.14);
}
.sidebar .item:hover{
  background: rgba(225,29,72,.08);
  color: var(--red);
}
.sidebar .item.active{
  background: rgba(225,29,72,.12);
  border: 1px solid rgba(225,29,72,.20);
  color: var(--red);
  box-shadow: 0 10px 20px rgba(225,29,72,.08);
}

.sidebar .section-title{
  margin: 14px 12px 6px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

/* ---------- CONTENT ---------- */
.content{
  flex: 1;
  padding: 22px;
}
/* ===== Sidebar Base ===== */
.sidebar{
  width:260px;
  height:100vh;
  background: linear-gradient(180deg,#0f172a,#020617);
  color:#e5e7eb;
  position:fixed;
  left:0; top:0;
  display:flex;
  flex-direction:column;
  box-shadow: 4px 0 25px rgba(0,0,0,.25);
}

/* ===== Brand ===== */
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:18px 20px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand img{
  width:42px;height:42px;
  border-radius:12px;
  box-shadow:0 0 0 3px rgba(99,102,241,.25);
}
.brand-system{
  font-weight:800;
  letter-spacing:.12em;
  font-size:12px;
  color:#818cf8;
}
.brand-name{
  font-size:14px;
  opacity:.9;
}

/* ===== Scroll ===== */
.sidebar-scroll{
  overflow-y:auto;
  padding:10px 10px 20px;
}
.sidebar-scroll::-webkit-scrollbar{ width:6px; }
.sidebar-scroll::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
  border-radius:10px;
}

/* ===== Menu Labels ===== */
.menu-label{
  margin:18px 12px 8px;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.5;
}

/* ===== Menu Item ===== */
.sidebar .item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  margin:4px 6px;
  border-radius:14px;
  color:#e5e7eb;
  text-decoration:none;
  transition: all .25s ease;
  position:relative;
}

/* Icon */
.sidebar .item i{
  width:20px;
  height:20px;
  stroke-width:1.8;
  transition: transform .25s ease, color .25s ease;
}

/* Hover */
.sidebar .item:hover{
  background:rgba(255,255,255,.06);
  transform:translateX(4px);
}
.sidebar .item:hover i{
  transform:scale(1.15) rotate(-3deg);
  color:#a5b4fc;
}

/* Active */
.sidebar .item.active{
  background:linear-gradient(135deg,rgba(99,102,241,.25),rgba(139,92,246,.18));
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.35);
}
.sidebar .item.active i{
  color:#c7d2fe;
}

/* Logout */
.logout-item{
  margin-top:14px;
  color:#fca5a5;
}
.logout-item:hover{
  background:rgba(239,68,68,.15);
}
/* ===== Lucide Icons: make them clear everywhere ===== */
i[data-lucide] svg{
  width:18px !important;
  height:18px !important;
  stroke-width:2.2 !important;
  opacity:1 !important;
  vertical-align:-3px;
}

/* ===== Tabs (Top buttons) icons better ===== */
.content .btn i[data-lucide]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:10px;
  margin-right:8px;
  background: rgba(99,102,241,.12);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.18);
}
.content .btn i[data-lucide] svg{
  color:#4f46e5 !important;
}

/* Active tab icon = stronger */
.content .btn.btn-brand i[data-lucide]{
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.content .btn.btn-brand i[data-lucide] svg{
  color:#ffffff !important;
}

/* ===== Sidebar icons clearer ===== */
.sidebar .item i[data-lucide]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background: rgba(2,6,23,.04);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.sidebar .item i[data-lucide] svg{
  color:#475569 !important; /* clearer gray */
}
.sidebar .item:hover i[data-lucide]{
  background: rgba(99,102,241,.10);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.20);
}
.sidebar .item:hover i[data-lucide] svg{
  color:#4f46e5 !important;
}
.sidebar .item.active i[data-lucide]{
  background: rgba(239,68,68,.12);
  box-shadow: inset 0 0 0 1px rgba(239,68,68,.22);
}
.sidebar .item.active i[data-lucide] svg{
  color:#ef4444 !important;
}
/* Tabs buttons (because btn-outline-light is invisible on light bg) */
.content .btn.btn-outline-light{
  color:#0f172a !important;
  border-color:#cbd5e1 !important;
  background:#fff !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.content .btn.btn-outline-light:hover{
  border-color:#818cf8 !important;
  background: rgba(99,102,241,.08) !important;
  transform: translateY(-1px);
}

/* Make tabs area wrap + nice spacing */
.products-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}
/* ========== Icon base ========== */
.ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background: rgba(99,102,241,.10);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.18);
  margin-right:10px;
}
.ico svg{
  width:18px; height:18px;
  stroke-width:2.2;
  color:#4f46e5;
}

/* for light outline buttons (visible on white bg) */
.btn.btn-outline-light{
  color:#0f172a !important;
  border-color:#cbd5e1 !important;
  background:#fff !important;
}
.btn.btn-outline-light:hover{
  border-color:#818cf8 !important;
  background: rgba(99,102,241,.08) !important;
}

/* Small icon chips under product card */
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
  font-size:12px;
}
.chip i[data-lucide] svg{
  width:14px; height:14px;
  stroke-width:2.2;
  color:#475569;
}
