:root {
  --bg-color: #F8FAFC; /* Background */
  --surface-color: #F8FAFC; /* Surface */
  --surface-hover: #EDF2F7; /* Light gray hover */
  --panel-bg: rgba(248, 250, 252, 0.92);
  --border-color: #D5D9E0; /* Border */
  --text-primary: #1E293B; /* Text primary */
  --text-secondary: gray; /* Text secondary */
  
  /* Accent Colors */
  --primary: #3B82F6; /* Primary blue */
  --primary-hover: #2563EB; /* Primary hover */
  --success: #10b981; /* Emerald 500 */
  --warning: #F59E0B; /* Amber 500 */
  --danger: #EF4444; /* Red 500 */
  --accent-gold: #F59E0B; /* Amber 500 */
  
  /* Mineral Colors */
  --color-copper: #ea580c; /* Orange 600 */
  --color-gold: #ca8a04; /* Yellow 600 */
  --color-chromite: #059669; /* Emerald 600 */
  --color-emerald: #047857; /* Emerald 700 */
  --color-coal: #4b5563; /* Grey 600 */
  --color-marble: #d1d5db; /* Grey 300 */
  --color-default: #7c3aed; /* Violet 600 */

  --font-sans: Verdana, sans-serif;
  --font-headline: Georgia, serif;
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.25s ease;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

/* Unified Views Wrapper */
#content-area {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Map Explorer View Layout */
.explorer-view {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

#map {
  flex: 1;
  height: 100%;
  z-index: 1;
  background: #e5e7eb;
}

/* Main View Panel (for tables, listings, about pages) */
#view-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 10;
  overflow-y: auto;
  padding: 24px;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

#view-content.active {
  display: block;
  opacity: 1;
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* Section Containers & Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-headline);
  font-size: 60px;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-family: var(--font-headline);
  font-size: 60px;
  font-weight: 700;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Dynamic Cards Grid */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Custom interactive elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  text-decoration: none;
}

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

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

.btn-secondary {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

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

/* Custom badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-exploration {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-surveyed {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-suspended {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Custom Loading Spinner */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 12px;
}

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

/* Table styling */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

tr:hover td {
  background: var(--surface-hover);
}