@import url(https://fonts.googleapis.com/css?family=Roboto);

/* Global Styles */
html,
body {
  font-family: 'Roboto', sans-serif;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

body {
  color: #1f2937;
  background: #f9fafb;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  background: #f9fafb;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-area {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* Sidebar */
.sidebar {
  width: 250px;
  min-height: 100vh;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  padding: 16px 0;
}

.nav-item {
  display: block;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: #60a5fa;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: #60a5fa;
  font-weight: 500;
}

/* App Bar */
.app-bar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.app-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 100%;
}

.app-bar-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-user {
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.login-header {
  margin-bottom: 24px;
}

.login-header h1 {
  margin: 0 0 8px 0;
  font-size: 26px;
  color: #1f2937;
}

.login-header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.login-button {
  width: 100%;
  margin-top: 4px;
}

/* Common Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  font-family: 'Roboto', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-checkbox {
  width: auto;
  margin-right: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
}

.file-upload-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-name {
  color: #6b7280;
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.error-banner {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.form-container {
  max-width: 600px;
}

/* Tables */
.users-page {
  max-width: 1200px;
}

.table-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.deleted-row {
  background: #fef2f2;
  color: #9ca3af;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.role-badge {
  background: #eef2ff;
  color: #3730a3;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.inactive {
  background: #f3f4f6;
  color: #4b5563;
}

/* Dashboard */
.dashboard-page {
  max-width: 1200px;
}

.dashboard-empty {
  min-height: 280px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #6b7280;
}

.dashboard-empty h3 {
  margin: 0;
  color: #374151;
  font-size: 18px;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-chart-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-chart-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dashboard-menu-button.danger {
  color: #dc2626;
}

.dashboard-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.dashboard-chart-meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-chart-message {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.dashboard-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 260px;
  padding-top: 8px;
}

.dashboard-bar-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 190px auto auto;
  gap: 6px;
  align-items: end;
  text-align: center;
}

.dashboard-bar-track {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: flex-end;
  border-radius: 6px;
  background: #eef2f7;
  overflow: hidden;
}

.dashboard-bar-fill {
  width: 100%;
  min-height: 3px;
  border-radius: 6px 6px 0 0;
  background: #2563eb;
}

.dashboard-bar-item strong {
  color: #1f2937;
  font-size: 13px;
}

.dashboard-bar-item span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-card {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: grab;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-card.dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.dashboard-card.drag-over {
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  transform: translateY(-2px);
}

.dashboard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-card-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.dashboard-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.dashboard-drag-handle {
  color: #9ca3af;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  padding-top: 1px;
  writing-mode: vertical-rl;
}

.dashboard-count {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.1;
  margin: 12px 0 16px 0;
  overflow-wrap: anywhere;
}

.dashboard-count-number,
.dashboard-count-placeholder {
  color: #2563eb;
  font-size: 34px;
  font-weight: 700;
}

.dashboard-count-number.secondary {
  color: #7c8fb3;
  font-size: 26px;
}

.dashboard-count-text {
  color: #8b97aa;
  font-size: 14px;
  font-weight: 500;
}

.dashboard-card-menu {
  position: relative;
  flex-shrink: 0;
}

.dashboard-menu-button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 0 0 4px 0;
}

.dashboard-menu-button:hover {
  background: #f1f5f9;
  color: #475569;
}

.dashboard-menu-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 120px;
  padding: 6px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.dashboard-menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.dashboard-menu-item:hover {
  background: #f8fafc;
}

.dashboard-menu-item.danger {
  color: #dc2626;
}

.dashboard-menu-item.danger:hover {
  background: #fef2f2;
}

.dashboard-filters p {
  margin: 0 0 6px 0;
  color: #6b7280;
  font-size: 13px;
}

.dashboard-dialog {
  max-width: 920px;
}

.dashboard-chart-dialog {
  max-width: 640px;
}

.dashboard-filter-group {
  min-width: 0;
}

/* Community Reports */
.community-report-page {
  max-width: 1280px;
}

.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.report-stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.report-stat-label {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.report-stat-card strong {
  color: #1f2937;
  font-size: 30px;
  line-height: 1;
}

.report-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.report-insight-card {
  padding: 18px;
}

.report-insight-card h3 {
  margin: 0 0 14px 0;
  color: #1f2937;
  font-size: 16px;
}

.report-insight-item {
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.report-insight-item:first-of-type {
  border-top: none;
}

.report-insight-item strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

.report-insight-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.report-insight-content > div:first-child {
  min-width: 0;
}

.report-insight-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.report-insight-item p,
.muted-text {
  margin: 4px 0 0 0;
  color: #6b7280;
  font-size: 13px;
}

.report-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.report-selection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
}

.report-selection-banner strong {
  margin-right: 6px;
}

.report-status-filter {
  max-width: 240px;
}

.report-table td {
  vertical-align: top;
}

.report-copy {
  max-width: 360px;
  color: #1f2937;
  line-height: 1.4;
}

.report-hint {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.report-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.report-status.awaiting_response {
  background: #fef3c7;
  color: #92400e;
}

.report-status.updated {
  background: #dbeafe;
  color: #1e40af;
}

.report-status.solved {
  background: #dcfce7;
  color: #166534;
}

.report-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.report-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.report-status.community_verified {
  background: #ccfbf1;
  color: #0f766e;
}

.report-status.needs_more_info {
  background: #dbeafe;
  color: #1e40af;
}

.report-status.approved {
  background: #dcfce7;
  color: #166534;
}

.report-status.duplicate {
  background: #ffedd5;
  color: #9a3412;
}

.leaderboard-page {
  max-width: 1280px;
}

.leaderboard-detail-page,
.poi-contribution-detail-page {
  max-width: 1280px;
}

.leaderboard-table td {
  vertical-align: top;
}

/* POI Types List Page */
.poi-types-page {
  max-width: 1200px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h2 {
  margin: 0;
  font-size: 28px;
  color: #1f2937;
}

.search-bar {
  margin-bottom: 24px;
}

.search-input {
  max-width: 400px;
}

.poi-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.poi-type-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.poi-type-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.poi-type-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.poi-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

.poi-type-icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
}

.poi-type-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.poi-type-icon-placeholder.hidden {
  display: none;
}

.poi-type-info {
  flex: 1;
}

.poi-type-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.poi-type-category {
  font-size: 12px;
  color: #6b7280;
  text-transform: capitalize;
}

.poi-type-description {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 16px 0;
}

.poi-type-actions {
  display: flex;
  gap: 8px;
}

/* Current Icon Preview (Edit Page) */
.current-icon {
  margin-bottom: 12px;
}

.icon-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.icon-label {
  margin: 8px 0;
  font-size: 12px;
  color: #6b7280;
}

/* Dialogs */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.dialog-header h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #1f2937;
}

.dialog-body p {
  margin: 0 0 24px 0;
  color: #6b7280;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}

.dialog-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.login-remember {
  margin-bottom: 16px;
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  font: inherit;
}

.remember-toggle-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  background: white;
  color: white;
  font-size: 12px;
  line-height: 1;
}

.remember-toggle.active .remember-toggle-box {
  border-color: #2563eb;
  background: #2563eb;
}

.contribution-review-dialog {
  max-width: 1080px;
}

.leaderboard-detail-dialog {
  max-width: 1080px;
}

.review-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.review-detail-main,
.review-detail-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.detail-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 18px;
}

.detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-section-header h3 {
  margin: 0;
}

.detail-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
}

.review-main h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #111827;
}

.moderation-context-section,
.leaderboard-event-section {
  margin-top: 20px;
}

.moderation-context-section h4,
.leaderboard-event-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.compact-table th,
.compact-table td {
  padding: 8px 10px;
  font-size: 12px;
  vertical-align: top;
}

.review-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.review-label {
  color: #6b7280;
  font-size: 13px;
}

.review-value {
  color: #1f2937;
  overflow-wrap: anywhere;
}

.review-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contribution-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contribution-images.wide {
  margin-top: 12px;
}

.contribution-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

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

  .review-detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Loading & Error States */
.loading,
.error-message,
.empty-state {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.error-message {
  color: #dc2626;
}

.loading-container {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

/* Placeholder Page */
.placeholder-page {
  text-align: center;
  padding: 60px 20px;
}

.placeholder-page h2 {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 16px;
}

.placeholder-page p {
  color: #6b7280;
  font-size: 16px;
}

/* Success button for restore */
.btn-success {
  background: #16a34a;
  color: white;
}

.btn-success:hover {
  background: #15803d;
}

/* Filter toggle */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.filter-toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

/* Deleted POI type cards */
.poi-type-card.deleted {
  background: #fef2f2;
  border-color: #fecaca;
  opacity: 0.85;
}

.poi-type-card.deleted .poi-type-name {
  text-decoration: line-through;
  color: #9ca3af;
}

.poi-type-card.deleted .poi-type-description {
  color: #9ca3af;
}

/* Hard delete warning dialog */
.dialog-content.delete-warning {
  border: 2px solid #dc2626;
}

.dialog-content.delete-warning .dialog-header h3 {
  color: #dc2626;
}

.warning-text {
  color: #dc2626 !important;
  font-weight: 500;
}

.success-message {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
}

.success-message p,
.error-banner p {
  margin: 0;
}

.import-dialog {
  max-width: 520px;
}

.import-drop-zone {
  border: 2px dashed #bfdbfe;
  border-radius: 8px;
  background: #f8fafc;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.import-drop-zone:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.import-drop-title {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.import-drop-subtitle {
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 13px;
}

.selected-file {
  display: block;
  margin-top: 12px;
  color: #1f2937;
  font-weight: 500;
}

.import-error-list {
  margin: 10px 0 0 18px;
  padding: 0;
  color: #991b1b;
  font-size: 13px;
}

.import-error-list li {
  margin-bottom: 4px;
}

/* Select Dropdowns - Custom Styled */
.form-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:hover {
  border-color: #9ca3af;
}

.form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select option {
  padding: 8px;
}

.searchable-dropdown {
  position: relative;
  width: 100%;
  min-width: 180px;
}

.searchable-dropdown-control {
  position: relative;
}

.searchable-dropdown-input {
  padding-right: 34px;
}

.searchable-dropdown-control::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  transform: translateY(-50%);
  pointer-events: none;
}

.searchable-dropdown-clear {
  position: absolute;
  top: 50%;
  right: 30px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 13px;
  line-height: 20px;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.searchable-dropdown-clear:hover {
  background: #d1d5db;
  color: #111827;
}

.searchable-dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
}

.searchable-dropdown-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  background: white;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
}

.searchable-dropdown-option:last-child {
  border-bottom: none;
}

.searchable-dropdown-option:hover,
.searchable-dropdown-option.selected {
  background: #eff6ff;
}

.searchable-dropdown-label {
  font-size: 14px;
  font-weight: 500;
}

.searchable-dropdown-helper {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.3;
}

.searchable-dropdown-empty {
  padding: 12px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

/* Form Row for horizontal grouping */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Detail Page Content */
.detail-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-content .card {
  margin-bottom: 0;
}

.detail-content .card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #6b7280;
  min-width: 140px;
  font-size: 14px;
}

.detail-value {
  color: #1f2937;
  flex: 1;
  font-size: 14px;
}

.detail-value.link {
  color: #2563eb;
  text-decoration: underline;
}

.detail-value.link:hover {
  color: #1d4ed8;
}

/* POI Meta Info */
.poi-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.poi-meta span:not(:last-child)::after {
  content: '';
}

/* Features */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.feature-remove {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
  transition: color 0.2s ease;
}

.feature-remove:hover {
  color: #dc2626;
}

/* Inactive state for POI cards */
.poi-type-card.inactive {
  opacity: 0.7;
  border-color: #d1d5db;
}

.poi-type-card.inactive .poi-type-name {
  color: #9ca3af;
}

/* Info button */
.btn-info {
  background: #0891b2;
  color: white;
}

.btn-info:hover {
  background: #0e7490;
}

/* Form hints */
.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
}

/* JSON display */
.json-display {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Info text */
.info-text {
  color: #2563eb;
  font-size: 14px;
}

/* Header actions */
.header-actions {
  display: flex;
  gap: 12px;
}

/* Tiny button size */
.btn-tiny {
  padding: 4px 8px;
  font-size: 11px;
}

/* Search bar improvements */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-bar .form-select {
  max-width: 200px;
  min-width: 150px;
}

.search-bar .searchable-dropdown {
  max-width: 220px;
  min-width: 180px;
}

.search-bar .btn-small {
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 18px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.pagination-controls.compact {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pagination-summary,
.pagination-page {
  color: #6b7280;
  font-size: 13px;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.list-message {
  margin-bottom: 20px;
}

/* POI Type Icon Text Placeholder */
.poi-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  text-transform: uppercase;
}

/* Map Picker Dialog Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.map-picker-dialog {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.map-wrapper {
  position: relative;
  flex: 1;
  min-height: 400px;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #f9fafb;
}

.map-center-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 1000;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.map-center-marker img {
  width: 25px;
  height: 41px;
}

.map-instructions {
  padding: 12px 24px;
  background: #eff6ff;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  text-align: center;
  color: #1e40af;
  font-size: 13px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
}

/* Location section header */
.section-header {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 24px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.location-row-with-button {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.location-row-with-button .form-row {
  flex: 1;
  margin-bottom: 0;
}

.btn-map-picker {
  height: 42px;
  white-space: nowrap;
  padding: 10px 16px;
}

/* Map Preview Styles */
.location-with-map {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.location-details {
  flex: 1;
  min-width: 0;
}

.map-preview-container {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-preview {
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.map-enlarge-btn {
  width: 100%;
}

/* Multi-select Checkbox List */
.multi-select-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
}

.multi-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.multi-select-item:last-child {
  border-bottom: none;
}

.multi-select-item:hover {
  background: #f9fafb;
}

.multi-select-item.selected {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 500;
}

.multi-select-item .form-checkbox {
  margin: 0;
  flex-shrink: 0;
}

.empty-hint {
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 16px;
  margin: 0;
}

/* Wider form container for home menu pages */
.add-poi-feature-page .form-container,
.edit-poi-feature-page .form-container {
  max-width: 800px;
}

@media (max-width: 768px) {
  .dashboard-chart-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-bars {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: 52px;
    grid-template-columns: none;
    padding-bottom: 8px;
  }

  .pagination-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    justify-content: space-between;
  }

  .location-with-map {
    flex-direction: column;
  }

  .map-preview-container {
    width: 100%;
  }

  .map-preview {
    width: 100%;
    height: 200px;
  }
}

.poi-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 12px 0 20px;
}

.poi-image-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poi-image-preview {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #f3f4f6;
}
