body { 
  display: flex;
  min-height: 100vh;
  background: #F5F6FA;
  color: #395162;
}
.sidebar { 
	width: 200px;
	background-color: #193142;
	color: #fff;
}
.sidebar a, .sidebar a:visited, .sidebar a:active,
.sidebar a:hover, .sidebar a.active {
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
    display: block;
    padding: 10px;
    text-decoration: none;
    cursor: pointer !important;
}
.sidebar a:hover, .sidebar a.active {
    background-color: #395162;
    color: #fff;
}

.content { flex-grow: 1; padding: 20px; width: 100%; }
.logo { text-align: center; padding: 30px 0; }
.logo img { max-width: 130px; }

.card, .modal-content {
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(25,49,66,0.07);
  border: none;
}
.card-body {
  color: #395162;
  }
h1, .card-title {
  color: #395162; font-weight: 700; 
}
.card.no-bottom-radius {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.card.no-top-radius {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}
.card-body.no-top-padding {
  padding-top: 0!important;
}

.fa-skull-crossbones {
  color: #FA4659;
}

.table {
  border: none;
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 4px 18px 0 rgba(25,49,66,0.07);
}
.table th {
  background: #E7FDE8;
  font-size: 13.5px;
  color: #395162;
  border: none;
  padding-top: 13px;
  padding-bottom: 13px;
  font-weight: 700;
}
.table td {
  color: #395162;
  border: none;
  background: #fff;
  vertical-align: middle;
}
.table tbody tr:hover td {
  background: #E7FDE8;
}
td.status-cell, th.status-cell {
  text-align: center;
  vertical-align: middle;
}
.table-responsive {
  overflow: visible;
}
.row-format {
  vertical-align: middle;
  font-size: 13px;
}
.pagination {
  margin-top: 16px;
}
.status-pill {
  display: inline-block;
  border-radius: 12px !important;
  font-size: 11px !important;
  padding: 5px 0 !important;
  font-weight: 600 !important;
  text-align: center !important;
  letter-spacing: 0.03em;
  color: #fff;
  min-width: 80px !important;
  width: 80px !important;
}
.user-label {
  font-weight: 600;
  font-size: 1em;
  color: #395162;
}
.user-label.deleted {
  color: #9fa4a8 !important;
  font-style: italic;
  font-weight: unset;
}
.user-email {
  font-size: 0.91em;
  color: #9fa4a8;
  display: block;
  margin-top: -2px;
}

.thumbnail {
  width: 38px !important;
  height: 38px !important;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.18s;
}
.thumbnail:hover {
  transform: scale(1.12);
}

#imgOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#imgOverlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 30px #000;
}
#imgOverlay .close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

.action-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.icon-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0 1px;
  cursor: pointer;
  font-size: 17px;
  color: #888;
  outline: none;
  transition: color 0.12s;
  vertical-align: middle;
  border-radius: 50%;
}
.icon-btn.danger { color: #FA4659; cursor: default; }
.icon-btn.audio { color: #FA4659; }
.icon-btn.audio.playing { color: #FA4659; font-size: 18px !important; }
.icon-btn.delete {
  color: #ccc;
  font-size: 17px;
  opacity: 0.48;
}
.icon-btn.delete:hover {
  color: #FA4659;
  opacity: 1;
}
.icon-btn.disabled, .icon-btn[disabled] {
  opacity: 0.48;
  color: #ccc !important;
  cursor: not-allowed;
  pointer-events: none;
}

.status-menu {
  position: absolute;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  z-index: 9001;
  padding: 5px 0;
  min-width: 120px;
  font-size: 14px;
  right: 0;
  top: 28px;
  display: none;
}
.status-menu.open { display: block; }
.status-menu button {
  background: none;
  border: none;
  width: 100%;
  padding: 7px 12px;
  text-align: left;
  color: #222;
  font-size: 14px;
  cursor: pointer;
}
.status-menu button:hover { background: #f4f4f4; }

.assign-menu {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 6px 20px #0001;
  border-radius: 10px;
  min-width: 150px;
  padding: 6px 0;
  z-index: 9999;
}
.assign-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 7px 15px;
  font-size: 1em;
  color: #395162;
  cursor: pointer;
  transition: background 0.15s;
}
.assign-menu button.active, .assign-menu button:hover {
  background: #f4f8fa;
  color: #222;
}



.maps-icon {
  font-size: 20px;
  color: #64EF89;
  vertical-align: middle;
  transition: color 0.14s;
  margin-left: 2px;
  margin-right: 2px;
}
.maps-icon:hover { color: #4FD272; }
.date-filter-input {
  min-width: 115px;
  max-width: 145px;
  font-size: 14px;
}
.reset-filters-btn {
  border: none;
  background: none;
  padding: 0 7px;
  color: #888;
  font-size: 23px;
  margin-left: 3px;
  vertical-align: middle;
  cursor: pointer;
  transition: color 0.13s;
}
.reset-filters-btn:hover { color: #FA4659; }
.user-deleted {
  color: #999;
  font-style: italic;
  font-size: 1em;
}

.description-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  max-width: 250px;
}
.eye-cell {
  text-align: center;
  width: 34px;
}
.description-eye {
  color: #395162;
  cursor: pointer;
  vertical-align: middle;
  transition: color .18s;
  font-size: 1em;
}
.description-eye:hover { color: #193142; }

/* TOOLTIPS */

.custom-tooltip {
  display: none;
  position: absolute;
  z-index: 20;
  background: #fff;
  color: #395162;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 210px;
  box-shadow: 0 6px 22px #0002;
  font-size: 12px;
  line-height: 1.4;
}
.custom-tooltip.tooltip-left {
  left: auto;
  right: 0;
  min-width: 300px;
  text-align: left;
}
.custom-tooltip.active {
  display: block;
}
.tooltip-icon-btn {
  font-size: 18px;
  color: #64EF89;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}
.tooltip-icon-btn:hover { color: #4FD272; }
