/* Stock Stalker Scanner Styles */

.scanner-status-bar {
  padding: 12px 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.status-indicator {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  background: #feebc8;
  color: #744210;
  border: 1px solid #f6ad55;
}

.status-indicator.scanning {
  background: #bee3f8;
  color: #2a4365;
  border-color: #90cdf4;
}

.status-indicator.complete {
  background: #c6f6d5;
  color: #22543d;
  border-color: #9ae6b4;
}

.status-dot {
  font-size: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.watchlist-info {
  font-size: 11px;
  color: #4a5568;
  font-weight: 500;
}

.scanner-controls {
  padding: 16px 30px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  background: #3182ce;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover {
  background: #2b6cb0;
}

.btn-primary:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

.btn-secondary {
  background: #edf2f7;
  color: #2d3748;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-toggle {
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-toggle.active {
  background: #c6f6d5;
  color: #22543d;
  border-color: #9ae6b4;
}

.btn-icon {
  font-size: 14px;
}

.preset-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 11px;
  color: #4a5568;
  font-weight: 600;
}

.preset-btn {
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.preset-btn:hover {
  background: #edf2f7;
}

.preset-btn.active {
  background: #3182ce;
  color: #ffffff;
  border-color: #3182ce;
}

.filter-controls, .sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label, .sort-label {
  font-size: 11px;
  color: #4a5568;
  font-weight: 600;
}

.filter-select {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  font-family: inherit;
  color: #2d3748;
  cursor: pointer;
}

.sort-btn {
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.sort-btn.active {
  background: #3182ce;
  color: #ffffff;
  border-color: #3182ce;
}

.ready-message {
  padding: 44px 30px;
  background: #f7fafc;
  text-align: center;
  color: #4a5568;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ready-icon {
  font-size: 18px;
}

.ready-message strong {
  color: #3182ce;
}

.results-container {
  padding: 24px 30px;
  background: #f7fafc;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
}

.results-count {
  font-size: 12px;
  color: #4a5568;
}

.table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.scanner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.scanner-table th {
  background: #f7fafc;
  color: #4a5568;
  font-weight: 600;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.scanner-table td {
  padding: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  color: #2d3748;
}

.scanner-table tbody tr:hover {
  background: #f7fafc;
}

.scanner-table .symbol-cell {
  font-weight: 700;
  color: #3182ce;
  text-align: left;
}

.scanner-table .price-cell {
  font-weight: 600;
}

.scanner-table .change-positive {
  color: #276749;
  font-weight: 600;
}

.scanner-table .change-negative {
  color: #c53030;
  font-weight: 600;
}

.signal-bullish {
  color: #276749;
  font-weight: 700;
}

.signal-bearish {
  color: #c53030;
  font-weight: 700;
}

.signal-neutral {
  color: #4a5568;
}

.score-cell {
  font-weight: 700;
  background: #edf2f7;
}

.score-high {
  color: #276749;
}

.score-medium {
  color: #744210;
}

.score-low {
  color: #c53030;
}

.placeholder-row td {
  padding: 44px;
  color: #a0aec0;
  font-size: 13px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner-dots {
  display: flex;
  gap: 8px;
}

.spinner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3182ce;
  animation: spinnerBounce 1.4s ease-in-out infinite;
}

.spinner-dot:nth-child(1) { animation-delay: 0s; }
.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes spinnerBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.loading-text {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

.loading-progress {
  font-size: 12px;
  color: #718096;
}

.settings-panel {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 400px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 100;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.settings-title {
  font-size: 14px;
  color: #1a202c;
  font-weight: 700;
}

.settings-close {
  background: none;
  border: none;
  color: #4a5568;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}

.settings-close:hover {
  color: #1a202c;
}

.setting-item {
  margin-bottom: 14px;
}

.setting-label {
  font-size: 11px;
  color: #4a5568;
  margin-bottom: 6px;
  font-weight: 600;
}

.setting-select, .setting-input {
  width: 100%;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  font-family: inherit;
  color: #1a202c;
}

.setting-input:focus, .setting-select:focus {
  outline: none;
  border-color: #3182ce;
}

.nav-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #edf2f7;
  color: #4a5568;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid #e2e8f0;
}

.nav-link:hover {
  background: #e2e8f0;
}
