* {
  padding: 0;
  margin: 0;
}


html, body{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body{
  display: flex;
  flex-direction: column;
  background-color: #2D2D2D;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.text{
  color: #A3A3A3;
}

.container{
  background-color: #1C1C1C;
  border-radius: 8px;
  padding: 0px;
}

nav{
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #1C1C1C;
  height: 50px;
  display: flex;
  align-items: center;
  z-index: 10;
}

li{
  list-style-type: none;
}

nav li{
  margin-left: 60px;
}

ul{
  display: flex;
  margin: 0px;
  flex-grow: 1;
}

#main-container {
  flex: 1;
  display: grid;
  /* minmax(0, …) sorgt dafür, dass die Spalten wirklich schrumpfen dürfen */
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  min-height: 0;
}

#left-container {
  display: flex;
  flex-direction: column;
  margin: 4px 0 4px 4px;
  gap: 4px;
  min-height: 0; /* damit der Chart innerhalb schrumpfen darf */
  min-width: 0;

}

#searchbar {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

#chart {
  flex: 1;      /* nimmt den ganzen restlichen Platz */
  min-height: 0;
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

#right-container{
  display: grid;
  margin: 4px;
  gap: 4px;
  min-width: 0;
}

.searchbar-item{
  background: none;
  border: none;
  border-radius: 8px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-button:hover, #timeframe:hover{
  background-color: #2D2D2D;
}

#lupe {
  font-size: 22px;   /* oder 20px, 24px, was dir gefällt */
}

#search-button{
  width: 100px;
  margin-left: 2px;
  gap: 4px;
}

#timeframe_p{
  width: 40px;
}

#timeframe-box {
  position: absolute;       /* damit sie über anderen Elementen liegt */
  background-color: #1C1C1C;
  flex-direction: column;   /* nur relevant, wenn du display:flex nutzt */
  z-index: 20;
  width: 160px;
  overflow: hidden;
  border-radius: 4px;
  display: none;
  top: 100%;
  left: 102px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#timeframe-box li {
  list-style-type: none;
  cursor: default;
  color: #A3A3A3;
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
}

#timeframe-box li:hover {
  background-color: #2D2D2D;
}

#item-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

#search-box{
  display: none;
  position: absolute;
  z-index: 20;
  width: 600px;
  height: 320px;
  border: 1px solid #424242;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  top: 100%;
  background-color: #2D2D2D;
  border-radius: 4px;
  padding: 10px;
}

#search-input{
  background-color: #2D2D2D;
  border: 1px solid #424242;
  border-radius: 999px;
  width: 566px;
  height: 40px;
  outline: none;
  padding: 0 16px;
  margin-bottom: 12px;
}

#search-input::-webkit-search-decoration,
#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-results-button,
#search-input::-webkit-search-results-decoration {
  display: none;}

#search-input:focus, #search-input:hover {
  border-color: #a3a3a3aa;
}

#search-results{
  height: 270px;
  border-top: 1px solid #424242;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#search-results::-webkit-scrollbar {
  display: none;
}

#search-results li{
  padding: 14px 8px 14px 8px;
  border-radius: 12px;
  color: #A3A3A3;
}

#search-results li:hover{
  background-color: #424242;
}

#search-results li.no-results {
  cursor: default;
}

#search-results li.no-results:hover {
  background-color: #2D2D2D;
}