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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #fff;
  background-image: radial-gradient(ellipse at top, rgba(0, 212, 170, 0.03) 0%, transparent 50%), radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.header h1, .header h2 {
  font-size: 1.5rem;
}
.header h2 {
  opacity: 0.5;
}
@media (max-width: 767.9px) {
  .header h2 {
    display: none;
  }
}

.vibe-by {
  opacity: 0.5;
  flex: 1;
  text-align: right;
}

.chart-title-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.chart-title-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chart-title-field input[type=text] {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #222;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chart-title-field input[type=text]::placeholder {
  color: #ddd;
}
.chart-title-field input[type=text]:hover {
  border-color: #ddd;
}
.chart-title-field input[type=text]:focus {
  border-color: blue;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.date-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.date-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.date-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.date-field input[type=date] {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #222;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.date-field input[type=date]:hover {
  border-color: #ddd;
}
.date-field input[type=date]:focus {
  border-color: blue;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}
.date-field input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}

.date-reset {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #777;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  height: fit-content;
}
.date-reset:hover {
  border-color: #ddd;
  color: #222;
}
.date-reset:active {
  background: #ddd;
}

.date-shortcuts {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.date-shortcut {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  color: #777;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.date-shortcut:hover {
  border-color: blue;
  color: blue;
  background: rgba(0, 0, 255, 0.05);
}
.date-shortcut:active {
  background: rgba(0, 0, 255, 0.1);
}

.chart-setup {
  display: grid;
  grid-template-columns: calc(50% - 0.5rem) calc(50% - 0.5rem);
  gap: 1rem;
}
@media (max-width: 767.9px) {
  .chart-setup {
    grid-template-columns: 100%;
  }
}

.chart-setup-col {
  flex: 1;
}

.chart-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: 3.53rem;
}

.chart-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #777;
  transition: color 0.2s;
  user-select: none;
}
.chart-option:hover {
  color: #222;
}
.chart-option input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: blue;
  margin: 0;
}
.chart-option span {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
}

.chart-container {
  background: #fff;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.03);
}
.chart-container svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-container .chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  font-size: 1rem;
}
.chart-container .chart-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  z-index: 10;
  background: none;
}
.chart-container .chart-copy-btn:hover {
  background: #ccc;
  color: #fff;
  transform: scale(1.05);
}
.chart-container .chart-copy-btn:active {
  transform: scale(0.95);
}
.chart-container .chart-copy-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.chart-container:has(.chart-placeholder) .chart-copy-btn {
  display: none;
}

.chart-nav-container {
  height: 35px;
}
.chart-nav-container svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-nav-container .nav-x-axis .domain {
  display: none;
}
.chart-nav-container .nav-x-axis .tick line {
  stroke: #aaa;
}
.chart-nav-container .nav-x-axis .tick text {
  fill: #aaa;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
}
.chart-nav-container .nav-brush .overlay {
  cursor: crosshair;
}
.chart-nav-container .nav-brush .selection {
  cursor: move;
  rx: 0;
  ry: 0;
  fill: rgba(0, 0, 0, 0.2);
  stroke: rgba(0, 0, 0, 0);
  stroke-width: 0;
}
.chart-nav-container .nav-brush .handle {
  cursor: ew-resize;
  rx: 2;
  ry: 2;
  fill: rgba(0, 0, 0, 0.2666666667);
  stroke: rgba(0, 0, 0, 0.2666666667);
  stroke-width: 0;
  display: block;
  opacity: 0;
}

.chart-tooltip {
  position: fixed;
  background: #ddd;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  pointer-events: none;
  z-index: 1000;
  font-size: 0.85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.chart-tooltip .tooltip-date {
  color: #777;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  font-family: "JetBrains Mono", monospace;
}
.chart-tooltip .tooltip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.chart-tooltip .tooltip-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chart-tooltip .tooltip-symbol {
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  min-width: 50px;
}
.chart-tooltip .tooltip-value {
  font-family: "JetBrains Mono", monospace;
  margin-left: auto;
}

.assets-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.assets-list {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}

.asset-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.5rem;
  transition: border-color 0.2s;
}
.asset-item:hover {
  border-color: #ddd;
}

.asset-color {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}
.asset-color::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.asset-color::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.asset-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.asset-symbol {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
}

.asset-exchange {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #ddd;
  background: #ddd;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.asset-name {
  font-size: 0.85rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-move-up {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #777;
  cursor: pointer;
  transition: all 0.2s;
}
.asset-move-up svg {
  width: 16px;
  height: 16px;
}
.asset-move-up:hover:not([style*="cursor: not-allowed"]) {
  background: rgba(0, 0, 255, 0.1);
  border-color: blue;
  color: blue;
}

.asset-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
}
.asset-remove svg {
  width: 16px;
  height: 16px;
}
.asset-remove:hover {
  background: rgba(255, 69, 58, 0.1);
  border-color: #ff453a;
  color: #ff453a;
}

.search-container {
  position: relative;
}

.search-input-wrapper {
  position: relative;
}
.search-input-wrapper input[type=text] {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  padding-right: 3rem;
  color: #222;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input-wrapper input[type=text]::placeholder {
  color: #ddd;
}
.search-input-wrapper input[type=text]:hover {
  border-color: #ddd;
}
.search-input-wrapper input[type=text]:focus {
  border-color: blue;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.search-spinner {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-top-color: blue;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}
.search-spinner.active {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: #ddd;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.2s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.search-results.active {
  max-height: 400px;
  opacity: 1;
}

.search-result-item {
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  transition: background 0.15s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover, .search-result-item.active {
  background: #aaa;
}
.search-result-item .result-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.search-result-item .result-symbol {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: blue;
}
.search-result-item .result-exchange {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: #ddd;
  background: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.search-result-item .result-name {
  font-size: 0.85rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item .result-type {
  font-size: 0.7rem;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .container {
    padding: 1rem;
  }
  .header h1 {
    font-size: 1.5rem;
  }
  .date-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .chart-options {
    gap: 1rem;
    justify-content: flex-start;
  }
  .asset-info {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .asset-name {
    width: 100%;
    order: 3;
  }
}

/*# sourceMappingURL=style.css.map */
