* {
  outline: 0;
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html,
html body {
  min-height: 100%;
}

html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Satoshi", sans-serif;
  overflow-y: scroll;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-size-adjust: none;
  background-color: #111111;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  display: block;
  position: relative;
  justify-content: center;
}

button {
  cursor: pointer;
  background: none;
}
button:disabled {
  cursor: not-allowed;
}

a {
  text-decoration: none;
  color: inherit;
}

iframe {
  border: 0;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  margin-top: 52px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 52px;
}

.overview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.currency-name {
  font-size: 16px;
  font-weight: 500;
  color: #8b8b8b;
  max-width: 320px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.portfolio-value {
  font-size: 36px;
  font-weight: 500;
  color: #ffffff;
}

.portfolio-change {
  font-size: 16px;
  font-weight: 500;
  color: #8b8b8b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.change-value {
  font-size: 16px;
  font-weight: 500;
  color: #8b8b8b;
}

.change-percentage {
  font-size: 16px;
  font-weight: 500;
  color: #8b8b8b;
  background-color: #8b8b8b20;
  padding: 4px 8px;
  border-radius: 4px;
}

.change-value.positive {
  color: #21e56f;
}

.change-value.negative {
  color: #eb3742;
}

.change-percentage.positive {
  color: #21e56f;
  background-color: #21e56f16;
}

.change-percentage.negative {
  color: #eb3742;
  background-color: #eb374216;
}

.range-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.range-button {
  width: 40px;
  height: 40px;
  font-size: 12px;
  font-weight: 500;
  color: #505050;
  background-color: #151515;
  border: 1px solid #181818;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.range-button:hover {
  border: 1px solid #222222;
  color: #a9a9a9;
}

.range-button.active {
  border: 1px solid #222222;
  color: #a9a9a9;
}

.holdings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  padding: 0 16px;
  align-items: center;
}

.holding-item {
  display: flex;
  align-items: center;
  padding: 1.4rem;
  background-color: #151515;
  border: 1px solid #181818;
  border-radius: 24px;
  width: 400px;
  transition: all 0.2s ease-in-out;
  cursor: grab;
  position: relative;
}

.holding-item:hover {
  border: 1px solid #222222;
}

.coin-logo {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  border-radius: 50%;
  object-fit: cover;
  background-color: #222222;
}

.coin-info {
  flex: 1;
  font-size: 15px;
}

.coin-name {
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.coin-amount {
  color: #a9a9a9;
  font-size: 15px;
}

.coin-value {
  color: #a9a9a9;
  text-align: right;
  font-size: 15px;
}

.change {
  font-size: 15px;
}

.change.positive {
  color: #21e56f;
}

.change.negative {
  color: #eb3742;
}

.change.neutral {
  color: #8b8b8b;
}

.coin-value .value {
  margin-bottom: 0.3rem;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
}

.holding-item.dragging {
  position: fixed;
  z-index: 1000;
  background-color: #222222;
  pointer-events: none;
  cursor: grabbing;
  transition: none;
  will-change: transform;
}

.holding-item.dragging.dropping {
  transition: all 300ms cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 1;
  box-shadow: none;
  transform: scale(1);
}

.holding-item.placeholder {
  opacity: 0.4;
  background-color: #151515;
  border: 1px dashed #333;
  box-sizing: border-box;
  pointer-events: none;
  transition: all 0.2s ease;
}

@keyframes placeholderMove {
  0% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.placeholder {
  animation: placeholderMove 0.2s ease;
}

.holding-item:active {
  cursor: grabbing;
}

.toggle-switch {
  position: relative;
  display: none;
  width: 42px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #202020;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #8b8b8b;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.edit-mode .holding-item {
  display: flex;
  align-items: center;
}

.edit-mode .coin-value {
  display: none;
}

.edit-mode .toggle-switch {
  display: block;
  margin-left: auto;
}

.edit-mode .disabled .coin-logo,
.edit-mode .disabled .coin-info {
  opacity: 0.2;
}

.holding-item.hidden {
  display: none;
}

.coin-value {
  transition: opacity 0.3s ease;
}

.toggle-switch {
  transition: opacity 0.3s ease;
}

.tooltip {
  z-index: 1;
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222222de;
  color: #ffffff;
  font-weight: 450;
  letter-spacing: 0.5px;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  opacity: 0;
}

.range-button:hover .tooltip {
  opacity: 1;
}

.currency-name:hover {
  opacity: 0.8;
}

.currency-name:hover .tooltip {
  opacity: 1;
}

.tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #222222de;
}
