﻿.watchlist-view body {
	font-family: "Noto Sans", sans-serif;
	background: #f4f4f4;
	margin: 0;
	padding: 20px;
  }
  
  .watchlist-view .container {
	height: 100%;
	display: flex;
	gap: 20px;
  }
  
  .watchlist-view .watchlist-panel, .symbols-panel {
	background: white;
	border-radius: 8px;
	padding: 20px;
	width: 500px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: column;
	max-height: 90vh;
	height: 100%;
	overflow: hidden;
	min-height:500px;
  }
  
  .watchlist-view .symbols-panel {
	flex: 1;
	max-width: 500px; /* ✅ restricts width */
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
  }
  
  .watchlist-view .symbols-panel li {
	display: flex;
	align-items: center;
	justify-content: space-between;
  }
  
  .watchlist-view .scrollable-list {
	  flex: 1 1 auto;
	  overflow-y: auto;
	  padding-right: 6px; /* optional for scrollbar spacing */
	  max-height: 100%;
	  scrollbar-gutter: stable;
	  min-height: 0;
  }
	
	/* Optional - fade scrollbars until hover (WebKit-based) */
	.watchlist-view .scrollable-list::-webkit-scrollbar {
		width: 6px;
		opacity: 0;
		transition: opacity 0.3s;
	}

	.watchlist-view .scrollable-list:hover::-webkit-scrollbar {
		opacity: 1;
	}

  .watchlist-view .symbol-info {
	display: flex;
	align-items: center;
	gap: 8px; /* ✅ spacing between icon and symbol */
  }

  .watchlist-view h3 {
	margin-top: 0;
  }
  
  .watchlist-view .inputs {
	margin: 10px 0;
	display: flex;
	gap: 10px;
  }
  
  .watchlist-view input[type="text"] {
	flex: 1;
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
  }
  
  .watchlist-view button {
	padding: 6px 10px;
	background-color: #3498db;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
  }
  
  .watchlist-view button:hover {
	background-color: #2980b9;
  }
  
  .watchlist-view ul {
	list-style: none;
	padding: 0;
	margin-top: 10px;
  }
  
  .watchlist-view li {
	padding: 6px 10px;
	margin-bottom: 6px;
	background: #ecf0f1;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
  }
  
  .watchlist-view li span.region {
	font-size: 0.9em;
	color: #888;
  }
  
  .watchlist-view .save-btn {
	margin-top: 10px;
	background-color: #2ecc71;
  }
  
  .watchlist-view .save-btn:hover {
	background-color: #27ae60;
  }
  
  .watchlist-view .delete-btn {
	  background: none;
	  border: none;
	  color: #d00;
	  font-size: 1rem;
	  cursor: pointer;
	  padding: 4px;
  }

  .watchlist-view .delete-btn:hover i {
	color: #a00;
  }
  .watchlist-view .typeahead-container {
	position: relative;
	width: 150px;
  }
  
  .watchlist-view .suggestions {
	position: absolute;
	top: 36px;
	left: 0;
	right: 0;
	z-index: 10;
	background: white;
	border: 1px solid #ccc;
	max-height: 300px;
	min-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
	border-radius: 0 0 4px 4px;
	list-style: none;
	margin: 0;
	padding: 0;
  }
  
  .watchlist-view .suggestions li {
	padding: 6px 10px;
	cursor: pointer;
  }
  
  .watchlist-view .suggestions li.highlighted {
	background-color: #d1f2eb;
  }
  
  .watchlist-view .suggestions li:hover {
	background-color: #f0f0f0;
  }

  .watchlist-view .highlight {
	background-color: #d1f2eb !important;
	transition: background-color 0.5s ease;
  }

  .watchlist-view .watchlist-panel li.selected {
	background-color: #d1f2eb;
	font-weight: bold;
	border-left: 4px solid #3498db;
  }

  .watchlist-view .watchlist-panel li {
	cursor: pointer;
	transition: background-color 0.2s;
  }
  
  .watchlist-view .watchlist-panel li:hover {
	background-color: #f0f8ff;
  }

.watchlist-view .save-footer {
  padding: 10px;
  border-top: 1px solid #ccc;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 2;
  text-align: right;
}

.watchlist-view .save-footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
} 

.watchlist-view .dual-input-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 10px 0;
}

.watchlist-view .inline-input {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.watchlist-view .inline-input input[type="text"] {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 80px;
}

.watchlist-view .inline-input.bulk {
  flex: 1;
}

.watchlist-view .inline-input.bulk input[type="text"] {
  width: 100%;
}
.watchlist-view .confirm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.watchlist-view .confirm-box {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-width: 300px;
  text-align: center;
}

.watchlist-view .confirm-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.watchlist-view .flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.watchlist-view .region-label {
  font-weight: bold;
  color: #444;
  margin-right: 6px;
}
.watchlist-view .region-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75em;
  font-weight: 600;
  color: white;
  background-color: #999;
  border-radius: 999px;
  margin-right: 8px;
  text-transform: uppercase;
}

.watchlist-view .region-pill.us {
  background-color: #2a6df4; // blue for US
}

.watchlist-view .region-pill.ca {
  background-color: #d82323; // red for CA
}

.watchlist-view .symbols-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.watchlist-view .symbols-panel-header-actions {
  display: flex;
  gap: 10px;
}

.watchlist-view .undo-btn .clear-btn {
  background: none;
  border: none;
  color: #555;
  font-weight: bold;
  font-size: 0.9em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.watchlist-view .undo-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.watchlist-view .clear-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.watchlist-view .undo-btn:hover, .clear-btn:hover {
  color: #000;
}

.watchlist-view .symbol-grid-panel {
  flex: 1;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}

.watchlist-view .scrollable-grid {
  overflow-y: auto;
  max-height: 500px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.watchlist-view .scrollable-grid table {
  width: 100%;
  border-collapse: collapse;
}

.watchlist-view .scrollable-grid th, .scrollable-grid td {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.watchlist-view .loading-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.watchlist-view .spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ccc;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.watchlist-view .sort-btn {
  background: none;
  border: none;
  font-size: 0.85em;
  color: #3498db;
  cursor: pointer;
  margin-left: 10px;
}

.watchlist-view .input-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watchlist-view .input-sort-row input[type="text"] {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.watchlist-view .sort-btn {
  background: none;
  border: none;
  font-size: 1.1em;
  color: #555;
  cursor: pointer;
  padding: 4px 8px;
}

.watchlist-view .sort-btn:hover {
  color: #000;
}

.watchlist-view .sentiment-pill {
  background-color: #f1c40f; /* default for neutral */
  font-weight: 600;
  font-size: 0.75em;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  color: #fff;
}

.watchlist-view .sentiment-pill.neutral {
  background-color: #f1c40f;
}

.watchlist-view .sentiment-pill.bullish {
  background-color: #2ecc71;
}

.watchlist-view .sentiment-pill.bearish {
  background-color: #e74c3c;
}

.watchlist-view .watchlist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.watchlist-view .watchlist-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.watchlist-view .sentiment-select select {
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.85em;
  margin-left: 8px;
}


