/* Panel Administracyjny - Natural Green Energy */
:root {
  --nge-primary: #167F2D;
  --nge-primary-hover: #126b25;
  --nge-accent: #43AD3C;
  --nge-dark: #082033;
  --nge-slate: #334155;
  --nge-muted: #64748b;
  --nge-border: #e2e8f0;
  --nge-bg: #f8fafc;
  --nge-card: #ffffff;
  --nge-radius: 10px;
  --nge-font: 'Montserrat', -apple-system, sans-serif;

  --cat-mobility: #167F2D;
  --cat-marine: #0284C7;
  --cat-roofs: #0F766E;
  --cat-distributors: #D97706;
}

body {
  font-family: var(--nge-font);
  background-color: var(--nge-bg);
  color: var(--nge-dark);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* NAVBAR */
.nge-admin-nav {
  background: white;
  border-bottom: 1px solid var(--nge-border);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nge-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nge-admin-badge {
  background: linear-gradient(135deg, var(--nge-primary), var(--nge-accent));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nge-admin-title h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--nge-dark);
}

.nge-admin-title p {
  font-size: 11px;
  color: var(--nge-primary);
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.nge-admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nge-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

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

.nge-btn-secondary {
  background: white;
  border-color: var(--nge-border);
  color: var(--nge-dark);
}

.nge-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.nge-btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.nge-btn-danger:hover {
  background: #fca5a5;
}

/* LAYOUT GŁÓWNY */
.nge-admin-container {
  max-width: 1300px;
  margin: 30px auto;
  padding: 0 20px;
}

/* EKRAN LOGOWANIA */
.nge-login-card {
  max-width: 420px;
  margin: 80px auto;
  background: white;
  padding: 36px 30px;
  border-radius: var(--nge-radius);
  border: 1px solid var(--nge-border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  text-align: center;
}

.nge-login-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.nge-login-card p {
  font-size: 13px;
  color: var(--nge-muted);
  margin-bottom: 24px;
}

/* ZAKŁADKI TABS */
.nge-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--nge-border);
  margin-bottom: 24px;
}

.nge-tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--nge-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nge-tab-btn:hover {
  color: var(--nge-primary);
}

.nge-tab-btn.active {
  color: var(--nge-primary);
  border-bottom-color: var(--nge-primary);
}

.nge-tab-pane {
  display: none;
}

.nge-tab-pane.active {
  display: block;
}

/* STATYSTYKI */
.nge-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.nge-engine-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.nge-engine-dot.active {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite;
}

.nge-engine-dot.forced-osm {
  background: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.nge-engine-dot.only-google {
  background: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nge-stat-card {
  background: white;
  border: 1px solid var(--nge-border);
  border-radius: var(--nge-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nge-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--nge-dark);
  line-height: 1;
}

.nge-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--nge-muted);
  margin-top: 4px;
}

/* KARTY ZAWARTOŚCI */
.nge-card {
  background: white;
  border: 1px solid var(--nge-border);
  border-radius: var(--nge-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

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

.nge-card-header h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

/* TABELA PARTNERÓW */
.nge-table-wrap {
  overflow-x: auto;
}

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

table.nge-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--nge-slate);
  border-bottom: 1.5px solid var(--nge-border);
}

table.nge-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

table.nge-table tr:hover {
  background-color: #fafbfc;
}

.nge-cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  color: white;
  margin: 1px;
}

.nge-cat-badge.mobility { background: var(--cat-mobility); }
.nge-cat-badge.marine { background: var(--cat-marine); }
.nge-cat-badge.roofs_facades { background: var(--cat-roofs); }
.nge-cat-badge.distributors { background: var(--cat-distributors); }

/* FORMULARZ */
.nge-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 768px) {
  .nge-form-grid {
    grid-template-columns: 1fr;
  }
}

.nge-form-group {
  margin-bottom: 16px;
}

.nge-form-group.full {
  grid-column: 1 / -1;
}

.nge-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--nge-dark);
}

.nge-form-input, .nge-form-select, .nge-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--nge-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.nge-form-input:focus, .nge-form-select:focus, .nge-form-textarea:focus {
  border-color: var(--nge-primary);
  outline: none;
}

.nge-checkbox-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--nge-border);
}

.nge-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* PODGLĄD MAPY W ADMINIE */
.admin-custom-marker, .nge-div-marker {
  background: transparent !important;
  border: none !important;
}

#admin-settings-map-preview, #admin-fullscreen-map {
  z-index: 10;
}

