body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef6f8;
  color: #061820;
}

.header {
  background: #001018;
  color: white;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  color: #008fa3;
  margin: 0;
  font-size: 34px;
}

button {
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #008fa3;
  background: #008fa3;
  color: white;
  font-weight: bold;
}

button.secondary {
  background: white;
  color: #008fa3;
}

.login-card {
  max-width: 420px;
  margin: 80px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
}

.login-card input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  box-sizing: border-box;
}

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  padding: 18px;
}

.sidebar, .main {
  background: white;
  border-radius: 10px;
  padding: 18px;
}

.import-box {
  border: 2px dashed #008fa3;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin-bottom: 18px;
  background: #f3fdff;
}

.import-box.dragover {
  background: #dff8ff;
}

.import-result {
  font-size: 14px;
  margin-top: 10px;
}

.session-card {
  border: 1px solid #cfdde2;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.session-card.active {
  border-color: #008fa3;
  background: #e9fbff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.stat {
  background: #fff;
  border: 2px solid #c7d4da;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.40);
}

.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #083d5b;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  border: 1px solid #d6e1e5;
  border-radius: 8px;
  padding: 14px;
}

textarea {
  width: 100%;
  height: 140px;
  padding: 10px;
  box-sizing: border-box;
}

.map {
  width: 100%;
  height: 210px;
  border: 0;
  border-radius: 8px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-grid img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.chart {
  display: flex;
  align-items: end;
  gap: 18px;
  height: 190px;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}

.hour-group {
  display: flex;
  align-items: end;
  gap: 4px;
}

.bar {
  width: 12px;
  border-radius: 3px 3px 0 0;
}

.casts { background: #2196f3; }
.fish { background: #4caf50; }
.weight { background: #ff9800; }

.hour-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.small {
  color: #607078;
  font-size: 14px;
}

@media (max-width: 900px) {
  .layout, .grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.photo-manager {
  grid-template-columns: repeat(2, 1fr);
}

.photo-card {
  border: 1px solid #d6e1e5;
  border-radius: 8px;
  padding: 8px;
  background: #f8fcfd;
}

.photo-card img {
  height: 120px;
  margin-bottom: 8px;
}

.photo-card input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.photo-actions {
  display: flex;
  gap: 6px;
}

.photo-actions button {
  flex: 1;
  font-size: 12px;
  padding: 8px;
}

button.danger {
  background: #ffffff;
  color: #c00000;
  border: 1px solid #c00000;
}
.photo-card {
  position: relative;
}

.photo-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: #c00000;
  color: white;
  border: none;
  font-size: 18px;
  line-height: 22px;
}
.photo-caption {

    width:100%;
    box-sizing:border-box;
    margin-top:6px;
    padding:6px;
    border-radius:6px;
    border:1px solid #ccc;

}
.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.photo-lightbox.active {
  display: flex;
}

.photo-lightbox img {
  max-width: 90%;
  max-height: 78%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 34px;
  background: transparent;
  border: none;
  color: white;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 54px;
  background: transparent;
  border: none;
  color: white;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-caption {
  color: white;
  margin-top: 14px;
  font-size: 18px;
  text-align: center;
}
#sessionSort {
    width: 100%;
    margin: 8px 0 16px;
    padding: 8px;
    border-radius: 6px;
}
.session-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    margin-top: 8px;
    font-size: 13px;
}

.session-summary span {
    white-space: nowrap;
}

.session-summary strong {
    color: #0b4d73;
}
/* FishOMeter dark dashboard theme */

body {
  background: #071015;
  color: #f4f8fb;
}

.header {
  background: #0b141b;
  border-bottom: 1px solid #263a44;
  color: #f4f8fb;
}

.layout {
  background: #071015;
}

.sidebar {
  background: #0b141b;
  border-right: 1px solid #263a44;
}

.sidebar h2,
.main h2,
.panel h3 {
  color: #ffffff;
}

.main {
  background: #0f1720;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.panel,
.stat,
.session-card {
  background: linear-gradient(180deg, #1b2635 0%, #111a24 100%);
  border: 1px solid #2d4a59;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  color: #f4f8fb;
}

.stat {
  padding: 20px;
}

.stat strong {
  color: #9dff00;
  font-size: 34px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(157, 255, 0, 0.55);
}

.session-card {
  margin-bottom: 14px;
}

.session-card.active {
    border: 2px solid #9dff00;
    box-shadow:
        0 0 12px rgba(157,255,0,.45),
        0 15px 35px rgba(0,0,0,.45);
}

.session-card strong,
.session-summary strong {
  color: #9dff00;
}


.small,
.session-card p {
  color: #b7c8d3;
}

button {
  background: #0897a8;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(8, 151, 168, 0.35);
}

button:hover {
  background: #0bb3c7;
}

button.secondary {
  background: transparent;
  border: 1px solid #0bb3c7;
  color: #8eefff;
}

textarea,
input,
select {
  background: #0b141b;
  color: #f4f8fb;
  border: 1px solid #39515f;
  border-radius: 8px;
  padding: 9px;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: #9dff00;
  box-shadow: 0 0 10px rgba(157, 255, 0, 0.3);
}

.photo-card {
  background: #0b141b;
  border: 1px solid #2d4a59;
  border-radius: 14px;
  padding: 8px;
}

.map {
  border-radius: 14px;
  border: 1px solid #2d4a59;
}

.import-box {
  background: #111a24;
  border: 1px dashed #9dff00;
  color: #f4f8fb;
}
.stat:nth-child(1) strong {
  color: #9dff00;
  text-shadow: 0 0 14px rgba(157, 255, 0, 0.6);
}

.stat:nth-child(2) strong {
  color: #ffb000;
  text-shadow: 0 0 14px rgba(255, 176, 0, 0.6);
}

.stat:nth-child(3) strong {
  color: #34b6ff;
  text-shadow: 0 0 14px rgba(52, 182, 255, 0.6);
}

.stat:nth-child(4) strong {
  color: #ff6b6b;
  text-shadow: 0 0 14px rgba(255, 107, 107, 0.6);
}
.session-card {
    transition: all 0.25s ease;
    cursor: pointer;
}
.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    border-color: #6aff00;
}
.session-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
    margin-top: 12px;
    font-size: 14px;
}

.session-summary strong {
    color: #9dff00;
}
/* FishOMeter Glass Dashboard Layout */

body {
  background:
    radial-gradient(circle at top left, rgba(0, 180, 200, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(120, 255, 0, 0.12), transparent 35%),
    #061019;
  color: #f4f8fb;
}

.main,
.sidebar,
.panel,
.stat,
.session-card,
.import-box {
  background: rgba(13, 31, 45, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 220, 255, 0.22);
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.layout {
  background: transparent;
}

.sidebar {
  padding: 22px;
}

.main {
  padding: 28px;
}

.panel {
  padding: 22px;
}

.stat {
  padding: 24px;
  text-align: center;
}

.stat strong {
  font-size: 38px;
  font-weight: 800;
}

.stat:nth-child(1) strong {
  color: #9dff00;
  text-shadow: 0 0 16px rgba(157, 255, 0, 0.65);
}

.stat:nth-child(2) strong {
  color: #ffae21;
  text-shadow: 0 0 16px rgba(255, 174, 33, 0.65);
}

.stat:nth-child(3) strong {
  color: #20a7ff;
  text-shadow: 0 0 16px rgba(32, 167, 255, 0.65);
}

.stat:nth-child(4) strong {
  color: #ff6477;
  text-shadow: 0 0 16px rgba(255, 100, 119, 0.65);
}

.session-card {
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.session-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 255, 0, 0.75);
}

.session-card.active {
  border-color: #9dff00;
  box-shadow:
    0 0 22px rgba(157, 255, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.5);
}

button {
  background: rgba(0, 210, 230, 0.22);
  border: 1px solid rgba(0, 230, 255, 0.65);
  color: #8ff8ff;
  border-radius: 10px;
  font-weight: 700;
}

button:hover {
  background: rgba(0, 230, 255, 0.35);
}

textarea,
input,
select {
  background: rgba(4, 16, 24, 0.75);
  color: #f4f8fb;
  border: 1px solid rgba(120, 220, 255, 0.28);
  border-radius: 10px;
}

.small,
.session-card p {
  color: #b8cad6;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.dashboard-grid .panel:has(#notes) {
    display: flex;
    flex-direction: column;
}
.stat-icon {
    font-size: 34px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat span {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: #d4dde3;
    letter-spacing: .5px;
}
button[onclick="deleteSelectedSession()"] {
  background: rgba(0, 210, 230, 0.22) !important;
  border: 1px solid rgba(0, 230, 255, 0.65) !important;
  color: #8ff8ff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(8, 151, 168, 0.35) !important;
}
input[type="file"]::file-selector-button {
  background: rgba(0, 210, 230, 0.22);
  border: 1px solid rgba(0, 230, 255, 0.65);
  color: #8ff8ff;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(0, 230, 255, 0.35);
}
.hour-group {
  position: relative;
}

.bar-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
}

.catch-rate-marker {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #ff3b3b;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.9);
  z-index: 5;
}
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  min-height: 70px;
}

.stat-icon {
  font-size: 30px;
  margin-bottom: 0;
}

.stat strong {
  font-size: 30px;
  margin-bottom: 0;
}

.stat span {
  margin-top: 0;
}
.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.notes-header h3 {
    margin: 0;
}

.venue-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-inline label {
    font-weight: 600;
    color: #b8cad6;
    white-space: nowrap;
}

.venue-inline input {
    width: 100%;
    min-width: 0;
}
.photos-panel {
  margin-top: 22px;
}
.dashboard-grid .panel {
    display: flex;
    flex-direction: column;
}
#notes {
    flex: 1;
    min-height: 220px;   /* Increase or decrease to suit */
    resize: vertical;
}
html,
body {
  width: 100%;
  max-width: 100%;
}

.header {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .header {
    padding: 14px 16px;
    width: 100%;
  }
}

.header {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .header {
    padding: 14px 16px;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .layout {
    display: block;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
  }

  .main {
    width: 100%;
    box-sizing: border-box;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {

  .layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  .sidebar,
  .main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .dashboard-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .stats {
    grid-template-columns: 1fr 1fr !important;
  }

  .stat {
    min-width: 0 !important;
  }

  .panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  iframe,
  .map,
  textarea,
  input,
  select {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
      }

  .layout,
  .main,
  .sidebar,
  .panel,
  .photos-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .chart {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .chart > div {
    flex: 0 0 auto !important;
  }

  .hour-row {
    grid-template-columns: 60px 1fr 60px !important;
  }

  .header {
    flex-wrap: wrap !important;
  }
}

/* FINAL MOBILE FIX */

@media (max-width: 900px) {
  body {
    overflow-x: auto;
  }

  .layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    padding: 10px !important;
  }

  .sidebar,
  .main,
  .panel,
  .photos-panel {
    width: 100% !important;
    max-width: none !important;
  }

  .dashboard-grid,
  .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .photo-grid {
    grid-template-columns: 1fr !important;
  }
}
* 
@media (max-width: 768px) {

  .notes-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .venue-inline {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .venue-inline label {
    flex: 0 0 auto;
  }

  .venue-inline input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}
/* Login page dashboard styling */

.login-card {
  background: rgba(13, 31, 45, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 220, 255, 0.22);
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f4f8fb;
}

.login-card h1 {
  color: #008fa3;
  text-shadow: 0 0 14px rgba(0, 230, 255, 0.35);
}

.login-card p {
  color: #b8cad6;
}

.login-card input {
  background: rgba(4, 16, 24, 0.75);
  color: #f4f8fb;
  border: 1px solid rgba(120, 220, 255, 0.28);
  border-radius: 10px;
}

.login-card button {
  background: rgba(0, 210, 230, 0.22);
  border: 1px solid rgba(0, 230, 255, 0.65);
  color: #8ff8ff;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(8, 151, 168, 0.35);
}

.login-card button:hover {
  background: rgba(0, 230, 255, 0.35);
}
/* Mobile login fix */
@media (max-width: 768px) {
  .login-card {
    width: calc(100% - 32px);
    max-width: none;
    margin: 40px 16px;
    padding: 26px;
    box-sizing: border-box;
  }

  .login-card h1 {
    color: #008fa3;
  }

  .login-card p {
    color: #b8cad6;
  }

  .login-card input {
    width: 100%;
    background: rgba(4, 16, 24, 0.75);
    color: #f4f8fb;
  }
}
.chart {
  display: flex !important;
  align-items: end !important;
  gap: 18px;
  height: 190px;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}

.hour-group {
  display: flex !important;
  align-items: end !important;
  gap: 4px;
}

.bar {
  width: 12px;
  border-radius: 3px 3px 0 0;
}

.casts {
  background: #2196f3 !important;
}

.fish {
  background: #4caf50 !important;
}

.weight {
  background: #ff9800 !important;
}