body {
        font-family: Arial, sans-serif;
        background: linear-gradient(135deg, #0a001a 0%, #1a0033 25%, #2d0a4e 50%, #0f0020 75%, #060010 100%);
        color: #f0f0f0;
        margin: 0;
        padding: 20px;
        overflow-x: hidden;
    }

    h1 {
    text-align: center;
    color: #0ff; 
    font-size: 32px;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.8), 0 0 60px rgba(127, 57, 251, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}
    
    h3 {
        text-align: center;
        color: #0ff; 
        font-size: 32px;
    }

@media (max-width: 480px) {
  h1 {
    font-size: 29px;
  }
}

@media (max-width: 480px) {
  h3 {
    font-size: 27px;
  }
}

    #main-container {
        display: flex;
        justify-content: space-between;
        gap: 1%;
        margin-top: 30px;
    }

    .container {
        width: 49%;
        border-radius: 8px;
        border: 2px solid #0ff;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        background: #0d0d20;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
        padding: 10px;
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }

    th, td {
        padding: 10px;
        border-bottom: 1px solid #f0f0f0; 
        text-align: left;
    }

    thead tr {
    background: linear-gradient(90deg, #0ff, #8A00C4);
    }

  th {
    background: transparent;
    color: #000;
     }

    tr:hover {
        background-color: #9215e6cc; 
        color: #f0f0f0; 
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .scrollable {
        height: 400px;
        overflow-y: auto;
        flex-grow: 1;
    }

    #tempoSim, #currentEvent, #guideLink, #countdown, #footer-note, #money-object {
        text-align: center;
        font-size: 18px;
        margin-bottom: 20px;
        color: #f0f0f0; 
    }

    #guideLink {
    margin-bottom: 20px;
}

    #guideLink a {
    color: #0ff; 
    text-decoration: none; 
    font-weight: bold; 
}

#guideLink a:hover {
  text-decoration: underline;
}

#countdown a { 
    color: #c169ff; 
    text-decoration: none; 
    font-weight: bold; 
}

#countdown a:hover { 
  text-decoration: underline;
}

#viewAllLink {
  display: none;
  margin-left: 10px;
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
}

#viewAllLink:hover {
  text-decoration: underline;
}

.search-icon {
    color: #0ff;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

    #rewards {
        margin-top: 30px;
        text-align: center;
    }

    #rewards-dropdown {
        background: #white; 
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        max-height: 400px;
        width: 80%;
        margin: 0 auto;
    }

.console-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 3px solid #0ff;
    display: block;
    margin: 10px auto;
    background: #f2f5f5;
}

.console-title {
    background: linear-gradient(90deg, #0ff, #8A00C4);
    color: #000;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #0ff;
}

.console-message {
  text-align: center;
  margin-top: 40px;
  line-height: 1.6;
}

.memorial-mode,
.memorial-mode #console-content,
.memorial-mode #sim-modal-content {
  background: #000 !important;
}

    .hidden {
    display: none;
}

.emoji {
  height: 1em;
  width: 1em;
  vertical-align: -0.1em;
}

.join-label {
  display: inline-block;
  background: linear-gradient(to right, #facc15, #f472b6);
  color: #1a1a1a;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 16px;
  font-size: 0.75em;
  margin-left: 8px;
  vertical-align: middle;
}

.lot-admit-icon {
    margin-right: 4px;
    margin-left: 4px;
    display: inline-block;
}

@media (max-width: 500px) {

  .lot-admit-icon {
    margin-left: 0px;
    margin-right: 0px;
  }
}

.badge {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  image-rendering: auto;
}

.mayor-icon {
    margin-right: 4px;
    margin-left: 4px;
    display: inline-block;
    filter: brightness(1) drop-shadow(0 0 1px #fff);
}

@media (max-width: 500px) {

  .mayor-icon, .badge {
    margin-left: 0px;
    margin-right: 0px;
  }
}

    .description-container {
        max-width: 260px; 
        word-wrap: break-word; 
        white-space: pre-wrap; 
        margin: 0 auto;
        padding: 15px;
        border: 1px solid #0ff;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
        border-radius: 10px;
        box-shadow: 0 0 10px #a855f750;
        text-align: left;
    }
        
@media (max-width: 768px) {
    #main-container, #bottom-container {
        flex-direction: column;
        align-items: center;
    }

    .container {
        width: 95%;
        margin: 0 auto 20px auto;
    }
    
    #bottom-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #console-container {
        order: 1;
    }

    #rewards-container {
        order: 2;
    }
}

    table tr {
        position: relative;
    }

    table tr:hover::after {
        content: '';
        position: absolute;
        width: 20px; 
        height: 20px; 
        background-image: url('https://makinmagic.github.io/XenoSO/images/plumbob.png'); 
        background-size: contain;
        background-repeat: no-repeat;
        right: 10px; 
        top: 10px; 
        animation: fade-in 0.3s; 
    }

    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

#lots-title, #players-title {
    margin-bottom: 10px;
    margin-top: 20px;
}

    #lot-filter {
    display: flex;
    justify-content: space-around;
    margin: 10px;
    color: #0ff;
}
#lot-filter i {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s ease;
}
#lot-filter i:hover {
    transform: scale(1.2);
    color: #0ff;
}

.event-label {
  display: inline-block;
  background: linear-gradient(to right, #facc15, #f472b6);
  color: #1a1a1a;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85em;
  margin-bottom: 8px;
}

.event-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #ec4899, #facc15, #ec4899);
  margin: 10px 0;
}

.event-card {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
  border: 1px solid #0ff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 0 10px #a855f750;
  line-height: 1.5;
  max-width: 600px;
  margin: auto;
}

#dark-mode-toggle i {
    font-size: 24px;
}

body.dark-mode {
    background-color: #1c1c1c;
    color: #f1f1f1;
}

.dark-mode .container {
    background-color: #333;
    color: #f1f1f1;
    border: #888;
}

.dark-mode th {
    background-color: #444;
    color: white;
}

.dark-mode tr:hover {
    background-color: #555;
}

.dark-mode h1, 
.dark-mode h3, 
.dark-mode #tempoSim, 
.dark-mode #currentEvent, 
.dark-mode #guideLink, 
.dark-mode #guideLink a,
.dark-mode #countdown,
.dark-mode #footer-note,
.dark-mode #money-object,
.dark-mode .search-icon {
    color: #f1f1f1;
}

.dark-mode #lot-filter i {
    color: #f1f1f1; 
}

.dark-mode #lot-filter i:hover {
    color: #f1f1f1; 
}

.dark-mode tr:hover {
    background-color: #444; 
    color: #f1f1f1; 
}

.dark-mode .console-title {
    background-color: #444;
    color: #ffffff;
    border-bottom: 1px solid #eee;
}

.dark-mode .description-container {
    background-color: transparent; 
    color: #f1f1f1;
}

.dark-mode .console-img {
    border-color: #888 !important;
}

#events-container a {
    color: #0ff;
    text-decoration: underline;
    font-weight: bold;
}

body.dark-mode #events-container a {
    color: #f1f1f1;
}

#console-content a, #sim-modal a {
    color: #0ff;
    text-decoration: underline;
    font-size: 14px;
    display: inline-block;
    margin-top: 3px;
    text-align: center;
}

body.dark-mode #console-content a {
    color: #f1f1f1;
}

.dashboard-icon {
    width: 40px; 
    height: auto; 
    vertical-align: middle; 
}

.mirrored {
    transform: scaleX(-1); 
}

.icon::before {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.sim-name {
  cursor: pointer;
  text-decoration: none;
}

.sim-name:hover {
  text-decoration: underline;
}

#sim-modal .close {
  color: #0ff;
  padding: 4px 10px;
  font-weight: bold;
}

.sims-online-icon::before {
    font: var(--fa-font-solid);
    content: "\f500";
}

.active-lots-icon::before {
    font: var(--fa-font-solid);
    content: "\f015";
}

.upcoming-events-icon::before {
    font: var(--fa-font-solid);
    content: "\f073";
}

#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #0ff;
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #ff00ff;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(13,13,32,0.6);
}

.modal-content {
  background-color: rgba(13,13,32);
  margin: 4% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  color: #fff;
  max-width: 600px;
  text-align: center;
  border: 2px solid #0ff;
}

#sim-modal .modal-content {
  margin-top: 5% !important;
}

.close {
  color: #0ff;
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.close:hover {
  color: #ff00ff;
}

.tab-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
  gap: 1em;
}

.tab-btn {
  padding: 8px 16px;
  font-size: 1em;
  background-color: rgba(0, 255, 255, 0.12);
  color: #0ff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.tab-btn.active {
  background: linear-gradient(135deg, #0ff, #ff00ff);
  color: #000;
}

.tab-content {
  display: none;
}

/* Job Scheduler Modal */
#jobSchedulerModal .modal-content {
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(13,13,32);
  border: 2px solid #0ff;
  max-width: 600px;
  width: 80%;
  text-align: center;
  font-size: 16px;
}

#job-scheduler-container {
  font-family: inherit;
  font-size: inherit;
  color: #fff;
}

#job-scheduler-container .panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.6em;
  font-weight: bold;
  color: #0ff;
  margin-bottom: 20px;
}

#job-scheduler-container .panel-header span:first-child {
  display: flex;
  align-items: center;
  font-size: inherit;
  line-height: 1;
}

.job-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.job-btn {
  padding: 8px 16px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  background-color: rgba(0, 255, 255, 0.12);
  color: #0ff;
  border: 1px solid rgba(0, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.job-btn:hover {
  background-color: rgba(0, 255, 255, 0.3);
  color: #fff;
  border-color: rgba(0, 255, 255, 0.6);
}

.job-btn.active {
  background: linear-gradient(135deg, #0ff, #ff00ff);
  color: #000;
  border-color: #0ff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.job-info {
  border-top: 1px solid #0ff;
  padding-top: 15px;
  font-size: 1.125em;
  line-height: 1.6;
  color: white;
  text-align: center;
}

.job-countdown {
  color: #00ff00;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 1.125em;
}

@media (max-width: 500px) {
  .job-btn {
    font-size: 11px;
    padding: 6px 8px;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.job-credit {
  margin-top: 20px;
  font-size: 0.9em;
  color: #aaa;
  text-align: center;
}

.job-link {
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
}

.job-link:hover {
  text-decoration: underline;
}

#console-content a.sim-note-link,
.sim-note-link {
  color: #0ff;
  text-decoration: none;
  font-size: inherit;
  font-weight: bold;
}

#console-content a.sim-note-link:hover,
.sim-note-link:hover {
  text-decoration: underline;
}

#console-content a.event-flag-link {
  text-decoration: none;
  font-size: inherit;
 }

#console-content a.event-flag-link:hover {
  text-decoration: underline;
}

/* span[title="Mentor"],
span[title="Admin"] {
  filter: brightness(1) drop-shadow(0 0 2px #fff);
  margin-left: 2px;
} */

/* MO Charts */

#moModal .modal-content {
  max-width: 650px;
  margin: 4% auto;
  padding-left: 16px;
  padding-right: 16px;
}

.mo-bar-wrapper {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.mo-note {
  text-align: center;
  color: #aaa;
  font-size: 0.85em;
  margin-top: 12px;
}

.mo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  margin: 11px 0;
}

.mo-label {
  min-width: 90px;
  text-align: left;
  font-weight: bold;
  font-size: 20px;
  padding-right: 0;
}

.mo-bar {
  position: relative;
  height: 42px;
  border-radius: 10px;
}

.mo-bar span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}

html, body {
  overflow-x: hidden;
}

    /* Stars background - used with permission from Sorta */
    .stars {
      position: fixed;
      width: 100%;
      height: 100%;
      z-index: -1;
      top: 0;
      left: 0;
      overflow: hidden;
    }
    
    .star {
      position: absolute;
      background-color: white;
      border-radius: 50%;
      opacity: 0.8;
    }
    
    @keyframes twinkle {
      0%, 100% { opacity: 0.2; }
      50% { opacity: 1; }
    }

.console-icon::before {
    font: var(--fa-font-solid);
    content: "\f05a";
}
