:root {
  --bg-color: #ECEFF1;
  --text-color: rgba(0, 0, 0, 0.87);
  --card-bg: #ffffff;
  --border-color: silver;
  --link-color: #0000EE;
  --header-bg: white;
  --text-primary: rgba(0, 0, 0, 0.87);
  --text-secondary: rgba(0, 0, 0, 0.6);
  --nav-hover: #f5f5f7;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --border-color: #333;
  --link-color: #8ab4f8;
  --header-bg: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #aaaaaa;
  --nav-hover: #2c2c2e;
}

body {
  font-family: "helvetica", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* Header Styles */
.main-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand a {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.main-nav a:hover {
  color: var(--text-primary);
  background-color: var(--nav-hover);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu_profilepic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  cursor: pointer;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 65px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 200px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.user-dropdown.show {
  display: flex;
}

.user-info {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  word-break: break-all;
}

.user-dropdown a {
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.user-dropdown a:hover {
  background-color: var(--nav-hover);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    /* Mobile menu implementation needed if requested, but for now simple hide or stack */
  }
}

@media (max-width: 600px) {

  body,
  #message {
    margin-top: 0;
    background: var(--card-bg);
    box-shadow: none;
  }

  body {
    border-top: 16px solid #ffa100;
  }
}

#message {
  background: white;
  max-width: 360px;
  margin: 100px auto 16px;
  padding: 32px 24px;
  border-radius: 3px;
}

#message h2 {
  color: #ffa100;
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 8px;
}

#message h1 {
  font-size: 22px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 16px;
}

#message p {
  line-height: 140%;
  margin: 16px 0 24px;
  font-size: 14px;
}

#load {
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  font-size: 13px;
}

.menu {
  margin-bottom: 40px;
  text-transform: uppercase;
}

.journalDayBlock {
  margin-top: 50px;
}

.journalDayBar {
  font-size: 30px;
}

.journalEntryBlock {
  text-align: left;
  margin-bottom: 20px;
  padding: 10px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 0px;
}

.journalTitle {
  font-weight: bold;
  font-size: 1.1em;
  width: 95%;
  display: inline-block;
}

#entry_container {
  margin: auto;
}

.dateHeader,
.dateHeaderSeperator,
#entry_container {
  max-width: 600px;
}

.posttime {
  font-size: 14px;
  color: silver;
}

.dateHeader {
  font-size: 16px;
  font-weight: bold;
  color: grey;
  padding: 10px;
  text-align: left;
  margin: auto;
  padding-left: 20px;
  padding-top: 20px;
  margin-top: 50px;
  /*height: 65px;*/
  padding-bottom: 10px;
}

.dateHeader {
  position: -webkit-sticky;
  position: sticky;
  top: 60;
  z-index: 1;
  background-color: white;
}

.htmlbox {
  display: none;
}

.dateHeaderSeperator {
  margin: auto;
  border-bottom: 1px solid gainsboro;
}

.dayheaderContainer {
  display: inline-block;
}

.dayLabelContainer {
  float: left;
}

.dayLabel {
  padding: 0px;
  border: 0px solid silver;
  font-size: 2.5em;
  padding-right: 8px;
  padding-top: 3px;
  color: #db5a6b;
  font-weight: bold;
}

.monthyearLabel {
  float: left;
  font-size: 0.8em;
  font-style: normal;
  padding-top: 10px;
  padding-bottom: 10px;
  border-right: 0px;
  color: inherit;
  text-transform: capitalize;
  /* margin-bottom: 10px; */
  line-height: 1.25;
  margin-left: 5px;
}



.section1 {
  height: auto;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 0px solid rgba(0, 0, 0, .08);
  overflow: hidden;
  background-color: white;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  max-width: 700px;

}

div+.section1 {
  /*border-top-right-radius: 30px;*/
}

.section1:last-child {
  /*border-bottom-left-radius: 30px; */
}

.section1~.section1 {
  /*border-top: 0.3px solid #ddd;*/
}


.global-container {
  max-width: 1280px;
  margin: auto;
  text-align: left;
  background: white;
  max-width: 780px;
  margin: 50px auto 16px;
  padding: 32px 24px;
  border-radius: 10px;
}

.user {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 5px;
  margin-right: 15px;
}

#user_menu {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 45px;
  margin-right: 15px;
  text-align: right;
  border: 1px solid #BFBFBF;
  background-color: white;
  box-shadow: 3px 3px 3px #d4d4d4;
  border-radius: 7px;
  padding: 10px;
  z-index: 50;
}

#user_profile,
#admin_profile,
#user_id {
  border-bottom: 0.5px solid silver;
  padding: 5px 5px 5px 5px;
}

.thumbnail-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
}

.thumbnail-cards img {
  margin: 10px;
  border: 3px solid white;
  box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.3);
  min-width: 150px;
  max-width: 300px;
  width: 10vw;
}


.exhibit-cards {
  margin: 10px;
  border: 3px solid white;
  box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.3);

}

.tag {
  background-color: red;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 13px;
}

.tag a {
  text-decoration: none;
  color: white;
  border-bottom: none;
}

/* Style the images inside the grid */
#listings img {
  opacity: 1;
  cursor: pointer;
}


#listings img:hover {
  opacity: 0.75;
}

.album-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.album-cards img {
  margin: 10px;
  border: 3px solid white;
  box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.3);
  max-width: 25vw;
}


.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

#footer {
  margin-bottom: 20px;
  margin-top: 80px;
}

/* Modern Variables from performance_day.html */
:root {
  --green-profit: #34c759;
  --red-loss: #ff3b30;
  /* Overriding some defaults to match modern look if needed, but keeping existing ones for safety */
}

/* Table Styles for Performance Pages */
.trades-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
}

.trades-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

.trades-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.positive {
  color: var(--green-profit);
}

.negative {
  color: var(--red-loss);
}

/* Container helper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header-row {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.back-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
}

.back-btn:hover {
  background: var(--border-color);
}

/* Journal Trade Notes */
.trade-notes-container {
  margin-top: 20px;
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
}

.trade-note-item {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.trade-note-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.trade-note-symbol {
  color: var(--accent-color);
}

.trade-note-content {
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* Skeleton Loader */
.skeleton-loader {
  padding: 10px 0;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-color) 25%, var(--border-color) 50%, var(--bg-color) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}