/*------GENERAL------ */

:root {
  --red: #96031A;
  --white: #ebf1ef;
  --gray: #6D676E;
  --black: #1B1B1E;
  --green: #207751;
  --cyan: #00d5ff;
  --lightgreen: #22f693;
  --text: #d9ecff;
  --darktext: #1B1B1E;
  --orange: #ff9f0a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--white);
  font: 500 0.9375rem/1.4 "Segoe UI", Inter, sans-serif;
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: 205px 1fr;
  min-height: calc(100vh - 76px);
}
.dashboard-layout{
  grid-template-columns: 205px 1fr 300px;
}
.mission-layout {
  grid-template-columns: 205px 1fr 450px;
}

.layout.short {
  grid-template-columns: 205px 1fr;
}

.page {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}



.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.btn {
  border-radius: 9px;
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn:hover {
  opacity: 0.8;
}

.btn.primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--gray);
  width: 110px;
  text-align: center;
}

.card-map {
  width: 60%;
  height: auto;
}

.btn.ghost {
  border-color: #2e4b67;
  color: #d8f1ff;
  background: rgba(14, 28, 43, 0.7);
}

.card {
  background: var(--black);
  border: 1px solid var(--gray);
  border-radius: 12px;
  overflow: hidden;
  
}

.card-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--white);
}

.card-head h2 {
  font-size: 1.5rem;
  margin: 0;
}

.stats {
  padding: 14px;
}

.rightbar {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 22px;
  padding-right: 22px;
}



/*------DASHBOARD SPECIFIC------ */

.alert-card {
  background: #2a1c0f;
  border: 1px solid var(--orange);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.alert-card .page-actions {
  margin-left: auto;
}

.claim-alert-image {
  width: 96px;
  height: 64px;
  flex: 0 0 96px;
  object-fit: cover;
  border: 1px solid var(--gray);
  border-radius: 6px;
}

.alert-card h3 {
  margin: 0;
  color: var(--orange);
}

.alert-card p {
  margin: 4px 0 0;
  color: #f6cca0;
}

.log-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.log-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--gray);
}

.log-list li span {
  color: #c1bcbc;
  font-weight: 700;
}

.log-list em {
  color: #21f889;
  font-style: normal;
  font-size: 0.75rem;
}

.log-list .pending {
  color: #ffab2e;
}

.drone-state {
  background: rgba(20, 246, 129, 0.15);
  border: 1px solid #1de292;
  color: #6cfbc1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.stats {
  padding: 12px 14px;
  color: var(--darktext);
}

.stats p {
  display: flex;
  color: var(--white);
  justify-content: space-between;
}

.stats strong {
  color: var(--white);
}

.text-muted {
  color: var(--darktext);
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--gray);
    gap: 14px;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

}
