/* Base layout */
body {
  margin: 0;
  padding:20; */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e0e1de;
  color: #333;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* background: rgba(255, 255, 255, 0.4); white overlay with 40% opacity */
  z-index: -1;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  color: #1c2e4a;
}

iframe {
  width: 100%;
  height: 100vh;
  border: none;
}

/* Sidebar styling */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: #1c2e4a;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #fff;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  display: block;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.sidebar ul li a:hover {
  background-color: #007BFF;
}

/* Main content styling */
.main-content {
  margin-left: 270px; /* Adjust this to match the sidebar width + padding */
  padding: 20px;
}

.main-content .mega-card {
  width: 98%;
  margin: 0 auto; /* centers the card horizontally */
  box-sizing: border-box; /* ensures padding and borders are included in the width */
  padding: 1rem; /* adjust padding as needed */
}

.button {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Ensures the text color is inherited */
  background-color: #f2f2f7;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button:hover {
  text-decoration: none; /* Ensures underline doesn't appear on hover */
  background-color: #007BFF;
  color: #fff;
}

.button:active {
  background-color:#007BFF;
  box-shadow: inset 0 2px 4px rgba(60, 60, 67, 0.15);
  transform: translateY(1px);
}

.button[aria-pressed="true"] {
  background-color: #007BFF;
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(60, 60, 67, 0.15);
}

.button-group {
  display: inline-flex;
  border: 1px solid #d1d1d6;
  background-color: #007BFF;
  border-radius: 8px;
  overflow: hidden;
}

.button-group .button {
  border: none;
  border-right: 1px solid #d1d1d6;
  border-radius: 0;
}

.button-group .button:last-child {
  border-right: none;
}

input[type="text"],
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #1d1d1f;
  background-color: #ffffff;
  border: 1px solid #c7c7cc;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="date"],
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #1d1d1f;
  background-color: #ffffff;
  border: 1px solid #c7c7cc;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #007aff; /* System blue */
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

/* Remove grid properties from .dashboard */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  /* Removed:
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  */
}

/* Ensure .dashboard-row is a flex container in row direction */
.dashboard-row {
  display: flex;
  flex-direction: row; /* explicitly enforce row layout */
  flex-wrap: wrap;
  gap: 20px; /* add gap between cards */
  margin-bottom: 20px;
}

/* Center the card-container content */
.dashboard .card-container {
  display:;
  justify-content: center;
}

/* Style the card to be 90% of the dashboard width and centered */
.dashboard .card-container .card {
  width: 90%;
  margin: 0 auto;
  box-sizing: border-box; /* ensures padding/border included in width */
  padding: 1rem; /* adjust as needed */
}

/* Card styling remains unchanged */
.card {
  flex: 1; /* Allow cards to grow and take equal space */
  min-width: 275px; /* Set a minimum width for each card */
  max-width: 500px; /* Set a maximum width for each card */
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.maxicard {
  flex: 1; /* Allow cards to grow and take equal space */
  min-width: 300px; /* Set a minimum width for each card */
  max-width: 98%; /* Set a maximum width for each card */
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-template-rows: repeat(2, auto);   /* 2 rows */
  gap: 10px;                             /* space between cells */
  text-align: center;
}

.stats div {
  background-color: #eef3f7;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 10px;
}

.highlight {
  font-size: 1em;
  font-weight: bold;
  color: #0077cc;
}

.turtle-name {
  font-size: 1.25rem; /* same as text-xl */
  font-weight: 600;
  margin: 0;
}

/* Generic badge style */
.status-badge {
  display: inline-block;
  font-size: 0.875rem;  /* text-sm */
  font-weight: 600;
  padding: 0.25rem 0.75rem; /* tighter padding for pill shape */
  border-radius: 0.5rem; /* rounded */
  color: #fff;
  background-color: #3b7b3f; /* slightly darker green */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  border: 1px solid #2f6d34;
  text-align: center;
  white-space: nowrap;
}

/* Color variants */
.status-badge.current {
  background-color: #3b7b3f;
  border-color: #2f6d34;
}

.status-badge.released {
  background-color: #2563eb;
  border-color: #1e40af;
}

.status-badge.deceased {
  background-color: #b91c1c;
  border-color: #7f1d1d;
}

@media screen and (max-width: 768px) {
  /* On smaller screens, the cards will stack vertically */
  .dashboard-row {
    flex-direction: column;
  }
  .card {
    max-width: 100%;
  }
}