body {
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
}

/* HEADER STYLES */
.site-header {
    background-color: #0a3d62;
    color: white;
    padding: 20px 20px;
    border-bottom: 4px solid #38ada9;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*max-width: 82.5%;*/
    margin: 0;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
}

.logo img {
    height: 35px;
    margin-right: 10px;
}
.main-nav {
  display: flex;
  align-items: center;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.main-nav a:hover {
    text-decoration: underline;
}

.auth-section {
    display: flex;
    align-items: right;
    gap: 15px;
}

.btn-login,
.btn-logout {
    background-color: #38ada9;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-login:hover,
.btn-logout:hover {
    background-color: #3dc1d3;
}


.btn-delete {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-delete:hover { background: #c0392b; }
.cell-delete { text-align: center; }
























/*************** RESPONSIVE ****************************************/
/* ---------- Layout helpers ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

/* ---------- Entities section ---------- */
.entities-section { padding: 12px 0 24px; }
.entities-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 12px;
}
.entities-header h1 { margin: 0; font-size: 1.25rem; }
.entities-header .total { opacity: .8; }

/* ---------- Responsive table ---------- */
.table-responsive { overflow: auto; -webkit-overflow-scrolling: touch; }

.entities-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.entities-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: #f8fafc; text-align: left; padding: 10px 12px;
  font-weight: 600; border-bottom: 1px solid #e5e7eb;
}
.entities-table tbody tr { border-top: 1px solid #f1f5f9; }
.entities-table td {
  padding: 10px 12px; vertical-align: top;
  word-break: break-word; white-space: normal;
}

/* Links */
.entities-table .cell-id a { color: #0a3d62; text-decoration: none; font-weight: 600; }
.entities-table .cell-id a:hover { text-decoration: underline; }

/* Keep min/max together on one line if short */
.nowrap { white-space: nowrap; }

/* Description cell can grow but stays readable */
.cell-desc { max-width: 420px; }

/* Empty-state */
.empty {
  padding: 20px; border: 2px dashed #cbd5e1; border-radius: 12px; background: #f8fafc;
}

/* ---------- Mobile stacked rows ---------- */
@media (max-width: 900px) {
  .entities-header { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Turn table into stacked cards */
  .entities-table,
  .entities-table thead,
  .entities-table tbody,
  .entities-table th,
  .entities-table td,
  .entities-table tr { display: block; }

  .entities-table thead { display: none; } /* hide header */

  .entities-table tr {
    border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; margin: 10px;
    background: #fff;
  }

  .entities-table td {
    padding: 6px 0; border: 0;
  }

  .entities-table td::before {
    content: attr(data-label) " — ";
    font-weight: 600; color: #334155; display: inline-block; min-width: 120px;
  }

  .cell-desc { max-width: 100%; }
  .nowrap { white-space: normal; } /* allow wrapping on mobile */
}