/* RasterLayer.com - Copernicus-inspired styles */

:root {
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e1e1e1;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --accent-blue: #0a4393;
  --accent-hover: #2980b9;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

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

body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow: hidden;
}

/* Layout */
.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 360px;
  background-color: var(--bg-white);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.logo {
	display: flex;
	align-items: center;
	font-size: 22px;
	font-weight: 700;
	color: var(--accent-blue);
	margin-bottom: 8px;
}

.logo img {
	height: 28px;
	width: 28px;
	margin-right: 8px;
}

.logo-text {
	line-height: 1;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.sidebar-content {
  padding: 24px;
  flex: 1;
}

/* Cards */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-blue);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Navigation cards */
.nav-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.nav-card .card-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

/* Map container */
.map-container {
  flex: 1;
  position: relative;
  background-color: var(--bg-light);
}

#map {
  width: 100%;
  height: 100%;
}

/* Performance metrics */
.metrics {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-top: 16px;
}

.metrics h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.metric-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Info boxes */
.info-box {
  background: #e8f4f8;
  border-left: 4px solid var(--accent-blue);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.info-box p {
  font-size: 13px;
  color: var(--text-primary);
  margin: 0;
}

.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

/* Code blocks */
code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
}

pre {
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 16px 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }

  .map-container {
    height: 50vh;
  }
}

/* Leaflet overrides */
.leaflet-container {
  font-family: inherit;
}

.leaflet-control-attribution {
  font-size: 11px;
}

