/* services/8-Monitoring-Permintaan-CUG-BARU/css/style.css */
/* IT Service & Aset RS Mitra Keluarga - Monitoring Permintaan Nomor CUG Baru */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --accent: #059669;
  --accent-light: #d1fae5;
  --telkom-red: #e11d48;
  --telkom-light: #ffe4e6;
  
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Status Colors */
  --status-approve-bg: #ecfdf5;
  --status-approve-text: #065f46;
  --status-approve-border: #a7f3d0;

  --status-proses-bg: #fffbeb;
  --status-proses-text: #92400e;
  --status-proses-border: #fde68a;

  --status-reject-bg: #fef2f2;
  --status-reject-text: #991b1b;
  --status-reject-border: #fecaca;

  --status-done-bg: #f0fdf4;
  --status-done-text: #166534;
  --status-done-border: #bbf7d0;

  /* Spacing & Radii */
  --sidebar-width: 270px;
  --sidebar-width-collapsed: 72px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 20px -4px rgba(2, 132, 199, 0.12);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* APP SHELL LAYOUT */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* BACKDROP FOR MOBILE */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 95;
  transition: opacity 0.2s ease;
}

.sidebar-backdrop.is-open {
  display: block;
}

/* SIDEBAR */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  height: 68px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.btn-sidebar-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-sidebar-toggle:hover {
  background: var(--surface-hover);
  color: var(--primary);
  border-color: #cbd5e1;
}

.btn-sidebar-toggle .icon-toggle {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-info h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-mika {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 600;
}

.brand-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  padding: 0.75rem 0.6rem 0.35rem;
  text-transform: uppercase;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar-item:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.sidebar-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-item-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-ext-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Accordion Nav Groups */
.nav-group {
  margin-bottom: 0.25rem;
}

.nav-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-group-header:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.group-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.nav-group.is-open .group-chevron {
  transform: rotate(180deg);
}

.nav-group-items {
  display: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-group.is-open .nav-group-items {
  display: flex;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.nav-sub-item:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.nav-sub-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sub-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
  font-weight: 600;
}

.badge-blue { background: #e0f2fe; color: #0284c7; }
.badge-amber { background: #fef3c7; color: #d97706; }
.badge-emerald { background: #d1fae5; color: #059669; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-onedrive { background: #e0e7ff; color: #4338ca; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-info {
  display: flex;
  flex-direction: column;
}

.status-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.status-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* MAIN VIEWPORT */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================================================== */
/* Collapsed Mini Sidebar                               */
/* ==================================================== */
.app-sidebar.is-collapsed {
  width: var(--sidebar-width-collapsed);
}

.app-sidebar.is-collapsed ~ .main-wrapper,
.app-container.sidebar-collapsed .main-wrapper {
  margin-left: var(--sidebar-width-collapsed);
}

.app-sidebar.is-collapsed .brand-info,
.app-sidebar.is-collapsed .nav-item-text,
.app-sidebar.is-collapsed .nav-section-title,
.app-sidebar.is-collapsed .sub-text,
.app-sidebar.is-collapsed .item-ext-arrow,
.app-sidebar.is-collapsed .status-info,
.app-sidebar.is-collapsed .group-chevron {
  display: none !important;
}

.app-sidebar.is-collapsed .btn-sidebar-toggle .icon-toggle {
  transform: rotate(180deg);
}

.app-sidebar.is-collapsed .sidebar-header {
  justify-content: center;
  padding: 0 0.5rem;
}

.app-sidebar.is-collapsed .sidebar-brand {
  display: none;
}

.app-sidebar.is-collapsed .sidebar-item,
.app-sidebar.is-collapsed .nav-group-header {
  justify-content: center;
  padding: 0.65rem 0.5rem;
}

.app-sidebar.is-collapsed .nav-group-items {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.app-sidebar.is-collapsed .nav-sub-item {
  justify-content: center;
  padding: 0.6rem 0.5rem;
  border-left: none;
}

.app-sidebar.is-collapsed .sidebar-footer {
  justify-content: center;
  padding: 0.75rem 0;
}

.app-sidebar.is-collapsed .system-status {
  padding: 0.4rem;
  justify-content: center;
  background: transparent;
  border: none;
}

/* TOPBAR */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-mobile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-mobile-menu:hover {
  background: var(--surface-hover);
  color: var(--primary);
  border-color: #cbd5e1;
}
  color: var(--text-muted);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.crumb-root, .crumb-item {
  color: var(--text-muted);
  text-decoration: none;
}

.crumb-sep {
  color: var(--text-subtle);
}

.crumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  background: var(--surface-hover);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-excel {
  background: #107c41;
  color: #fff;
}

.btn-excel:hover {
  background: #0b5e31;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

/* CONTENT CONTAINER */
.content-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* BANNER HEADER */
.service-header-banner {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 60%, #0ea5e9 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.3);
  position: relative;
  overflow: hidden;
}

.service-header-banner::after {
  content: "📱";
  position: absolute;
  right: 1.5rem;
  bottom: -1rem;
  font-size: 7rem;
  opacity: 0.15;
  pointer-events: none;
}

.banner-content h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.banner-badge-live {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.banner-content p {
  font-size: 0.92rem;
  opacity: 0.9;
  max-width: 700px;
}

.banner-actions {
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

/* WORKFLOW PIPELINE TRACKER */
.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pipeline-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pipeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.pipeline-step.active .step-circle {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.pipeline-step.completed .step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-subtext {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* KPI METRIC CARDS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.metric-icon-blue { background: #e0f2fe; color: #0284c7; }
.metric-icon-green { background: #d1fae5; color: #059669; }
.metric-icon-amber { background: #fef3c7; color: #d97706; }
.metric-icon-purple { background: #f3e8ff; color: #7e22ce; }
.metric-icon-red { background: #ffe4e6; color: #e11d48; }

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* FILTER & CONTROLS TOOLBAR */
.toolbar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  background: #f8fafc;
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease;
}

.search-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-select {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  background: #f8fafc;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary);
  background: #fff;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* DATA TABLE CONTAINER */
.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
}

.data-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-count-badge {
  font-size: 0.75rem;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.cug-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.cug-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.cug-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cug-table tbody tr {
  transition: background 0.15s ease;
}

.cug-table tbody tr:hover {
  background: #f8fafc;
}

/* MULTI-LINE INFO CELL (Sesuai Layout 4-Baris Excel) */
.cell-multi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cell-primary-text {
  font-weight: 700;
  color: var(--text-main);
}

.cell-sub-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cell-date-badge {
  font-size: 0.72rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 3px;
}

/* STATUS BADGES */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-status.approve {
  background: var(--status-approve-bg);
  color: var(--status-approve-text);
  border-color: var(--status-approve-border);
}

.badge-status.proses {
  background: var(--status-proses-bg);
  color: var(--status-proses-text);
  border-color: var(--status-proses-border);
}

.badge-status.reject {
  background: var(--status-reject-bg);
  color: var(--status-reject-text);
  border-color: var(--status-reject-border);
}

.badge-status.sudah {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.badge-status.belum {
  background: #f8fafc;
  color: #64748b;
  border-color: #cbd5e1;
}

.badge-status.done {
  background: var(--status-done-bg);
  color: var(--status-done-text);
  border-color: var(--status-done-border);
}

.badge-status.cancel {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* CODE / TICKET PILLS */
.ticket-code {
  font-family: monospace;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.msisdn-code {
  font-family: monospace;
  font-weight: 700;
  color: #0f172a;
}

.order-code {
  font-family: monospace;
  font-size: 0.72rem;
  color: #64748b;
}

/* MODAL STYLES */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  background: #fafbfc;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* FORM ELEMENTS IN MODAL */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.form-control {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #fff;
  color: var(--text-main);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* NOTIFICATION TOAST */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastSlideIn 0.25s ease-out;
}

@keyframes toastSlideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .app-sidebar {
    width: var(--sidebar-width) !important;
    transform: translateX(-100%);
  }
  .app-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  }
  .main-wrapper,
  .app-sidebar.is-collapsed ~ .main-wrapper,
  .app-container.sidebar-collapsed .main-wrapper {
    margin-left: 0 !important;
  }
  .btn-sidebar-toggle {
    display: none;
  }
  .sidebar-backdrop.is-open {
    display: block;
  }
}

@media (max-width: 768px) {
  .content-body {
    padding: 1rem;
  }
  .service-header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* MODAL TABS */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
  padding: 0 1.75rem;
  background: #fafbfc;
}

.modal-tab-btn {
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.modal-tab-btn:hover {
  color: var(--text-main);
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* CODE SNIPPET BOX */
.code-box {
  background: #0f172a;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  position: relative;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* STEP GUIDE CARDS */
.step-guide-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: #f8fafc;
  display: flex;
  gap: 0.85rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==================================================== */
/* PORTAL LOCK SCREEN (PROTEKSI AKSES CUG)              */
/* ==================================================== */
.cug-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.cug-lock-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}

.cug-lock-card.shake {
  animation: lockShake 0.4s ease-in-out;
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.cug-lock-icon-wrap {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  color: #fff;
  position: relative;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.cug-lock-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(2, 132, 199, 0.4);
  animation: pulseRing 2s infinite ease-out;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.cug-lock-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.cug-lock-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem;
}

.cug-lock-header p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.cug-auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cug-auth-input {
  width: 100%;
  height: 48px;
  padding: 0 45px 0 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.cug-auth-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cug-auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.btn-cug-unlock {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-cug-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.cug-lock-footer {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.btn-lock {
  border-color: #cbd5e1;
  color: #475569;
}

.btn-lock:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

