/* ── Arun Gas Staff Portal — portal.css ── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f2f0eb;
  --white: #ffffff;
  --border: #e4e1da;
  --border2: #ccc9c0;
  --text: #15130f;
  --muted: #68645c;
  --dim: #a09c94;
  --blue: #1d4ed8;
  --blue-bg: #eff4ff;
  --blue-light: #dbeafe;
  --teal: #0f766e;
  --teal-bg: #f0fdf9;
  --amber: #92400e;
  --amber-bg: #fef3c7;
  --rose: #9f1239;
  --rose-bg: #ffe4e6;
  --violet: #5b21b6;
  --violet-bg: #ede9fe;
  --green: #14532d;
  --green-bg: #dcfce7;
  --orange: #c2410c;
  --orange-bg: #ffedd5;
  --font: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ────────────────────────────
   HEADER
──────────────────────────── */
.header {
  background: var(--text);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left { display: flex; align-items: center; gap: 14px; }
.header-right { display: flex; align-items: center; gap: 10px; }

.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  letter-spacing: -0.5px;
}

.logo-name  { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }
.logo-sep   { width: 1px; height: 18px; background: rgba(255,255,255,0.15); }
.logo-sub   { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 400; }

.search-wrap { position: relative; }

.search-wrap input {
  padding: 7px 12px 7px 32px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  outline: none;
  width: 210px;
  transition: border-color 0.15s, background 0.15s;
}

.search-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.search-wrap input:focus { border-color: rgba(245,158,11,0.6); background: rgba(255,255,255,0.12); }

.search-icon {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.35); font-size: 13px; pointer-events: none;
}

.clock {
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums; letter-spacing: 0.03em;
}

/* ────────────────────────────
   LAYOUT
──────────────────────────── */
.layout { display: flex; min-height: calc(100vh - 58px); }

/* ────────────────────────────
   SIDEBAR
──────────────────────────── */
.sidebar {
  width: 210px; min-width: 210px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 20px 0 32px;
  position: sticky; top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}

.nav-section {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dim); padding: 0 16px; margin: 18px 0 6px;
}
.nav-section:first-child { margin-top: 0; }

.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; border-left: 3px solid transparent;
  transition: all 0.14s; gap: 8px;
}

.nav-item-inner { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.nav-item:hover { background: #f7f5f0; color: var(--text); }
.nav-item.active { background: #fefce8; color: #92400e; border-left-color: #f59e0b; font-weight: 600; }

.nav-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.nav-cnt {
  font-size: 10px; background: #f2f0eb; border-radius: 20px;
  padding: 1px 7px; color: var(--dim); flex-shrink: 0; font-weight: 600;
}
.nav-item.active .nav-cnt { background: #fef3c7; color: #92400e; }

/* ────────────────────────────
   MAIN CONTENT
──────────────────────────── */
.main { flex: 1; padding: 28px 32px 60px; overflow-y: auto; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}

.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.page-desc  { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 400; }

.page-count {
  font-size: 12px; font-weight: 600;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 14px; color: var(--muted);
  white-space: nowrap;
}

/* ────────────────────────────
   CATEGORY BLOCK
──────────────────────────── */
.cat-block { margin-bottom: 28px; }

.cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.cat-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  padding: 4px 12px; border-radius: 20px;
}

.cat-count { font-size: 11px; color: var(--dim); font-weight: 500; }

/* ────────────────────────────
   LINK LIST & ROWS
──────────────────────────── */
.link-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.link-row {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: background 0.12s;
  cursor: pointer; min-height: 54px;
  position: relative;
}

.link-row:last-child { border-bottom: none; }
.link-row:hover { background: #fafaf7; }

/* Important row */
.link-row.important {
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 60%);
  border-left: 3px solid #f59e0b;
}
.link-row.important:hover { background: linear-gradient(90deg, #fef3c7 0%, #fffbf0 60%); }
.link-row.important .row-name { color: #92400e; font-weight: 700; }
.link-row.important .row-num  { color: #d97706; font-weight: 700; }

.row-num {
  width: 42px; min-width: 42px;
  text-align: center; font-size: 11px; color: var(--dim);
  border-right: 1px solid var(--border);
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; font-weight: 500;
}

.row-icon {
  width: 48px; min-width: 48px;
  display: flex; align-items: center; justify-content: center;
  align-self: stretch; border-right: 1px solid var(--border);
}

.icon-box {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.row-body    { flex: 1; padding: 13px 16px; min-width: 0; }
.row-name    { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.row-desc    { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-right   { display: flex; align-items: center; gap: 8px; padding-right: 14px; flex-shrink: 0; }

.badge {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}

.b-new { background: var(--green-bg);  color: var(--green);  }
.b-lan { background: #f1f5f9;          color: #475569;        }
.b-apk { background: var(--green-bg);  color: var(--green);  }
.b-pdf { background: var(--rose-bg);   color: var(--rose);   }
.b-vid { background: var(--violet-bg); color: var(--violet); }
.b-imp { background: #fef3c7;          color: #92400e;        }

.row-arrow {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--dim);
  background: #f7f5f0;
  opacity: 0; transition: opacity 0.14s, transform 0.14s;
  flex-shrink: 0;
}
.link-row:hover .row-arrow            { opacity: 1; transform: translate(1px, -1px); }
.link-row.important .row-arrow        { background: #fef3c7; color: #d97706; }

.link-row-static          { cursor: default; }
.link-row-static:hover    { background: var(--white); }
.link-row-static:hover .row-arrow { opacity: 0; }

.cred-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; background: #f2f0eb;
  border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 10px; margin-top: 4px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.cred-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); }

/* ────────────────────────────
   SECTION VISIBILITY
──────────────────────────── */
.section         { display: none; }
.section.active  { display: block; }

#empty {
  display: none; text-align: center;
  padding: 60px 20px; color: var(--dim); font-size: 14px;
}

/* ────────────────────────────
   ICON COLOR CLASSES
──────────────────────────── */
.ic-blue   { background: var(--blue-bg);   color: var(--blue);   }
.ic-teal   { background: var(--teal-bg);   color: var(--teal);   }
.ic-amber  { background: var(--amber-bg);  color: var(--amber);  }
.ic-rose   { background: var(--rose-bg);   color: var(--rose);   }
.ic-violet { background: var(--violet-bg); color: var(--violet); }
.ic-green  { background: var(--green-bg);  color: var(--green);  }
.ic-orange { background: var(--orange-bg); color: var(--orange); }
.ic-gray   { background: #f2f0eb;          color: #6b7280;        }

/* ────────────────────────────
   NAV DOT COLORS
──────────────────────────── */
.d-blue   { background: var(--blue);   }
.d-teal   { background: var(--teal);   }
.d-amber  { background: #f59e0b;       }
.d-rose   { background: var(--rose);   }
.d-violet { background: var(--violet); }
.d-green  { background: var(--green);  }
.d-gray   { background: #9ca3af;       }

/* ────────────────────────────
   CATEGORY PILL COLORS
──────────────────────────── */
.cp-blue   { background: var(--blue-bg);   color: var(--blue);   }
.cp-amber  { background: var(--amber-bg);  color: var(--amber);  }
.cp-rose   { background: var(--rose-bg);   color: var(--rose);   }
.cp-teal   { background: var(--teal-bg);   color: var(--teal);   }
.cp-violet { background: var(--violet-bg); color: var(--violet); }

/* ────────────────────────────
   SCROLLBAR
──────────────────────────── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* ────────────────────────────
   RESPONSIVE
──────────────────────────── */
@media (max-width: 680px) {
  .header        { padding: 0 16px; }
  .logo-sep, .logo-sub, .clock { display: none; }

  .layout        { flex-direction: column; }
  .sidebar       { width: 100%; min-width: 100%; position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 10px 0; }

  .main          { padding: 16px 14px 40px; }
  .pinned-grid   { grid-template-columns: 1fr 1fr; }
  .row-num       { display: none; }
}
