:root {
  --primary-blue: #2c5282;
  --secondary-blue: #3182ce;
  --light-bg: #f7fafc;
  --bg-light: #f7fafc;
  --sidebar-bg: #2b6cb0;
  --text-color: #2d3748;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --card-header-bg: #2c5282;
  --card-header-text: #ffffff;
  --danger-color: #e53e3e;

  --progress-color: #90cdf4;
  --target-color: #2b6cb0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fff;
  color: var(--text-color);
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: var(--sidebar-bg);
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle Button */
.mobile-drawer-toggle {
  display: none;
}

.drawer-toggle-btn {
  display: none;
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 0;
}

.drawer-toggle-btn:hover {
  background-color: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* Mobile Drawer Overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  display: block;
}

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

.logo-icon {
  font-size: 24px;
}

.logo-text h1 {
  font-size: 20px;
  line-height: 1;
}

.logo-text span {
  font-size: 12px;
  opacity: 0.8;
}

.menu {
  padding-top: 15px;
}

.menu-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 15px;
  text-decoration: none;
  color: white;
}

.menu-item:hover,
.menu-item.active {
  background-color: rgba(0, 0, 0, 0.2);
  border-left: 4px solid #63b3ed;
}

.menu-item i {
  width: 18px;
  text-align: center;
}

.sidebar .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar .sidebar-logo-img {
  width: 26px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* removed submenu chevron and title label */

.menu-sublist {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.menu-subitem {
  padding: 10px 20px 10px 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
}

.menu-subitem:hover,
.menu-subitem.active {
  background-color: rgba(0, 0, 0, 0.18);
  border-left: 4px solid #63b3ed;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 15px;
  overflow-y: auto;
  background-color: #fff;
  height: 100vh;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .user-avatar {
  width: 34px;
  height: 34px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.sidebar-footer .user-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-footer .user-info span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .user-info span:first-child {
  font-weight: 600;
  font-size: 13px;
}

.sidebar-footer .user-info span:last-child {
  font-size: 10px;
  opacity: 0.7;
}

.sidebar-footer .btn-logout {
  background: none;
  border: none;
  color: #fc8181;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: color 0.2s;
}

.sidebar-footer .btn-logout:hover {
  color: #feb2b2;
}

.sidebar-language {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.sidebar-lang-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-lang-btn i {
  font-size: 14px;
}

.sidebar-lang-btn .lang-flag {
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 0 0 transparent);
}
.sidebar-lang-btn .lang-flag-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-lang-btn .lang-name {
  font-size: 13px;
  font-weight: 600;
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px 20px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-blue);
  display: none;
  align-items: center;
  gap: 8px;
}

.brand-logo i {
  font-size: 24px;
}

/* Language Switcher */
.language-switcher {
  display: none;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background-color: var(--secondary-blue);
  border-color: var(--secondary-blue);
  color: white;
}

.lang-btn:focus {
  outline: 2px solid var(--secondary-blue);
  outline-offset: 2px;
}

.lang-btn i {
  font-size: 16px;
}

.lang-btn #currentLang {
  font-weight: 600;
  font-size: 13px;
}

/* Tables header/tools layout */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.table-header .table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

@media (max-width: 768px) {
  .table-header {
    align-items: flex-start;
  }
  .table-header .table-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
  }
  .table-header .table-tools .form-control {
    max-width: 220px;
  }
}

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 1000px;
}

.page-title-bar {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.page-title-text {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.dropdown-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: #718096;
}

.filter-group select {
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  min-width: 110px;
  font-size: 13px;
}

.filter-pairs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-pair {
  display: flex;
  gap: 15px;
  align-items: center;
}

.filter-pair .filter-group {
  flex: 1;
}

.filter-pair .filter-group select {
  width: 100%;
}

.filter-pair:nth-child(2) {
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.filter-pair:nth-child(2) .filter-group {
  flex: 1;
  max-width: 250px;
}

.filter-pair-desktop {
  display: flex;
}

.filter-pair-mobile {
  display: none;
}

.date-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.year-buttons,
.month-buttons {
  display: flex;
  gap: 2px;
}

.year-buttons button,
.month-buttons button {
  padding: 4px 8px;
  border: 1px solid #cbd5e0;
  background: #edf2f7;
  cursor: pointer;
  font-size: 11px;
}

.year-buttons button.active,
.month-buttons button.active {
  background-color: #4a5568;
  color: white;
  border-color: #4a5568;
}

.month-buttons button {
  min-width: 32px;
}

.year-select,
.month-select {
  display: block;
  padding: 6px 10px;
  border: 1px solid #cbd5e0;
  background: #edf2f7;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  max-width: 100px;
}

.year-select:hover,
.month-select:hover {
  background: #e2e8f0;
}

.year-select:focus,
.month-select:focus {
  outline: none;
  border-color: #4a5568;
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.year-desktop,
.month-desktop {
  display: none;
}

.year-mobile,
.month-mobile {
  display: block;
}

@media (max-width: 1024px) {
  .year-desktop,
  .month-desktop {
    display: none;
  }

  .year-mobile,
  .month-mobile {
    display: block;
  }

  .year-select,
  .month-select {
    max-width: none;
    width: 100%;
  }
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 15px;
  min-height: 0;
  height: auto;
  padding-bottom: 15px;
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-header {
  background-color: var(--card-header-bg);
  color: var(--card-header-text);
  padding: 8px 12px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
}

.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.chart-container {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gauge Cards */
.gauge-card {
  grid-column: span 1;
  height: 200px;
}

.gauge-stats {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-top: 8px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.legend-color {
  width: 18px;
  height: 6px;
}

.color-progress {
  background-color: var(--progress-color);
}
.color-target {
  background-color: var(--target-color);
}

.trend-up {
  color: green;
  font-weight: bold;
}

/* Status Card */
.status-card {
  grid-column: span 1;
  height: 280px;
}

.status-header {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}

/* Cabang Card */
.cabang-card {
  grid-column: span 3;
  height: 280px;
}

.cabang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  height: 100%;
  align-content: center;
  overflow-y: auto;
  padding: 5px;
}

.cabang-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabang-circle {
  width: 36px;
  height: 36px;
  position: relative;
}

.cabang-info {
  font-size: 10px;
}

.cabang-info strong {
  display: block;
}

/* Monthly Card */
.monthly-card {
  grid-column: span 2;
  height: 250px;
}

/* Location Card */
.location-card {
  grid-column: span 1;
  height: calc(100vh - 180px);
}

.map-container {
  padding: 0 !important;
  position: relative;
  background-color: transparent !important;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Leaflet Map Styles ===== */
#indonesiaMap {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 4px;
  z-index: 1;
  flex: 1;
}

.leaflet-container {
  font-family: inherit;
  font-size: 12px;
  background-color: #f0f4f8;
}

.leaflet-popup-content {
  font-size: 12px;
  min-width: 150px;
}

.leaflet-popup-content b {
  color: var(--primary-blue);
}

.map-title-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  color: var(--primary-blue);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

/* Legend styles */
.info.legend {
  background: white;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 10px;
  line-height: 1.3;
}

.info.legend h4 {
  margin: 0 0 5px 0;
  color: var(--primary-blue);
  font-size: 11px;
}

.info.legend div {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.info.legend div:last-child {
  margin-bottom: 0;
}

/* Custom marker icons */
.custom-div-icon {
  background: transparent;
  border: none;
}

.map-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.map-marker-harbor {
  background-color: #3182ce;
}

.map-marker-ship {
  background-color: #2ecc71;
}

.map-marker-ship i {
  font-size: 14px;
}

.map-legend {
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  line-height: 1.4;
}

.map-legend-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.map-legend-row:last-child {
  margin-bottom: 0;
}

.map-legend-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
}

.map-legend-icon-harbor {
  background-color: #3182ce;
}

.map-legend-icon-ship {
  background-color: #2ecc71;
}

.map-legend-icon-route {
  background-color: #2b6cb0;
}

.legend-line {
  display: inline-block;
  width: 26px;
  height: 0;
  border-top: 3px solid #2b6cb0;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-line-ongoing {
    border-color: #38a169;
  border-style: solid;
}
.legend-line-completed {
    border-color: #e53e3e;
  border-style: dashed;
}
.legend-line-upcoming {
    border-color: #2b6cb0;
  border-style: dotted;
}

.legend-circle {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #2b6cb0;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-fa {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1;
}
.legend-fa-harbor {
  color: #3182ce;
}
.legend-fa-ship {
  color: #2ecc71;
}

/* --- View Sections General --- */
.view-section {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* --- Pengajuan Usulan View --- */
.form-container {
  width: 100%;
  height: 100%;
}

.form-card,
.upload-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  overflow-y: visible;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--secondary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--bg-light);
}

.upload-area:hover {
  border-color: var(--secondary-blue);
  background-color: rgba(49, 130, 206, 0.05);
}

.upload-icon {
  font-size: 40px;
  color: var(--secondary-blue);
  margin-bottom: 10px;
}

.upload-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.image-preview {
  position: relative;
  display: inline-block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  display: block;
}

.btn-remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--danger-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.btn-remove-image:hover {
  background-color: var(--danger-color);
  color: white;
}

.btn-primary {
  background-color: var(--secondary-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: auto;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-icon {
  padding: 10px;
}

.btn-edit {
  background-color: var(--secondary-blue);
  color: white;
  border: none;
}

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

.btn-delete {
  background-color: #dc3545;
  color: white;
  border: none;
}

.btn-delete:hover {
  background-color: #c82333;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 30px 15px;
  text-align: center;
  background-color: var(--light-bg);
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:hover {
  border-color: var(--secondary-blue);
  background-color: #ebf8ff;
}

.upload-icon {
  font-size: 36px;
  color: var(--secondary-blue);
  margin-bottom: 12px;
}

/* --- Tables (Perizinan & Akses) --- */
.table-container {
  width: 100%;
  overflow-x: auto;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}

.data-table th {
  background-color: var(--light-bg);
  color: var(--text-color);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

/* Fixed width for 'No.' column (assumes first column is numbering) */
.data-table th:first-child,
.data-table td:first-child {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  text-align: center;
}

.data-table tr:hover {
  background-color: #f7fafc;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-success {
  background-color: #c6f6d5;
  color: #22543d;
}
.status-warning {
  background-color: #feebc8;
  color: #744210;
}
.status-danger {
  background-color: #fed7d7;
  color: #742a2a;
}

.status-draft {
  background-color: #4b5563;
  color: #ffffff;
}
.status-submitted {
  background-color: #2563eb;
  color: #ffffff;
}
.status-approved,
.status-accepted {
  background-color: #16a34a;
  color: #ffffff;
}
.status-rejected {
  background-color: #dc2626;
  color: #ffffff;
}

.status-upcoming {
  background-color: #2b6cb0;
  color: #ffffff;
}
.status-ongoing {
  background-color: #38a169;
  color: #ffffff;
}
.status-finished {
  background-color: #e53e3e;
  color: #ffffff;
}

.md-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-color);
}

.md-pagination button {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.md-pagination button.active,
.md-pagination button:hover:not(:disabled) {
  background: var(--secondary-blue);
  color: white;
  border-color: var(--secondary-blue);
}

.md-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal.show {
  display: block;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-color);
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-close:hover {
  background-color: #edf2f7;
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* --- Evaluasi Proyek View --- */
.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
}

.checklist-item i {
  font-size: 14px;
  color: #48bb78; /* Green check */
}

.checklist-item.pending i {
  color: #cbd5e0; /* Grey circle */
}

/* --- Manajemen Akses View --- */
.access-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 15px;
  /* height: 100%; Removed to prevent cards from stretching unnecessarily */
  align-items: start;
}

.log-list {
  list-style: none;
  padding: 0;
}

.log-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.log-icon {
  width: 30px;
  height: 30px;
  background-color: #edf2f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: var(--text-color);
  flex-shrink: 0;
}

.log-content h4 {
  font-size: 12px;
  margin-bottom: 2px;
}

.log-content p {
  font-size: 11px;
  color: #718096;
}

/* --- Utilities & Component Specifics --- */
.text-primary {
  color: var(--primary-blue);
}
.text-success {
  color: #48bb78;
}
.text-warning {
  color: #ecc94b;
}
.text-danger {
  color: #e53e3e;
}
.text-muted {
  color: #718096;
}
.text-sm {
  font-size: 11px;
}
.text-xs {
  font-size: 9px;
}

.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 15px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 15px;
}

.p-0 {
  padding: 0 !important;
}
.border-0 {
  border: none !important;
}

/* Table Specifics */
.user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-sm {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
  width: auto;
}

.data-table .btn i {
  margin-right: 6px;
}

.data-table td .btn + .btn {
  margin-left: 6px;
}

.data-table td.actions-col .actions-vertical .btn + .btn,
.data-table td.actions-col .btn + .btn {
  margin-left: 0;
}

/* Sticky actions column for all tables with vertical buttons */
.data-table th.actions-col,
.data-table td.actions-col {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 3;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  border-left: 1px solid var(--border-color);
}

.data-table th.actions-col {
  z-index: 4;
}

.data-table td.actions-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-table td.actions-col .actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-table td.actions-col .actions-vertical .btn,
.data-table td.actions-col .btn {
  width: 100%;
  justify-content: center;
  padding: 6px 10px;
  font-size: 12px;
  min-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-success {
  background-color: #48bb78;
}

.btn-success:hover {
  background-color: #38a169;
}

/* Evaluation Specifics */
.score-container {
  text-align: center;
  margin-bottom: 15px;
}

.score-value {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 4px;
}

/* Access Log Specifics */
.log-card-body {
  justify-content: flex-start;
  overflow-y: auto;
}

.log-meta {
  font-size: 9px;
  color: #cbd5e0;
}

/* Canvas responsive */
canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .gauge-card {
    grid-column: span 1;
    height: 180px;
  }
  .status-card {
    grid-column: span 1;
    height: 260px;
  }
  .cabang-card {
    grid-column: span 2;
    height: 260px;
  }
  .monthly-card {
    grid-column: span 2;
    height: 240px;
  }
  .location-card {
    grid-column: span 1;
    height: calc(100vh - 180px);
  }

  .month-buttons button {
    min-width: 30px;
    padding: 3px 6px;
    font-size: 10px;
  }
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .gauge-card {
    grid-column: span 1;
    height: 180px;
  }
  .status-card {
    grid-column: span 2;
    height: 250px;
  }
  .cabang-card {
    grid-column: span 2;
    height: 250px;
  }
  .monthly-card {
    grid-column: span 1;
    height: 240px;
  }
  .location-card {
    grid-column: span 1;
    height: calc(100vh - 180px);
  }

  .cabang-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-container,
  .access-grid,
  .evaluation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .main-content {
    padding: 12px;
    /* padding-top: 200px; removed */
  }

  .dashboard-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .gauge-card,
  .status-card,
  .cabang-card,
  .monthly-card {
    height: 220px;
  }

  .cabang-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters-container {
    max-width: 100%;
  }

  .dropdown-filters {
    flex-wrap: wrap;
  }

  .filter-group {
    flex: 1 1 calc(50% - 10px);
  }

  .map-title-overlay {
    font-size: 9px;
    padding: 4px 8px;
  }

  .info.legend {
    padding: 5px 8px;
    font-size: 9px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 15px 15px;
    gap: 10px;
  }

  .logo {
    display: none;
  }

  .brand-logo {
    display: flex;
    font-size: 20px;
  }

  .brand-logo i {
    font-size: 24px;
  }

  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .container {
    flex-direction: row;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0; /* Changed from 60px to 0 for full height sidebar */
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    z-index: 1000;
    padding-top: 0;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: flex;
  }

  .mobile-drawer-toggle {
    display: flex;
    align-items: center;
    position: absolute;
    right: 15px;
    top: 15px;
  }

  .drawer-toggle-btn {
    display: flex;
  }

  .main-content {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 15px;
    margin-left: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gauge-card,
  .status-card,
  .cabang-card,
  .monthly-card,
  .location-card {
    grid-column: span 1;
    height: 220px;
  }

  .cabang-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-container {
    flex-direction: column;
  }

  .filter-pairs {
    gap: 8px;
  }

  .filter-pair-desktop {
    display: none;
  }

  .filter-pair-mobile {
    display: flex;
  }

  .filter-pair {
    flex-direction: row;
    gap: 8px;
  }

  .filter-pair .filter-group {
    flex: 1;
  }

  .filter-pair .filter-group select {
    width: 100%;
    min-width: 0;
  }

  .date-filters {
    flex-direction: column;
    gap: 10px;
  }

  #indonesiaMap {
    min-height: 200px;
  }

  /* Form responsive styles */
  .form-card {
    padding: 15px;
  }

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

  .form-group label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .form-control {
    font-size: 14px;
    padding: 10px 12px;
  }

  textarea.form-control {
    min-height: 70px;
  }

  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 13px;
  }

  /* Table responsive styles */
  .table-responsive {
    margin: 0 -15px;
    padding: 0 15px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 6px;
  }

  .data-table th:last-child,
  .data-table td:last-child {
    padding-right: 15px;
  }

  /* Button responsive styles */
  .btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .btn-sm {
    font-size: 11px;
    padding: 6px 10px;
  }

  /* Modal responsive styles */
  .modal {
    padding: 15px;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 100vh;
    overflow-y: auto;
  }

  .modal-header {
    padding: 15px;
    flex-direction: row;
    align-items: center;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  .modal-body {
    padding: 15px;
  }

  .modal-footer {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  /* Status badge responsive */
  .status-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  /* Action buttons in table */
  .data-table .btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .data-table .btn-sm {
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* Hide less important columns on very small screens */
@media (max-width: 480px) {
  .data-table th:nth-child(n + 4):nth-child(-n + 6),
  .data-table td:nth-child(n + 4):nth-child(-n + 6) {
    display: none;
  }

  .data-table th:nth-last-child(2),
  .data-table td:nth-last-child(2) {
    display: none;
  }
}

/* ================= PENGAJUAN FORM LAYOUT ================= */
.pengajuan-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--secondary-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  width: 100%;
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav-toggle i {
  font-size: 16px;
}

.mobile-nav-toggle:hover {
  background-color: #2563eb;
}

.form-section {
  flex: 0 0 70%;
}

.navigation-section {
  flex: 0 0 30%;
  position: sticky;
  top: 20px;
}

.navigation-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.close-nav-drawer {
  display: none;
}

.navigation-progress {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-header strong {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}

.progress-header span {
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
}

.progress {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.navigation-title {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.navigation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 15px;
  justify-content: flex-start;
}

.nav-box {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.nav-box.pending {
  background: #fee2e2;
  color: #dc2626;
  border-color: #ef4444;
}

.nav-box.completed {
  background: #dcfce7;
  color: #16a34a;
  border-color: #22c55e;
}

.nav-box:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navigation-summary {
  display: flex;
  justify-content: space-around;
  padding-top: 15px;
  border-top: 2px solid #e2e8f0;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.summary-label {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
}

.summary-item:first-child .summary-value {
  color: #16a34a;
}

.summary-item:last-child .summary-value {
  color: #dc2626;
}

.navigation-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.nav-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-btn.btn-primary {
  background-color: #0f766e;
  color: white;
  border: none;
}

.nav-btn.btn-primary:hover:not(:disabled) {
  background-color: #0d5f58;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 118, 110, 0.3);
}

.nav-btn.btn-primary:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
  opacity: 0.6;
}

.nav-btn.btn-secondary {
  background-color: #718096;
  color: white;
  border: none;
}

.nav-btn.btn-secondary:hover {
  background-color: #4a5568;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(113, 128, 150, 0.3);
}

.nav-btn {
  position: relative;
}

.nav-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #2d3748;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  border: 6px solid transparent;
  border-top-color: #2d3748;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-btn:hover::before,
.nav-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.nav-btn:hover::after {
  transform: translateX(-50%) translateY(-8px);
}

@media (max-width: 1024px) {
  .top-bar {
    left: 0;
  }

  .mobile-nav-toggle {
    display: flex;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 20px;
    border-radius: 0;
    margin-bottom: 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    justify-content: center;
  }

  .pengajuan-layout {
    flex-direction: column;
  }

  .form-section {
    flex: 0 0 100%;
  }

  .navigation-section {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    z-index: 9999;
    background: white;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    padding: 20px;
  }

  .navigation-section.open {
    right: 0;
  }

  .navigation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }

  .navigation-overlay.open {
    display: block;
  }

  .close-nav-drawer {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
  }

  .close-nav-drawer:hover {
    color: #333;
  }

  .nav-box {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .navigation-actions {
    flex-direction: column;
  }

  .nav-btn::before {
    bottom: auto;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
  }

  .nav-btn::after {
    bottom: auto;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-top-color: transparent;
    border-bottom-color: #2d3748;
  }

  .brand-logo {
    display: none;
  }

  .top-bar {
    justify-content: center;
  }
}

/* Untuk layar sangat kecil */
@media (max-height: 800px) {
  .gauge-card {
    height: 170px;
  }

  .status-card,
  .cabang-card {
    height: 220px;
  }

  .monthly-card {
    height: 210px;
  }

  .main-content {
    padding: 10px;
  }

  .dashboard-grid {
    gap: 10px;
  }

  .menu-item {
    padding: 10px 15px;
    font-size: 14px;
  }

  .logo {
    padding: 12px;
  }
}

/* Untuk layar sangat pendek */
@media (max-height: 700px) {
  .gauge-card {
    height: 160px;
  }

  .status-card,
  .cabang-card {
    height: 200px;
  }

  .monthly-card {
    height: 190px;
  }

  .card-header {
    padding: 6px 10px;
    font-size: 12px;
  }

  .card-body {
    padding: 8px;
  }
}

/* --- Login Page Styles --- */
.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: #fff;
  overflow: hidden;
}

.login-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  background: white;
  max-width: 550px;
}

.login-image-section {
  flex: 1.5;
  background-image: url("https://images.unsplash.com/photo-1548247661-3d79059409b6?ixlib=rb-4.0.3&auto=format&fit=crop&w=2072&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: white;
}

.login-image-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 82, 130, 0.9) 0%,
    rgba(49, 130, 206, 0.7) 100%
  );
  z-index: 1;
}

.login-image-section .content-text {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.login-image-section h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.login-image-section p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Login Header */
.login-header {
  margin-bottom: 30px;
  text-align: center;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--primary-blue);
}

.login-logo i {
  font-size: 38px;
}

.login-logo .logo-text {
  text-align: left;
}

.login-logo h2 {
  font-size: 22px;
  margin: 0;
  line-height: 1;
}

.login-logo span {
  font-size: 13px;
  color: #e53e3e;
  font-weight: 600;
  letter-spacing: 1px;
}

.logo-img {
  display: block;
  height: auto;
  max-width: 100%;
}

.login-logo-img {
  width: 42px;
  height: auto;
}

.btn-login .btn-logo {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6));
}

.login-header h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

/* Login Form Elements */
.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

.input-with-icon i:first-child {
  left: 12px;
}

.input-with-icon .toggle-password {
  right: 12px;
  left: auto;
  cursor: pointer;
}

.input-with-icon input {
  padding-left: 40px;
  padding-right: 40px;
  height: 44px;
  border-radius: 6px;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
}

.input-with-icon input:focus {
  background-color: #fff;
  border-color: var(--secondary-blue);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #718096;
}

.forgot-password {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 500;
}

/* Captcha */
.captcha-row {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  align-items: center;
}

.captcha-display {
  background: linear-gradient(
    45deg,
    #e2e8f0 25%,
    #cbd5e0 25%,
    #cbd5e0 50%,
    #e2e8f0 50%,
    #e2e8f0 75%,
    #cbd5e0 75%,
    #cbd5e0 100%
  );
  background-size: 18px 18px;
  padding: 8px 15px;
  border-radius: 5px;
  user-select: none;
  flex-shrink: 0;
  color: #4a5568;
}

.refresh-captcha {
  cursor: pointer;
  color: var(--secondary-blue);
  font-size: 16px;
}

/* Login Button */
.btn-login {
  width: 100%;
  background-color: #0f766e;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background-color: #0d655d;
}

/* Responsive Login */
@media (max-width: 900px) {
  .login-image-section {
    display: none;
  }

  .login-form-section {
    padding: 30px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .login-form-section {
    padding: 20px;
  }

  .login-logo {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .login-logo .logo-text {
    text-align: center;
  }

  .login-header h3 {
    font-size: 20px;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
