*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  margin: 0;
  font-family: 'Inter', monospace;
  background-color: #1a1a1a;
  color: white;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.leveraged-etfs-panel {
  height: 175px;
  overflow-y: auto;
  margin-top: 5px;
}

.single-source-container {
  height: 100%;
}

.panel-wrapper {
  width: 100%;
  height: 100%;
  background: var(--color-bg-base);
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-alt);
  user-select: none;
  padding: 2px 0px 0px 6px;
  margin-bottom: 5px;
  width: 100%;
  box-sizing: border-box;
}

.panel-child {
  padding: 0px 6px;
  height: 100%;
}

.panel-header .drag-handle {
  flex: 1;
  cursor: move;
  color: var(--color-text-dim);
  font-size: 12px;
  font-family: 'Quantico', sans-serif;
  letter-spacing: 0.3px;
}

.popout-panel .panel-header .drag-handle {
  -webkit-app-region: drag;
}

.popout-panel .panel-header .panel-controls {
  -webkit-app-region: no-drag;
}

.panel-header .panel-controls {
  display: flex;
  align-items: center;
}

.panel-header .panel-controls button {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-header .panel-controls button img {
  width: 14px;
  height: 14px;
}

.panel-header .panel-controls button:hover {
  background: var(--color-bg-hover);
  border-radius: 4px;
  transform: translateY(-1px);
}

.panel-toolbar {
  display: flex;
  align-items: center;
}

.panel-toolbar button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 32px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 2px;
  box-sizing: border-box;
}

.panel-toolbar button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.panel-toolbar button img {
  width: 20px;
  height: 20px;
}

/* Remove the container z-index styles since we'll use portals */
.stock-stop-menu-container,
.stock-close-menu-container {
  position: relative;
}

/* Navbar */
.navbar-container {
  background-color: #090909;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #e0e0e0;
  font-family: 'Roboto', sans-serif;
  border-bottom: 1px solid #333;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  user-select: none;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  -webkit-app-region: no-drag;
  gap: 6px;
}

.navbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  -webkit-app-region: no-drag;
  gap: 6px;
}

.navbar-logo {
  width: 24px;
  height: 24px;
  filter: invert(1);
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
}

.navbar-logo:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.draggable-center-area {
  flex-grow: 1;
  height: 100%;
  -webkit-app-region: drag;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-center {
  display: flex;
  align-items: center;
}

.window-controls {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.window-control-button {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.window-control-button:hover {
  background: #333;
  color: #fff;
}

.window-control-button.close-button:hover {
  background: #ff4800;
  color: #fff;
}

.window-control-button img {
  width: 12px;
  height: 12px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
