@import url('https://fonts.googleapis.com/css?family=Inter:700|Inter:400');

:root {
  --text-50: #0d0d0d;
  --text-100: #1a1a1a;
  --text-200: #333333;
  --text-300: #4d4d4d;
  --text-400: #666666;
  --text-500: #808080;
  --text-600: #999999;
  --text-700: #b3b3b3;
  --text-800: #cccccc;
  --text-900: #e6e6e6;
  --text-950: #f2f2f2;

  --background-50: #00051a;
  --background-100: #000933;
  --background-200: #001366;
  --background-300: #001c99;
  --background-400: #0025cc;
  --background-500: #002fff;
  --background-600: #3358ff;
  --background-700: #6682ff;
  --background-800: #99acff;
  --background-900: #ccd5ff;
  --background-950: #e5eaff;

  --primary-50: #180117;
  --primary-100: #30032f;
  --primary-200: #61055e;
  --primary-300: #91088d;
  --primary-400: #c20abc;
  --primary-500: #f20deb;
  --primary-600: #f53def;
  --primary-700: #f76ef3;
  --primary-800: #fa9ef7;
  --primary-900: #fccffb;
  --primary-950: #fee7fd;

  --secondary-50: #0d0d0c;
  --secondary-100: #1b1b18;
  --secondary-200: #353531;
  --secondary-300: #505049;
  --secondary-400: #6a6a62;
  --secondary-500: #85857a;
  --secondary-600: #9d9d95;
  --secondary-700: #b6b6af;
  --secondary-800: #cececa;
  --secondary-900: #e7e7e4;
  --secondary-950: #f3f3f2;

  --accent-50: #060614;
  --accent-100: #0d0c27;
  --accent-200: #19174f;
  --accent-300: #262376;
  --accent-400: #332f9d;
  --accent-500: #3f3bc4;
  --accent-600: #6662d0;
  --accent-700: #8c89dc;
  --accent-800: #b2b0e8;
  --accent-900: #d9d8f3;
  --accent-950: #ecebf9;

  --text: #ffffff;
  --background: #00082b;
  --primary: #f75ff2;
  --secondary: #ababa4;
  --accent: #8380d9;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header and Footer */

.footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--background), var(--accent-300));
}

.header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to left, var(--background), var(--accent-300));
  padding: 0 15px;
  position: relative;
}

/* Navigation */
.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: var(--background-100);
  width: 200px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 1000;
}

.nav.open {
  display: flex;
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 50px;
  width: 100%;
  padding-left: 20px;
  background: none;
  border-top: 1px solid var(--text-800);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* Header container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 15px;
}


.nav-item:hover {
  background-color: var(--secondary);
  color: var(--text-200);
}

/* Main Content */
.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
  /*overflow: auto;*/
  /*min-height: 100vh;*/
}

.lsidebar,
.rsidebar {
  display: none;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
  flex: 1;
}
.main,
.search_form,
#chart-container {
  min-width: 0;
}
/* Logo */
.logo {
  font-weight: 700;
  font-size: 20px;
}

.menu-toggle {
  display: block;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
}
/* Search Form */
.search_form {
  display: flex;
  flex-direction: column;
  background-color: var(--background-100);
  width: 100%;
  padding: 15px;
  gap: 15px;
  overflow-y: auto;
  max-height: 80vh;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

input,
select {
  color: var(--text-200);
}

option {
  color: var(--text-100);
}

#submit {
  background-color: var(--secondary);
  padding: 10px;
}

/* Chart */
#chart-container {
  position: relative;
  width: 100%;
  min-height: 60vh;
  max-height: 90vh;
  background-color: var(--background-100);
  flex: 1;
}

#myChart {
  display: block;
  width: 100%;
  height: 100%;
}

/* Error */
#error-container {
  height: 1.5em;
  min-height: 1.5em;
  padding: 5px 20px 0 20px;
}

#error {
  visibility: hidden;
  color: red;
}

/* Media Buttons */
#media-toggle-buttons {
  padding: 10px 0;
  overflow-y: auto;
}

.media-toggle-button {
  display: flex;
  align-items: center;
  background-color: var(--accent-300);
  border: 1px solid #ccc;
  color: var(--text-800);
  margin-bottom: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  text-align: left;
  justify-content: flex-start;
  padding: 4px 8px;
  gap: 6px;
}

.media-toggle-button:hover {
  background-color: var(--secondary);
  color: var(--text-200);
}

.media-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.media-toggle-button.active {
  background-color: var(--secondary);
  color: var(--text-200);
}

.media-toggle-button.active:hover {
  background-color: var(--accent-300);
  color: var(--text-800);
}

/* Responsive Layout */
@media (min-width: 1200px) {
  body {
    height: 100%;
    margin: 0;
  }
      .header {
    justify-content: flex-start;
    padding: 0;
  }
      .logo {
        margin-left: 20px;
        margin-right: 40px;
      }

  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    width: auto;
    height: 60px;
  }

  .nav-container {
    flex-direction: row;
  }

  .menu-toggle {
    display: none;
  }


  .nav-item {
    justify-content: center;
    padding-left: 0;
    border: none;
    height: 60px;
    width: 100px;
  }

  .content {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 100vw;
    min-height: calc(100vh - 60px);
  }

  .lsidebar,
  .rsidebar {
    display: block;
    width: 50px;
    flex-shrink: 0;
  }

  .main {
    flex-direction: row;
    gap: 40px;
    padding: 10px;
  }

  .search_form,
  .form-wrapper {
    width: 300px;
    max-height: none;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  #chart-container {
    height: 100%;
  }
}
