/* PANGLIMANET Layout & Custom Design System */
:root {
  --bg-main: #f8fafc;
  --bg-sidebar: #1e293b;
  --sidebar-active: #0284c7;
  --border-color: #e2e8f0;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-gradient: linear-gradient(135deg, #0284c7, #2563eb);
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body.panglimanet-layout {
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: margin-left 0.25s ease, left 0.25s ease;
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar.collapsed {
  margin-left: -260px;
}

.sidebar-brand {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.brand-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.menu-item.active {
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.toggle-sidebar-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toggle-sidebar-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.role-switcher-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 20px;
}

.topbar-right {
  display: flex;
  gap: 10px;
}

.btn-topbar {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-topbar:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-topbar.btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-topbar.btn-accent:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.content-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

/* Search Card */
.search-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 12px 42px 12px 46px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.clear-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: none;
  font-size: 1.1rem;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* PANGLIMANET Table */
.table-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panglima-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.panglima-table th {
  background: #f8fafc;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-color);
  color: #475569;
  font-weight: 700;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panglima-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.panglima-table tr:hover {
  background: #f1f5f9;
}

.btn-detail {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.btn-detail:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

/* Form Controls & Styling for Modals */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

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

.form-input[readonly] {
  background: #e2e8f0;
  color: #475569;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-primary-gradient {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

/* Modals Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* EXACT MATCH PANGLIMANET DETAIL MODAL */
.panglima-detail-modal {
  max-width: 1050px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  background: #fff;
  color: #0f172a;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.close-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.panglima-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.detail-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
  display: block;
}

.detail-input, .detail-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #0284c7;
  font-weight: 700;
  background: #f8fafc;
  outline: none;
}

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

.photo-placeholder-box {
  width: 100%;
  height: 150px;
  background: #e2e8f0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: #64748b;
  margin-bottom: 6px;
  border: 2px dashed #cbd5e1;
}

.wa-green-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}

.wa-green-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.pppoe-highlight-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 8px 0;
  box-shadow: var(--shadow-sm);
}

.pppoe-hl-lbl {
  font-size: 0.82rem;
  color: #1e40af;
  font-weight: 700;
}

.pppoe-hl-val {
  font-family: monospace;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1d4ed8;
}

.copy-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #0369a1;
}

.panglima-table tr.row-offline {
  background-color: #fff1f2 !important;
  color: #991b1b;
}

.panglima-table tr.row-offline:hover {
  background-color: #ffe4e6 !important;
}

.customer-card.card-offline {
  border: 1.5px solid #fca5a5 !important;
  background: #fff5f5 !important;
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.online { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-badge.offline { background: #ef4444 !important; color: #ffffff !important; border: 1px solid #dc2626 !important; box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3); }
.status-badge.isolir { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-badge.gratis { background: #dc2626 !important; color: #ffffff !important; border: 1px solid #991b1b !important; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4); font-weight: 800; }
.status-badge.bayar { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.panglima-table tr.row-gratis {
  background-color: #fff1f2 !important;
}

.panglima-table tr.row-gratis td {
  color: #991b1b !important;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FULLSCREEN LOGIN OVERLAY & CARD DESIGN */
.login-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, #0f172a, #0284c7, #0f172a);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.login-overlay.active .login-card {
  transform: translateY(0);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-circle {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
}

.login-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: 0.5px;
}

.login-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 4px 0 0;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 850px) {
  .panglima-grid-layout, .form-row {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0; bottom: 0;
  }

  .sidebar.show {
    left: 0;
  }
}

/* Premium Sync Button Style */
.btn-wa {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Animated Copy Button & Toast Notification System */
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  padding: 0;
  border: none;
  background: #0284c7; /* Vibrant blue matching the screenshot */
  color: #ffffff; /* White icon */
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.btn-copy:hover {
  background: #0369a1;
  color: #ffffff;
  transform: scale(1.1);
}

.btn-copy:active {
  transform: scale(0.9);
}

.btn-copy.copied {
  background: #10b981; /* Solid success green on copy */
  color: #ffffff;
  animation: bounceCopied 0.3s ease;
}

@keyframes bounceCopied {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Toast System Styling */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

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

/* Custom Styled Checkbox to match user screenshot */
.col-checkbox {
  width: 45px;
  text-align: center;
}

.customer-checkbox, #selectAllCustomers {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #b2c0d2;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 #ffffff;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.customer-checkbox:hover, #selectAllCustomers:hover {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.customer-checkbox:checked, #selectAllCustomers:checked {
  background: linear-gradient(180deg, #0284c7 0%, #2563eb 100%);
  border-color: #2563eb;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
}

.customer-checkbox:checked::after, #selectAllCustomers:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #ffffff;
  font-size: 11px;
}


