* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: "Segoe UI", sans-serif;
  background-color: #181b2e;
  color: #f5f6fa;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  min-height: 100vh;
}


.painelCripto {
  background: #1f2235;
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  gap: 16px;
  padding: 20px;
}


.menuLateral {
  flex: 0 0 300px;
  background: #24293e;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.menuLateral h2 {
  margin-bottom: 14px;
  color: #4f6ef7;
  font-size: 1.3rem;
}


.filtroMoedas {
  padding: 9px 12px;
  border-radius: 6px;
  border: none;
  background: #2e3350;
  color: #f5f6fa;
  font-size: 1rem;
  margin-bottom: 14px;
}

.filtroMoedas:focus {
  background-color: #384067;
  outline: none;
}


.listaCripto {
  list-style: none;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #4f6ef7 transparent;
}

.listaCripto::-webkit-scrollbar {
  width: 7px;
}

.listaCripto::-webkit-scrollbar-thumb {
  background-color: #4f6ef7;
  border-radius: 3px;
}

.listaCripto li {
  display: flex;
  justify-content: space-between;
  padding: 9px 6px;
  border-bottom: 1px solid #2f3249;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 1rem;
  user-select: none;
}

.listaCripto li:hover {
  background-color: #3a3f6f;
}

.listaCripto li:last-child {
  border-bottom: none;
}


.conteudoPrincipal {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}


.cabecalho {
  flex-shrink: 0;
}

.cabecalho h1 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.cabecalho p {
  font-size: 1rem;
  color: #a4a7b7;
}


.painel {
  background: #24293e;
  border-radius: 10px;
  padding: 18px;
  color: #f5f6fa;
  display: flex;
  flex-direction: column;
}


.painelGrafico {
  flex-grow: 1; 
}

.painelGrafico canvas {
  width: 100% !important;
  height: 350px !important;
}
