/* style.css — DroneCheck base styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Maven Pro', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f6f2;
  color: #222;
}

a {
  color: #6C7B48;
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
}

/* Header */

.dc-header {
  background: linear-gradient(135deg, #8A9A5B, #6C7B48);
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.dc-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* ----------------------------------------
   DroneCheck Logo
---------------------------------------- */
.dc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 600;
    color: #111;
}

.dc-logo img {
    width: 32px;
    height: 32px;
    opacity: 0.85;          /* subtiel */
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.15));
}

.dc-logo span {
    line-height: 1;
}

.dc-logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  background: rgba(0,0,0,0.18);
  border-radius: 0.6rem;
}

.dc-header-text h1 {
  margin: 0;
  font-size: 1.5rem;
}
.dc-header-text p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.dc-nav {
  margin-left: auto;
}

/* Buttons */

.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, opacity 0.1s ease;
}

.btn-primary {
  background: #f4f6f2;
  color: #334022;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* Layout */

.dc-main {
  max-width: 1100px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
  display: flex;
  gap: 1.5rem;
}

.dc-main-centered {
  max-width: 800px;
}

.dc-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.dc-map-wrapper {
  flex: 1;
  position: relative;
  min-height: 420px;
}

/* Panels */

.dc-panel {
  background: #fff;
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.dc-panel.wide {
  width: 100%;
}

.dc-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.dc-help-text {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

.dc-muted {
  color: #777;
}

.dc-muted.small {
  font-size: 0.8rem;
}

/* Map */

#map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.map-pick {
  width: 100%;
  height: 280px;
  border-radius: 0.8rem;
  overflow: hidden;
  margin-top: 0.3rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Legend */

.dc-legend {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.legend-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.3rem;
}

.legend-active {
  background: #e04444;
}
.legend-planned {
  background: #4a8f4a;
}
.legend-past {
  background: #777;
}

/* Filters */

.dc-filters {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  background: #f0f3ea;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.filter-btn.active {
  background: #8A9A5B;
  color: #fff;
}

/* Search row */

.dc-search-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dc-search-row input[type="text"] {
  flex: 1;
}

/* Form */

.dc-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dc-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dc-form-group {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
}

.dc-form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.dc-form-group input,
.dc-form-group select,
.dc-form-group textarea {
  border-radius: 0.5rem;
  border: 1px solid #d0d6c8;
  padding: 0.4rem 0.55rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.dc-form-group textarea {
  resize: vertical;
}

/* Error */

.dc-error {
  background: #fff3f3;
  border: 1px solid #e8b3b3;
  border-radius: 0.7rem;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.dc-error ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.dc-form-actions {
  margin-top: 0.5rem;
}

/* Summary, QR */

.dc-summary p {
  margin: 0.15rem 0;
}

.dc-qr-block {
  margin-top: 1rem;
  text-align: center;
}

.dc-qr-block img {
  display: block;
  margin: 0.3rem auto;
}

/* List in sidebar */

.dc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dc-list li {
  border-bottom: 1px solid #ecefe5;
  padding: 0.45rem 0;
}

.dc-list li:last-child {
  border-bottom: none;
}

.dc-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.dc-dist {
  color: #555;
}

.dc-list-body {
  font-size: 0.85rem;
}

/* Tags / status */

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background: #e04444;
  color: #fff;
}

.status-planned {
  background: #4a8f4a;
  color: #fff;
}

.status-past {
  background: #777;
  color: #fff;
}


/* Responsive */

@media (max-width: 860px) {
  .dc-main {
    flex-direction: column;
  }
  .dc-sidebar {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .dc-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dc-nav {
    margin-left: 0;
  }
}
.dc-search-input-wrapper {
  position: relative;
  width: 100%;
}

.dc-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}

.dc-suggestions div {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.dc-suggestions div:last-child {
  border-bottom: none;
}

.dc-suggestions div:hover {
  background: #f5f5f5;
}
/* Footer */
.dc-footer {
  text-align: center;
  margin: 3rem 0 2rem;
  color: #333;
  font-size: 0.9rem;
}
.dc-footer-links a {
  color: #6C7B48;
  margin: 0 0.25rem;
  text-decoration: none;
}
.dc-footer-links a:hover { text-decoration: underline; }

/* Popup Overlay */
.dc-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.dc-popup-overlay.visible {
  display: flex;
}

.dc-popup-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: popup-fade 0.2s ease-out;
}

@keyframes popup-fade {
  from { opacity: 0; transform: translateY(10px);}
  to   { opacity: 1; transform: translateY(0);}
}

.dc-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: #444;
}

.dc-popup-card h2 {
  margin-top: 0;
  color: #6C7B48;
}
/* Location Button */

.dc-map-locate:hover {
  background: #f2f2f2;
}
/* -------------------------------------
   FLIGHT DETAIL PAGE LAYOUT
------------------------------------- */

.page-flight h1,
.page-flight h2,
.page-flight h3 {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.4em;
}

.dc-flight-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.dc-flight-sub {
  margin-top: -2px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #666;
}

.dc-section-title {
  margin-top: 30px;
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Summary items (time, drone, alt…) */
.dc-summary-list {
  font-size: 0.96rem;
  line-height: 1.58;
  color: #333;
  margin-bottom: 20px;
}

.dc-summary-list div + div {
  margin-top: 4px;
}


.dc-muted {
  color: #777;
}

/* Tags (active / planned / past) */
.tag {
  padding: 2px 7px;
  font-size: 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  margin-left: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-active {
  background: #8A9A5B;
  color: #fff;
}

.status-planned,
.status-upcoming {
  background: #6C7B48;
  color: #fff;
}

.status-past {
  background: #ccc;
  color: #444;
}

.status-unknown {
  background: #999;
  color: #fff;
}

/* Map box */
#flight-map {
  width: 100%;
  height: 300px;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* responsive */
@media (max-width: 600px) {
  .dc-flight-title {
    font-size: 1.35rem;
  }
  .dc-section-title {
    font-size: 1.15rem;
  }
  .dc-description {
    font-size: 0.92rem;
  }
}

/* description more compact */
.dc-description {
  background: #f7f7f5;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #333;
  border: 1px solid #e0e0dd;
  margin-top: 6px;
}

/* QR block small */
.dc-qr-block {
  margin-top: 16px;
  text-align: center;
}

.dc-qr-block img {
  margin: 6px 0;
  width: 150px;
  height: 150px;
  border-radius: 4px;
}

.dc-muted {
  color: #777;
  font-size: 0.8rem;
}


/* responsive tweaks */
@media (max-width: 600px) {
  .dc-flight-title {
    font-size: 1.25rem;
  }
  .dc-section-title {
    font-size: 1rem;
  }
  .dc-description {
    font-size: 0.85rem;
  }
}
.dc-map-locate.loading {
  opacity: 0.6;
  pointer-events: none;
}

.dc-map-locate.loading::after {
  content: "…";
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}
.dc-map-locate {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 900;
  background: #fff;
  border: 2px solid #6C7B48;
  color: #6C7B48;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.dc-map-locate.loading {
  opacity: 0.5;
  pointer-events: none;
}
.dc-testnotice {
  margin-top: 15px;
  padding: 15px 18px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  border-left: 4px solid #6C7B48;
}

.dc-testnotice strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #111;
}
.dc-info {
    background: #f8f8f6;
    border-left: 4px solid #6C7B48;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}
/* More breathing room under the map selection */
.dc-map-pick {
    margin-bottom: 28px;
}

.dc-map-pick #map {
    margin-bottom: 18px; /* space between map and lat/lon/radius row */
}
/* Legend under the map */
.dc-legend {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    font-size: 14px;
    align-items: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto; /* center under the map */
}

.dc-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.legend-active { background: #e53935; }
.legend-planned { background: #4a8f4a; }
.legend-past { background: #9e9e9e; }
/* Filter buttons colored by category */
.dc-filters .filter-btn {
    padding: 6px 14px;
    border-radius: 18px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity .15s ease;
}

/* Neutral */
.filter-btn[data-filter="all"] {
    background: #eaeaea;
    color: #222;
}

/* Active flights = red */
.filter-btn[data-filter="active"] {
    background: #e53935;
    color: #fff;
}

/* Planned = yellow */
.filter-btn[data-filter="planned"] {
    background: #4a8f4a;
    color: white;
}

/* Past = grey */
.filter-btn[data-filter="past"] {
    background: #9e9e9e;
    color: white;
}

/* Active state (selected filter) */
.dc-filters .filter-btn.active {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15) inset;
    transform: translateY(1px);
}
/* Stats block under filters */
.dc-flight-stats {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f7f7f7;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.dc-flight-stats .stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.dc-flight-stats .stat-item:last-child {
    margin-bottom: 0;
}

.stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* ------------------------------------
   STAT DOT COLORS
------------------------------------ */

/* ACTIVE flights = rood */
.stat-dot.active {
    background: #E61919;
}

/* PLANNED flights = groen */
.stat-dot.planned {
    background: #6C7B48;
}

/* NEW last 24h = neutraal geel-oranje */
.stat-dot.new {
    background: #D9B061;
}


/* Ensure search input + button sit on one line */
.dc-search-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Make the input wider so button fits */
.dc-search-input-wrapper {
    flex: 1;
    min-width: 0; /* prevents overflow */
}

/* Make the button visible & sized correctly */
#search-btn,
#addr-search-btn {
    white-space: nowrap;
    padding: 10px 16px;
    flex-shrink: 0;
    height: 40px;
}
/* Fix invisible search buttons */
#search-btn,
#addr-search-btn {
    background: #6C7B48 !important;  /* zelfde accentkleur als site */
    color: white !important;
    border: none !important;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

#search-btn:hover,
#addr-search-btn:hover {
    opacity: 0.85;
}
/* Make site title next to logo white */
.dc-logo span {
    color: #fff !important;
}
.page-flight .dc-header h1,
.page-flight .dc-header p {
    color: #fff !important;
}
.dc-qr-block {
    text-align: center;
    margin-top: 20px;
}

.dc-qr-block img {
    display: block;
    margin: 10px auto;
}
.copy-link-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background: #6C7B48;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.copy-link-btn:hover {
    opacity: 0.8;
}

.copy-feedback {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6C7B48;
    text-align: center;
}
/* --- Improved autocomplete suggestions --- */
.dc-suggestions {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    overflow: hidden;
    display: none;
    z-index: 999;
}

.dc-suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.92rem;
    line-height: 1.35;
}

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

.dc-suggestion-item:hover,
.dc-suggestion-item.active {
    background: #eef2ea;
}

.dc-suggestion-highlight {
    font-weight: 600;
    color: #6C7B48;
}

/* Ensure form action rows align properly */
.dc-form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 12px;
}


.dc-nav .btn-secondary:hover {
    background: #dcdcdc !important;
}



.btn-secondary:hover {
    background: #dcdcdc;
}
/* Delete button styling */
form[action][method="post"] .btn-secondary[style*="background:#b33"] {
    color: #fff !important;
    border: none !important;
}

form[action][method="post"] .btn-secondary[style*="background:#b33"]:hover {
    opacity: 0.85;
}
/* Make header buttons grey again */
.dc-nav .btn-primary {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    box-shadow: none !important;
}

.dc-nav .btn-primary:hover {
    background: rgba(255,255,255,0.25) !important;
    opacity: 1 !important;
}
.dc-panel.wide {
    overflow: visible !important;
}
.safe-tools-mini {
    display:flex;
    gap:10px;
    margin:12px 0 18px;
    font-size:14px;
}

.safe-tools-mini button,
.safe-tools-mini a {
    background:#f2f3ef;
    border:1px solid #d6d8d2;
    padding:6px 12px;
    border-radius:6px;
    color:#333;
    cursor:pointer;
    text-decoration:none;
    font-size:14px;
}

.safe-tools-mini button:hover,
.safe-tools-mini a:hover {
    background:#e7e8e2;
}
/* Fix Leaflet disappearing / white map */
.dc-panel,
.dc-panel.wide,
.dc-main,
.page-add {
    overflow: visible !important;
}
/* Toast popup (after delete) */
/* Centered toast */
#dc-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #6C7B48; /* your Drone-Check green */
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#dc-toast.dc-toast-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.page-edit .dc-success,
.page-edit .dc-error {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 10px;
    background: #f3f8f3;
    border-left: 6px solid #6C7B48;
}
.page-edit .dc-error {
    background: #fff5f5;
    border-left-color: #c33;
}

/* Popup overlay full screen */
.dc-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; /* breathing space on mobile */
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.dc-popup-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Popup card */
.dc-popup-card {
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;        /* <<< CRUCIAL: limit height */
  overflow: hidden;        /* round corners + no bleed */
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
  animation: dcPop .25s ease;
}

/* Scrollable content inside */
#dc-popup-content {
  padding: 24px;
  overflow-y: auto;        /* <<< content scrolls */
}

/* Close button stays fixed */
.dc-popup-close {
  align-self: flex-end;
  margin: 8px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.dc-popup-close:hover {
  opacity: 1;
}

/* Small animation */
@keyframes dcPop {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .dc-popup-card {
    max-height: 90vh;
    border-radius: 10px;
  }
  #dc-popup-content {
    padding: 18px;
  }
}
.dc-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: flex-start;        /* niet meer perfect centreren */
  justify-content: center;
  padding: 40px 16px;             /* ruimte boven/onder */
  z-index: 9999;
  overflow-y: auto;               /* overlay zelf mag scrollen */
}

.dc-popup-overlay.visible {
  display: flex;
}

.dc-popup-card {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 20px 22px;
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 80px); /* blijft binnen de viewport */
  overflow-y: auto;               /* interne scroll bij lange tekst */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: popup-fade 0.2s ease-out;
}
/* New flights (last 24h) — subtle blue */
.stat-dot.new {
    background: #4A78C2;      /* soft blue */
    border-color: #3F6BAD;
}

.stat-item .new {
    color: #4A78C2;           /* optional if you want the label accent */
}
.dc-map-reset {
    position: absolute;
    bottom: 85px;          /* net boven locate button */
    right: 20px;
    background: #fff;
    border: 1px solid #d0d0d0;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: 0.2s;
}
.dc-map-reset:hover {
    background: #f3f3f3;
}
/* Map buttons container */
.dc-map-buttons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 500;
}

/* Individual buttons */
.dc-map-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
}

.dc-map-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.dc-map-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}


.dc-map-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.dc-map-btn:hover {
    background: #f2f2f2;
}
.dc-map-pick {
    position: relative;
}
.dc-map-buttons {
    position: absolute;
    top: 50px;
    right: 10px;      /* <-- NIET links, maar rechts */
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dc-map-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.dc-map-btn:hover {
    background: #f0f0f0;
}
/* ----------------------------------------
   Minimal Sidebar Buttons
---------------------------------------- */

.dc-mini-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dc-mini-list li {
    margin: 6px 0;
}

.dc-mini-list a {
    display: block;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #222;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.dc-mini-list a:hover {
    border-color: #6C7B48;
    background: #f4f5f3;
    opacity: 0.9;
}
/* Extra space under sidebar info buttons */
.dc-mini-list {
    margin-bottom: 18px;   /* ruimte vóór zoekblok */
}

/* Sidebar H2 — slightly larger, centered, green */
.dc-sidebar h2 {
    font-size: 1.25rem !important;   /* iets groter */
    color: #6C7B48 !important;        /* sitegroen */
    font-weight: 600;
    text-align: center;               /* centreren */
    margin: 0.4rem 0 0.8rem;
    letter-spacing: 0.5px;
    }

   /* ----------------------------------------
   Compact Search Bar + Icon
---------------------------------------- */

.dc-search-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

/* wrapper so icon can sit inside input */
.dc-search-input-wrapper {
    position: relative;
    flex: 1;
}

.dc-search-input-wrapper input[type="text"] {
    height: 38px;
    width: 100%;
    padding: 0 12px 0 36px;     /* ruimte links voor icoon */
    border-radius: 8px;
    border: 1px solid #cfd6c7;
    font-size: 0.92rem;
    background: #fff;

    /* Search icon inside the field */
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C7B48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 10px center;

    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.dc-search-input-wrapper input[type="text"]:focus {
    border-color: #8A9A5B;
    box-shadow: 0 0 0 2px rgba(138,154,91,0.2);
    outline: none;
}

/* Search button */
#search-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    background: #6C7B48 !important;
    color: #fff !important;
    border: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

#search-btn:hover {
    background: #5A673D !important;
    transform: translateY(-1px);
}

/* Center only the title/subtitle block inside the header */
.dc-header-text {
    flex: 1;                 /* neemt de vrije ruimte tussen logo & button */
    text-align: center;      /* centreren van tekst */
    display: flex;
    flex-direction: column;
    align-items: center;     /* sub-centering, consistent */
}
/* ------------------------------------
   FILTER BUTTON COLORS
------------------------------------ */

/* ACTIVE flights = rood */
.filter-btn[data-filter="active"] {
    background: #E61919;
    color: #fff;
}

/* PLANNED flights = DroneCheck groen */
.filter-btn[data-filter="planned"] {
    background: #6C7B48;
    color: #fff;
}


/* PAST flights = zacht grijs */
.filter-btn[data-filter="past"] {
    background: #cccccc;
    color: #222;
}

/* Currently selected filter gets a subtle outline */
.filter-btn.active {
    outline: 2px solid #6C7B48;
}
.dc-print-wrap {
    text-align: center;
    margin-top: 16px;
}

.dc-print-btn {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 20px;
}

.dc-about-img {
    float: right;
  width: 280px;          /* smaller so the text wraps nicely */
  border-radius: 14px;
  margin: 0 0 1rem 1rem; /* spacing: top right bottom left */
  object-fit: cover;
    }
    .btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* ============================================================
   edit map!!
============================================================ */
#edit-map {
    width: 100%;
    height: 300px;       /* of 340px, wat jij wil */
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ============================================================
   CLEAN PRINT MODE — DroneCheck Green Edition
============================================================ */

#print-area {
    display: none !important; /* hidden onscreen */
}

@media print {

    /* Hide ALL content by default */
    body * {
        visibility: hidden !important;
    }

    /* Only show the print-area */
    #print-area, #print-area * {
        visibility: visible !important;
        display: block !important;
    }

    /* Layout of print page */
    #print-area {
        position: fixed;
        inset: 0;
        background: #ffffff !important;
        text-align: center;
        padding: 25mm 0;
        width: 100%;
        z-index: 999999;
        font-family: 'Maven Pro', sans-serif;
        color: #334022; /* soft dark-green */
    }

    @page { margin: 0; }

    /* Logo */
    .print-logo {
        width: 80px !important;
        margin: 0 auto 10mm;
        opacity: 0.95;
        filter: drop-shadow(0 0 3px rgba(0,0,0,0.15));
    }

    /* Titel */
    .print-title {
        font-size: 30px !important;
        font-weight: 700;
        color: #6C7B48 !important;    /* jouw groen */
        margin-bottom: 4mm;
        letter-spacing: 0.5px;
    }

    /* Subtitel */
    .print-subtitle {
        font-size: 18px !important;
        color: #556044 !important; /* zachter groen-grijs */
        margin-bottom: 12mm;
        font-weight: 500;
    }

    /* QR image */
    .print-qr {
        width: 350px !important;
        height: 350px !important;
        margin: 0 auto;
        border-radius: 8px;
        print-color-adjust: exact !important;
        box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    }

    /* URL onderaan */
    .print-url {
        margin-top: 12mm;
        font-size: 17px !important;
        font-weight: 600;
        color: #6C7B48 !important;  /* accentkleur */
        letter-spacing: 0.4px;
    }
}

/* Desktop layout */
.flynow-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Button styling */
.btn-flynow {
    background: #6C7B48;
    color: #fff;
    border: none;
    padding: 0.55rem 1.2rem;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap; /* voorkomt dat “Fly Now” op 2 lijnen valt */
}

.btn-flynow:hover {
    background: #5b693d;
}

.flynow-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
    opacity: 0.85;
}
.btn-flynow.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.btn-flynow.loading::after {
    content: "…";
    margin-left: 6px;
    animation: dc-dots 1s steps(4, end) infinite;
}

@keyframes dc-dots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
    100% { content: ""; }
}


/* Mobile: KEEP SAME LAYOUT — only reduce spacing */
@media (max-width: 640px) {
    .flynow-wrapper {
        gap: 0.5rem;            /* iets compacter */
    }
    .btn-flynow {
        padding: 0.5rem 1rem;    /* subtiel kleiner */
        font-size: 0.9rem;
    }
    .flynow-note {
        font-size: 0.8rem;
    }
}

.dc-map-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #666;
    opacity: 0.7;
    text-align: center; 
}
/* Fly Now – loading state */
.btn-flynow.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

/* Verberg originele tekst tijdens loading */
.btn-flynow.loading::before {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Minimalistische GPS-pulse */
.btn-flynow.loading::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    border-top-color: transparent;
    animation: dc-spin 0.8s linear infinite;
}

/* Spin animatie */
@keyframes dc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   UNIVERSAL LOADING SPINNER (Drone-Check)
=========================================================== */

.dc-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.dc-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dc-spin 0.6s linear infinite;
}

/* Smooth rotation */
@keyframes dc-spin {
    to { transform: rotate(360deg); }
}
/* Hide button text while loading */
.dc-loading > * {
    opacity: 0;             /* fade out */
}

.dc-loading {
    color: transparent !important; /* fallback voor plain text */
}
button,
button > * {
    transition: opacity 0.15s ease;
}

/* ============================================================
   Primary Button — DroneCheck Standard
   (gebruik je voor Submit Flight & Save Changes)
=========================================================== */
.btn-primary-green {
    background: #6C7B48;
    color: #fff;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;   /* zorgt dat spinner niet doet verspringen */
    position: relative;
}

.btn-primary-green:hover {
    background: #5b693d;
}

.btn-primary-green:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner kleur op primary */
.btn-primary-green.dc-loading::after {
    border-top-color: #fff;
}
.dc-footer span[title] {
    opacity: 0.7;
    cursor: help;
}
.dc-version {
    font-size: 0.7rem;      /* kleiner */
    opacity: 0.6;           /* subtieler */
    cursor: help;           /* voor tooltip */
}

.dc-link {
    color: #6C7B48;
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word;
}

.dc-link:hover {
    color: #556336;
}
/* --- Mobile header centering fix --- */
@media (max-width: 640px) {

  .dc-header-inner {
    flex-direction: column;
    align-items: center;        /* <<< echte centrering */
    text-align: center;
  }

  .dc-header-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;        /* <<< centreert de h1 + p in de container */
  }

  .dc-header-text h1,
  .dc-header-text p {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .dc-logo {
    justify-content: center;
    margin-bottom: 0.6rem;
  }

  .dc-nav {
    margin-top: 0.8rem;
  }
}
.nc-notice {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.nc-notice-box {
  background: #fff;
  padding: 24px 28px;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  font-family: "Maven Pro", sans-serif;
}

.nc-notice-box h2 {
  margin-top: 0;
  color: #6C7B48;
  font-weight: 600;
}

.nc-notice-btn {
  background: #8A9A5B;
  border: none;
  padding: 10px 18px;
  margin-top: 15px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.nc-notice-btn:hover {
  background: #6C7B48;
}

.dc-disclaimer {
    margin-top: 1.2rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fffef7;
    border: 1px solid rgba(0,0,0,0.04);
    border-left: 3px solid #8A9A5B;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    font-size: 0.88rem;        /* subtiel kleiner */
    line-height: 1.45;         /* iets compacter */
}

.dc-disclaimer-title {
    display: flex;
    align-items: center;
    margin: 0 0 0.35rem;
    font-size: 0.9rem;         /* kleiner */
    font-weight: 600;
    color: #333;
}

.dc-disclaimer-icon {
    margin-right: 0.45rem;
    font-size: 1rem;           /* subtiel kleiner */
}

.dc-disclaimer p {
    margin: 0 0 0.25rem;
}

.dc-disclaimer p:last-child {
    margin-bottom: 0;
}

.dc-disclaimer-consent {
    margin-top: 0.4rem;
    font-size: 0.85rem;        /* subtieler */
    font-weight: 500;
}

/* Mobile autoshrink */
@media (max-width: 600px) {
    .dc-disclaimer {
        padding: 0.65rem 0.9rem;
        font-size: 0.84rem;
    }
    .dc-disclaimer-title {
        font-size: 0.88rem;
    }
    .dc-disclaimer-consent {
        font-size: 0.82rem;
    }
}

/* ----- Flight detail table (matches email style) ----- */

.dc-flight-table {
    width: 100%;
    max-width: none;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    margin: 20px 0;
    font-size: 15px;
}

.dc-flight-head td {
    background: #6C7B48; /* dark green */
    color: #fff;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
}

.dc-flight-table td {
    padding: 10px 14px;
    vertical-align: top;
    border-bottom: 1px solid #e6e6e6;
}

.dc-flight-table tr:last-child td {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dc-flight-table tr.alt td {
    background: #F5F9EE; /* light green tint */
}
.dc-flight-hero {
    margin-bottom: 30px;
}

.dc-flight-hero-header {
    margin-bottom: 12px;
}

.dc-flight-title {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-flight-sub {
    font-size: 15px;
    color: #556;
    margin: 0;
}

.dc-flight-hero-loc {
    margin-bottom: 8px;
}

/* Map full width and consistent radius */
.dc-flight-map {
    width: 100%;
    height: 310px;
    border-radius: 10px;
    overflow: hidden;
}

/* Optional: give section title a soft green underline */
.dc-section-title {
    position: relative;
}

.dc-section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 4px;
    border-radius: 2px;
    background: #8A9A5B;
}
/* ============================================================
   Drone-Check GREEN THEME (add.php enhancements)
   ============================================================ */

:root {
    --green-main: #8A9A5B;
    --green-dark: #6C7B48;
    --green-light: #F4F7EE;
}

/* Headers */
.page-add h1,
.page-add h2,
.page-add h3 {
    color: #6C7B48;
}

/* Info block */
.dc-info {
    border-left: 4px solid var(--green-main);
    background: var(--green-light);
    padding: 12px 16px;
    border-radius: 6px;
}

/* Buttons (submit + secondary) */
.btn-primary-green {
    background: var(--green-main);
    color: #fff;
    border-radius: 6px;
    padding: 12px 18px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

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

/* Fly-now button */
.btn-flynow {
    background: var(--green-dark);
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-flynow:hover {
    background: var(--green-main);
}

/* Map buttons */
.dc-map-btn {
    background: var(--green-main);
    color: #fff;
    border-radius: 6px;
    border: none;
}

.dc-map-btn:hover {
    background: var(--green-dark);
}

/* Disclaimer */
.dc-disclaimer-title {
    color: var(--green-dark);
}

.dc-disclaimer {
    border-left: 4px solid var(--green-dark);
}

/* Form labels */
.dc-form label {
    color: var(--green-dark);
}

/* ============================================================
   GREEN THEME — EDIT PAGE
   ============================================================ */

.page-edit h1,
.page-edit h2,
.page-edit h3 {
    color: #6C7B48;
}

.page-edit .dc-info {
    border-left: 4px solid var(--green-main);
    background: var(--green-light);
    padding: 12px 16px;
    border-radius: 6px;
}

/* FORM LABELS */
.page-edit .dc-form label {
    color: var(--green-dark);
}

/* SUCCESS/ERROR */
.dc-success {
    border-left: 4px solid var(--green-main);
    background: var(--green-light);
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.dc-error {
    border-left: 4px solid #b33;
    background: #f9eded;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}

/* Email badge */
.dc-badge-email {
    background: var(--green-main);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 6px;
}

/* Form buttons */
.page-edit .btn-primary-green {
    background: var(--green-main);
    color: #fff;
    border-radius: 6px;
    padding: 12px 18px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.page-edit .btn-primary-green:hover {
    background: var(--green-dark);
}

/* QR block */
.page-edit .dc-qr-block {
    text-align: center;
    margin-top: 20px;
}

.page-edit .dc-qr-block img {
    border-radius: 6px;
}

.page-edit .dc-print-btn {
    background: var(--green-main);
    color: #fff;
    border-radius: 6px;
    padding: 10px 18px;
    border: none;
    margin-top: 10px;
}

.page-edit .dc-print-btn:hover {
    background: var(--green-dark);
}

/* Delete button */
.page-edit .btn-danger {
    background: #b33;
    color: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
}

.page-edit .btn-danger:hover {
    background: #922;
}
/* Alleen header title & subtitle wit houden */
.page-add .dc-header-text h1,
.page-add .dc-header-text p,
.page-edit .dc-header-text h1,
.page-edit .dc-header-text p {
    color: #fff !important;
}

#live-map {
  width: 100%;
  height: 300px;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  background: #8A9A5B;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 12px;
}
.live-dot {
  width: 10px;
  height: 10px;
  background: #ff4444;
  border-radius: 50%;
  margin-right: 8px;
  animation: blink 1s infinite;
}
@keyframes blink {0%{opacity:1;}50%{opacity:.2;}100%{opacity:1;}}

.dc-flight-sub {
    margin-bottom: 18px;
}
.drone-icon {
    transition: transform 0.15s linear;
}

/* --- HUD panel rechtsboven --- */
#live-hud {
    position: absolute;
    top: 110px;
    right: 30px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 14px;
    z-index: 1000;
    min-width: 180px;
}

/* tabelstijl */
#live-fields {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #333;
}

#live-fields tr:nth-child(odd) {
    background: #f4f6f0;
}
#live-fields tr:nth-child(even) {
    background: #e9ede4;
}

#live-fields td {
    padding: 4px 6px;
    vertical-align: middle;
}

/* iconen uniform */
.live-ico {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    margin-right: 6px;
}

/* battery kleuren */
.batt-green { color: #3aa655; font-weight:600; }
.batt-orange { color: #c67c1e; font-weight:600; }
.batt-red { color: #b83232; font-weight:600; }

/*  signal bars */
.signal-bars {
    display: inline-block;
    width: 40px;
    height: 16px;
    background: linear-gradient(to top, #8A9A5B 25%, transparent 25%);
    mask-size: 8px 16px;
    mask-repeat: repeat-x;
    -webkit-mask-size: 8px 16px;
    -webkit-mask-repeat: repeat-x;
}

.signal-level-1 { opacity: 0.25; }
.signal-level-2 { opacity: 0.45; }
.signal-level-3 { opacity: 0.65; }
.signal-level-4 { opacity: 1; }

/* hide HUD on very small screens */
@media(max-width: 600px) {
    #live-hud {
        position: static;
        margin-top: 15px;
    }
}
.live-info-title {
    margin-top: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #6C7B48;
}

#live-fields td {
    padding: 6px 10px;
}

#live-fields tr:nth-child(even) {
    background: #f7f7f7;
}

/* Battery colors */
.batt-green { color: #4CAF50; font-weight:600; }
.batt-orange { color: #FF9800; font-weight:600; }
.batt-red { color: #F44336; font-weight:600; }

/* Signal bars */
.signal-bars {
    display: inline-block;
    width: 40px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.signal-level-1 { background-image:url('/img/hud/signal-1.svg'); }
.signal-level-2 { background-image:url('/img/hud/signal-2.svg'); }
.signal-level-3 { background-image:url('/img/hud/signal-3.svg'); }
.signal-level-4 { background-image:url('/img/hud/signal-4.svg'); }

.dc-drone-icon img {
    transition: transform 0.15s linear;
    transform-origin: 20px 20px;
}
.api-test-btn {
    background: #8A9A5B;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    margin: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.api-test-btn:hover {
    background: #6C7B48;
}
/* App screenshot gallery */
.dc-app-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
    margin-top: 20px;
    align-items: start;
}

.dc-app-gallery a {
    display: block;
}

.dc-app-gallery img {
    width: 100%;
    aspect-ratio: 9/19.5; /* smartphone ratio */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    cursor: zoom-in;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.dc-app-gallery img:hover {
    transform: scale(1.04);
    opacity: 0.88;
}

/* Optional: center alignment on small screens */
@media (max-width: 480px) {
    .dc-app-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* ------------------------------------------------------
   TABLE — STRIPED (stronger specificity)
------------------------------------------------------ */

.api-section table.table-striped tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.api-section table.table-striped tbody tr:nth-child(even) {
    background-color: #f4f6f4;
}

.api-section table.table-striped tbody tr:hover {
    background-color: #eef2ee;
}
/* =============================================
   Scroll to top button
============================================= */
.dc-scrolltop {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;

    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;

    background: #6C7B48;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
}

.dc-scrolltop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dc-scrolltop:hover {
    background: #8A9A5B;
}

.store-badge {
    display: block;
    margin: 20px auto;     /* horizontaal centreren */
    max-width: 200px;      /* voorkomt te groot op desktop */
    width: 70%;            /* mooi op mobile */
    height: auto;
}

/* =========================================================
   NEWSLETTER FORM (integrated in api-section)
========================================================= */

.subscribe-intro {
    margin-bottom: 1.75rem;
    color: #555;
    font-size: 0.95rem;
    max-width: 520px;
}

.newsletter-form {
    max-width: 520px;
}

.newsletter-form .form-group {
    margin-bottom: 1.25rem;
}

.newsletter-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #445135;
}

.newsletter-form .required {
    color: #d63626;
    font-weight: 700;
    margin-left: 0.15rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #6C7B48;
    box-shadow: 0 0 0 3px rgba(108,123,72,0.25);
}

.subscribe-btn {
    margin-top: 0.75rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: #8A9A5B;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}

.subscribe-btn:hover {
    background: #6C7B48;
}

.subscribe-btn:active {
    transform: translateY(1px);
}

.subscribe-footnote {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: #777;
}



