:root {
  --blue: #238be6;
  --blue-dark: #123d5c;
  --nav: #103c5a;
  --bg: #f2f7fb;
  --line: #d8e8f5;
  --text: #26323a;
  --muted: #7190a2;
  --soft: #eaf5ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
}
a {
  text-decoration: none;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  background: #f5f9fd;
}
.auth-left {
  background: linear-gradient(135deg, #1766b6, #2892e9);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 64px 90px;
}
.bubble {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.b1 {
  width: 440px;
  height: 440px;
  right: -50px;
  top: 30px;
}
.b2 {
  width: 380px;
  height: 380px;
  left: 160px;
  bottom: 120px;
}
.b3 {
  width: 260px;
  height: 260px;
  left: -30px;
  bottom: -30px;
}
.logo-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.auth-title {
  position: relative;
  z-index: 1;
}
.auth-title h1 {
  font-size: 36px;
  margin: 20px 0 8px;
  font-weight: 800;
}
.auth-feature {
  position: absolute;
  left: 90px;
  bottom: 100px;
  max-width: 520px;
}
.auth-feature h2 {
  font-size: 25px;
  line-height: 1.25;
}
.auth-feature li {
  margin: 16px 0;
}
.auth-card {
  width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 58px 64px;
  box-shadow: 0 18px 60px rgba(18, 61, 92, 0.08);
}
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-control,
.form-select {
  border-color: #cfe0ee;
  background: #f6f9fd;
  border-radius: 14px;
  padding: 0.78rem 0.95rem;
}
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 14px;
  font-weight: 700;
  padding: 0.72rem 1.2rem;
}
.btn-outline-primary {
  border-radius: 14px;
}
.app {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #d8ecfb;
  min-height: 100vh;
  padding: 32px 22px;
  position: sticky;
  top: 0;
}
.brand {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 38px;
}
.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.brand h3 {
  color: white;
  margin: 0;
  font-size: 28px;
}
.brand span {
  font-size: 12px;
  color: #a6d3f2;
}
.menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d8ecfb;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 8px 0;
  font-weight: 600;
}
.menu a.active,
.menu a:hover {
  background: #dff1ff;
  color: #0967c8;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: #8cc7ef;
}
.menu a.active .dot {
  border: 1.5px solid #168bf2;
  background: white;
}
.main {
  min-width: 0;
}
.topbar {
  height: 88px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.page-title h1 {
  font-size: 30px;
  margin: 0 0 5px;
  font-weight: 800;
}
.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search {
  width: 260px;
  border-radius: 26px;
  background: #edf5fb;
  border: 1px solid #d4e4f0;
  padding: 12px 22px;
  color: #7190a2;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  border: 1.5px solid #168bf2;
  color: #0967c8;
  background: #f7fbff;
  font-weight: 800;
}
.content {
  padding: 38px 42px;
}
.cardx {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(18, 61, 92, 0.04);
}
.cardx.pad {
  padding: 26px 30px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.stat .icon {
  width: 46px;
  height: 46px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  border: 1.5px solid #168bf2;
  background: #f1f8ff;
  color: #0967c8;
  font-weight: 800;
}
.stat h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}
.stat p {
  margin: 0;
  color: var(--muted);
}
.table {
  margin: 0;
}
.table th {
  background: #eaf3fa;
  color: #6f8998;
  font-size: 13px;
  padding: 17px;
}
.table td {
  padding: 19px;
  vertical-align: middle;
  color: #405766;
}
.badge-soft {
  background: #e8f5ff;
  color: #0967c8;
  border: 1px solid #b9defa;
  border-radius: 99px;
  padding: 7px 13px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  overflow: auto;
}
.lane {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 520px;
  padding: 14px;
}
.lane-title {
  padding: 12px;
  border-radius: 13px;
  text-align: center;
  font-weight: 800;
  background: #eaf5ff;
}
.prospect-card {
  border: 1px solid #dceaf4;
  border-radius: 15px;
  background: #f9fcff;
  padding: 15px;
  margin: 15px 0;
}
.prospect-card h6 {
  font-weight: 800;
}
.muted {
  color: var(--muted);
}
.alert {
  border-radius: 16px;
}
.print-page {
  background: white;
  max-width: 850px;
  margin: 30px auto;
  padding: 45px;
  border: 1px solid #ddd;
}
.print-header {
  display: flex;
  gap: 18px;
  border-bottom: 2px solid #222;
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.print-header img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}
.customer-app {
  min-height: 100vh;
}
.customer-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.customer-nav img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.customer-menu a {
  margin-left: 18px;
  font-weight: 700;
  color: #44606f;
}
.customer-menu a.active {
  color: #0967c8;
}
.status-draft {
  background: #fff4df;
  color: #a46700;
}
.status-menunggu_approval {
  background: #fff4df;
  color: #a46700;
}
.status-disetujui,
.status-diterima_customer,
.status-selesai,
.status-deal,
.status-berhasil {
  background: #e9f7eb;
  color: #2b8d3a;
}
.status-ditolak,
.status-ditolak_customer,
.status-batal,
.status-gagal {
  background: #ffe9e9;
  color: #c53232;
}
.status-dikirim,
.status-belum_dibaca {
  background: #e8f5ff;
  color: #0967c8;
}
.status-dibaca,
.status-terkirim {
  background: #eef2f5;
  color: #607787;
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    min-height: auto;
  }
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .kanban {
    grid-template-columns: repeat(2, 280px);
  }
}
/* Membuat sidebar kiri tetap diam saat halaman di-scroll */
@media (min-width: 1101px) {
  .app {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    z-index: 1000;
  }

  .main {
    margin-left: 290px;
    min-width: 0;
  }
}

/* Tampilan mobile/tablet tetap normal */
@media (max-width: 1100px) {
  .main {
    margin-left: 0;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
}

/* =========================================================
   CRM ABB - Modern UI Refresh
   Tempel kode ini di bagian paling bawah public/css/crm.css
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --secondary: #0f172a;
  --sidebar-bg: #082f49;
  --sidebar-bg-2: #0f466a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-page: #f8fafc;
  --bg-soft: #f1f5f9;
  --white: #ffffff;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #0284c7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 35px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
}

/* Global */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.08),
      transparent 35%
    ),
    linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
  color: var(--text-main);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #eaf2fb;
}

::-webkit-scrollbar-thumb {
  background: #b9cbe0;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8eabc8;
}

/* Layout */
.app {
  display: block !important;
  min-height: 100vh;
}

.sidebar {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 290px !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow-y: auto;
  z-index: 1000;
  padding: 26px 22px;
  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.22),
      transparent 30%
    ),
    linear-gradient(180deg, var(--sidebar-bg) 0%, #0b3a5a 55%, #06263d 100%) !important;
  box-shadow: 18px 0 45px rgba(15, 23, 42, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.main {
  margin-left: 290px !important;
  min-height: 100vh;
  background: transparent !important;
}

/* Brand / Logo */
.sidebar .brand,
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 46px;
}

.sidebar .brand img,
.brand img,
.logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  padding: 7px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.sidebar .brand h1,
.brand h1,
.sidebar h1 {
  margin: 0;
  color: #ffffff !important;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sidebar .brand p,
.brand p,
.sidebar .subtitle {
  margin: 6px 0 0;
  color: rgba(226, 242, 255, 0.78) !important;
  font-size: 13px;
}

/* Sidebar Menu */
.sidebar nav,
.sidebar .menu,
.sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar a,
.sidebar .nav-link,
.sidebar .menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 17px;
  color: rgba(226, 242, 255, 0.82) !important;
  font-size: 16px;
  font-weight: 700;
  transition: 0.22s ease;
}

.sidebar a::before,
.sidebar .nav-link::before,
.sidebar .menu a::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.72);
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.06);
  transition: 0.22s ease;
}

.sidebar a:hover,
.sidebar .nav-link:hover,
.sidebar .menu a:hover {
  transform: translateX(4px);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar a.active,
.sidebar .active,
.sidebar .nav-link.active,
.sidebar .menu a.active {
  color: #0b5fc7 !important;
  background: linear-gradient(135deg, #ffffff 0%, #dff1ff 100%) !important;
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.16);
}

.sidebar a.active::before,
.sidebar .active::before,
.sidebar .nav-link.active::before,
.sidebar .menu a.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.14);
}

/* Topbar / Header */
.topbar,
.header,
.page-top,
.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 42px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.page-title h1,
.topbar h1,
.header h1,
.main h1 {
  margin: 0;
  color: #142033;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.page-title p,
.topbar p,
.header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.search,
.search-box,
input[type="search"] {
  min-width: 280px;
  height: 52px;
  padding: 0 20px;
  border: 1px solid #d8e5f2;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

.search:focus,
.search-box:focus,
input[type="search"]:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.user-area,
.profile-area,
.account-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar,
.user-avatar,
.initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--primary);
  background: #eff6ff;
  border: 2px solid #93c5fd;
  font-weight: 900;
}

/* Main Content */
.content,
.page-content,
.main-content {
  padding: 34px 42px 48px !important;
}

/* Cards */
.card,
.box,
.panel,
.stat-card,
.summary-card {
  border: 1px solid rgba(209, 226, 242, 0.95) !important;
  border-radius: var(--radius-lg) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--shadow-sm) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover,
.box:hover,
.panel:hover,
.stat-card:hover,
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(147, 197, 253, 0.85) !important;
}

.card,
.box,
.panel {
  padding: 28px !important;
}

.stat-card,
.summary-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px !important;
}

.stat-card .icon,
.summary-card .icon,
.circle-icon,
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  font-weight: 900;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.45);
}

.stat-card h3,
.summary-card h3,
.card h3,
.box h3,
.panel h3 {
  margin: 0 0 6px;
  color: #1e293b;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.stat-card .number,
.summary-card .number,
.stat-number {
  color: #172033;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.stat-card p,
.summary-card p,
.card p,
.box p,
.panel p {
  color: var(--text-muted);
}

/* Grid umum */
.grid,
.cards,
.stats,
.summary-grid {
  display: grid;
  gap: 22px;
}

.stats,
.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Buttons */
button,
.btn,
input[type="submit"],
.button {
  border: none;
  border-radius: 15px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary,
button[type="submit"],
.btn-blue,
.primary {
  color: white !important;
  background: linear-gradient(135deg, #2684ff, #1d4ed8) !important;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
button[type="submit"]:hover,
.btn-blue:hover,
.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

.btn-secondary,
.btn-light,
.secondary {
  color: #466174 !important;
  background: #f1f7fd !important;
  border: 1px solid #d9e7f5 !important;
}

.btn-success,
.success {
  color: white !important;
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
}

.btn-danger,
.danger,
.logout,
.btn-logout {
  color: #dc2626 !important;
  background: #fff5f5 !important;
  border: 1px solid #fecaca !important;
}

.btn-danger:hover,
.danger:hover,
.logout:hover,
.btn-logout:hover {
  background: #fee2e2 !important;
}

/* Forms */
input,
select,
textarea,
.form-control,
.form-select {
  width: 100%;
  border: 1px solid #d8e5f2 !important;
  border-radius: 15px !important;
  background: #f5f9fd !important;
  color: var(--text-main);
  padding: 14px 17px !important;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.65) !important;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1) !important;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #243244;
  font-size: 14px;
  font-weight: 850;
}

.form-group {
  margin-bottom: 20px;
}

/* Tables */
.table-wrap,
.table-card,
.table-container {
  overflow: hidden;
  border: 1px solid rgba(209, 226, 242, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  overflow: hidden;
}

thead th,
table th {
  padding: 18px 22px !important;
  color: #607d91 !important;
  background: #eef6ff !important;
  border-bottom: 1px solid #dbe8f5 !important;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  letter-spacing: 0.015em;
}

tbody td,
table td {
  padding: 18px 22px !important;
  border-bottom: 1px solid #edf2f7 !important;
  color: #334155;
  font-size: 14px;
  vertical-align: middle;
}

tbody tr,
table tr {
  transition: 0.18s ease;
}

tbody tr:hover {
  background: rgba(239, 246, 255, 0.86) !important;
}

tbody tr:last-child td {
  border-bottom: none !important;
}

/* Badges / Status */
.badge,
.status,
.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.badge-success,
.status-success,
.status.selesai,
.status.deal,
.status.aktif,
.badge.selesai {
  color: #15803d !important;
  background: #dcfce7 !important;
}

.badge-warning,
.status-warning,
.status.menunggu,
.status.terjadwal,
.badge.menunggu {
  color: #a16207 !important;
  background: #fef3c7 !important;
}

.badge-danger,
.status-danger,
.status.batal,
.status.terlambat,
.badge.batal {
  color: #b91c1c !important;
  background: #fee2e2 !important;
}

.badge-info,
.status-info,
.status.dikirim,
.badge.info {
  color: #0369a1 !important;
  background: #e0f2fe !important;
}

/* Pipeline / Kanban */
.kanban,
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.kanban-column,
.pipeline-column {
  min-height: 520px;
  padding: 14px;
  border: 1px solid #dce9f6;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.kanban-column h3,
.pipeline-column h3 {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 16px;
  color: #1f2937;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  text-align: center;
  font-size: 14px;
  font-weight: 950;
}

.kanban-card,
.pipeline-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e2edf7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.kanban-card:hover,
.pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Login Page */
.login-page,
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(37, 99, 235, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(14, 165, 233, 0.16),
      transparent 28%
    ),
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #eef6ff 100%);
}

.login-card,
.auth-card {
  border: 1px solid rgba(209, 226, 242, 0.98) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--shadow-lg) !important;
  backdrop-filter: blur(18px);
}

/* Alert / Info Box */
.alert,
.info-box,
.note,
.notice {
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eaf6ff;
  color: #075985;
  padding: 18px 20px;
  font-weight: 650;
}

/* Chart container */
.chart,
.chart-card {
  border: 1px solid rgba(209, 226, 242, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 1200px) {
  .stats,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kanban,
  .pipeline-board {
    overflow-x: auto;
    grid-template-columns: repeat(6, 220px);
    padding-bottom: 10px;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 22px;
    border-radius: 0 0 24px 24px;
  }

  .main {
    margin-left: 0 !important;
  }

  .topbar,
  .header,
  .page-top,
  .main-header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px !important;
  }

  .search,
  .search-box,
  input[type="search"] {
    width: 100%;
    min-width: 0;
  }

  .content,
  .page-content,
  .main-content {
    padding: 24px !important;
  }
}

@media (max-width: 720px) {
  .stats,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .page-title h1,
  .topbar h1,
  .header h1,
  .main h1 {
    font-size: 28px;
  }

  .card,
  .box,
  .panel {
    padding: 22px !important;
  }

  table {
    min-width: 760px;
  }

  .table-wrap,
  .table-card,
  .table-container {
    overflow-x: auto;
  }
}

/* Menghapus ikon tambahan agar menu sidebar tidak punya dua bulatan */
.sidebar a::before,
.sidebar .nav-link::before,
.sidebar .menu a::before {
  display: none !important;
  content: none !important;
}

/* Merapikan jarak menu setelah ikon tambahan dihapus */
.sidebar a,
.sidebar .nav-link,
.sidebar .menu a {
  gap: 16px !important;
}

/* =========================================================
   Fix judul halaman agar tidak kepotong / terlalu besar
   ========================================================= */

.topbar,
.header,
.page-top,
.main-header {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  align-items: center !important;
  padding-top: 26px !important;
  padding-bottom: 22px !important;
}

.page-title,
.topbar > div:first-child,
.header > div:first-child,
.main-header > div:first-child {
  overflow: visible !important;
}

.page-title h1,
.topbar h1,
.header h1,
.main-header h1 {
  font-size: 30px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.035em !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* Supaya h1 di dalam konten tidak ikut terlalu besar */
.main h1 {
  line-height: 1.18 !important;
  overflow: visible !important;
}

/* Subtitle halaman */
.page-title p,
.topbar p,
.header p,
.main-header p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  color: #64748b !important;
}

/* =========================================================
   MODERN LOGIN PAGE
   ========================================================= */

.login-modern-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 100%);
}

.login-modern-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.login-modern-left {
  position: relative;
  overflow: hidden;
  padding: 42px 48px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.15),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 255, 255, 0.12),
      transparent 26%
    ),
    linear-gradient(135deg, #0f5cc0 0%, #1e88ff 55%, #39a0ff 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-modern-left::before,
.login-modern-left::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.login-modern-left::before {
  width: 520px;
  height: 520px;
  top: -80px;
  right: -120px;
}

.login-modern-left::after {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -90px;
}

.login-modern-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.1));
  z-index: 0;
}

.login-modern-brand,
.login-modern-content {
  position: relative;
  z-index: 1;
}

.login-modern-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-modern-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.login-modern-brand h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.login-modern-brand p {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.login-modern-content {
  max-width: 620px;
  margin-top: 40px;
}

.login-modern-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.login-modern-content h2 {
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.login-modern-content p {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
}

.login-modern-points {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.login-point-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.login-point-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
}

.login-modern-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: #f8fbff;
}

.login-modern-card {
  width: 100%;
  max-width: 520px;
  padding: 42px 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce8f5;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.login-modern-card-top {
  margin-bottom: 28px;
  text-align: center;
}

.login-modern-card-top h3 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
  color: #16233a;
  letter-spacing: -0.04em;
}

.login-modern-card-top p {
  margin: 0;
  color: #6b7c93;
  font-size: 16px;
}

.login-modern-form {
  display: grid;
  gap: 20px;
}

.login-form-group {
  display: grid;
  gap: 9px;
}

.login-form-group label {
  font-size: 15px;
  font-weight: 800;
  color: #233246;
}

.login-form-group input {
  width: 100%;
  height: 58px;
  border: 1px solid #d6e4f2;
  border-radius: 18px;
  background: #f7fbff;
  padding: 0 18px;
  font-size: 16px;
  color: #1e293b;
  outline: none;
  transition: 0.22s ease;
}

.login-form-group input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
}

.login-modern-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f80ff 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.24);
  transition: 0.22s ease;
  margin-top: 4px;
}

.login-modern-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.3);
}

.login-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 14px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px) {
  .login-modern-wrap {
    grid-template-columns: 1fr;
  }

  .login-modern-left {
    min-height: 360px;
    padding: 32px 28px;
  }

  .login-modern-content h2 {
    font-size: 34px;
  }

  .login-modern-content p {
    font-size: 16px;
  }

  .login-modern-right {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .login-modern-left {
    padding: 26px 20px;
  }

  .login-modern-right {
    padding: 20px;
  }

  .login-modern-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .login-modern-card-top h3 {
    font-size: 32px;
  }

  .login-modern-content h2 {
    font-size: 28px;
  }

  .login-modern-content p {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* =========================================================
   LOGIN REFINEMENT - lebih simple, card lebih naik
   ========================================================= */

/* Area kiri lebih simpel */
.login-modern-content {
  max-width: 560px;
  margin-top: 10px !important;
}

.login-modern-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.login-modern-content h2 {
  margin: 0 0 14px !important;
  font-size: 58px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em;
  max-width: 560px;
}

.login-modern-content p {
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 560px;
}

/* Hilangkan list lama kalau masih ada */
.login-modern-points {
  display: none !important;
}

/* Ganti jadi chip kecil */
.login-modern-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.login-modern-mini span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Dekorasi floating mini */
.login-float-card {
  position: absolute;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
  animation: loginFloat 5s ease-in-out infinite;
}

.float-card-1 {
  top: 110px;
  right: 80px;
  animation-delay: 0s;
}

.float-card-2 {
  top: 190px;
  right: 120px;
  animation-delay: 1.2s;
}

.float-card-3 {
  bottom: 90px;
  right: 90px;
  animation-delay: 2s;
}

@keyframes loginFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Bagian kanan: card login dinaikkan */
.login-modern-right {
  display: flex;
  align-items: flex-start !important;
  justify-content: center;
  padding: 28px 42px 36px !important;
  background: #f8fbff;
}

.login-modern-card {
  width: 100%;
  max-width: 520px;
  margin-top: 18px !important;
  padding: 34px 36px !important;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce8f5;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

/* Header login dirapikan */
.login-modern-card-top {
  margin-bottom: 24px !important;
  text-align: center;
}

.login-modern-card-top h3 {
  margin: 0 0 8px !important;
  font-size: 34px !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  color: #16233a;
  letter-spacing: -0.04em;
}

.login-modern-card-top p {
  margin: 0 !important;
  color: #6b7c93;
  font-size: 15px !important;
}

/* Input dan tombol */
.login-form-group input {
  height: 56px !important;
  border-radius: 18px !important;
}

.login-modern-btn {
  height: 56px !important;
  border-radius: 18px !important;
  font-size: 18px !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .login-modern-right {
    align-items: center !important;
    padding: 28px !important;
  }

  .login-modern-card {
    margin-top: 0 !important;
  }

  .login-modern-content h2 {
    font-size: 40px !important;
  }

  .login-float-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .login-modern-content h2 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  .login-modern-content p {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .login-modern-mini {
    gap: 10px;
  }

  .login-modern-mini span {
    font-size: 13px;
    padding: 10px 14px;
  }

  .login-modern-card-top h3 {
    font-size: 28px !important;
  }
}

/* Status pembayaran */
.pay-belum_bayar {
  color: #92400e !important;
  background: #fef3c7 !important;
}

.pay-menunggu_verifikasi {
  color: #075985 !important;
  background: #e0f2fe !important;
}

.pay-lunas {
  color: #15803d !important;
  background: #dcfce7 !important;
}

.pay-ditolak {
  color: #b91c1c !important;
  background: #fee2e2 !important;
}
