/* Theme Variables */
:root {
  /* Light Theme (Default) */
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8f9fa;
  --text-primary: #333;
  --text-secondary: #666;
  --text-tertiary: #888;
  --text-muted: #999;
  --border-color: #ddd;
  --border-light: #e9ecef;
  --border-medium: #f0f0f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --accent-primary: #026cdf;
  --accent-hover: #0256b3;
  --accent-active: #024a94;
  --accent-light: #e3f2fd;
  --success-bg: #e8f5e9;
  --success-text: #2e7d32;
  --success-border: #a5d6a7;
  --error-bg: #ffebee;
  --error-text: #c62828;
  --error-border: #ef9a9a;
  --warning-bg: #fff3e0;
  --warning-text: #e65100;
  --warning-border: #ff9800;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #3a3a3a;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-tertiary: #888;
  --text-muted: #666;
  --border-color: #444;
  --border-light: #3a3a3a;
  --border-medium: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --accent-primary: #4a9eff;
  --accent-hover: #3a8eef;
  --accent-active: #2a7edf;
  --accent-light: #1a3a5f;
  --success-bg: #1a3a2a;
  --success-text: #66bb6a;
  --success-border: #2e7d32;
  --error-bg: #3a1a1a;
  --error-text: #ef5350;
  --error-border: #c62828;
  --warning-bg: #3a2a1a;
  --warning-text: #ffa726;
  --warning-border: #ff9800;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding: 20px 20px 10px 20px;
}

header h1 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Tabs Navigation */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  z-index: 101;
  padding: 10px 0;
  margin-top: -10px;
  box-shadow: 0 2px 4px var(--shadow);
}

.tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.tab-button:hover {
  color: var(--accent-primary);
}

.tab-button.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  font-weight: 600;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

/* Custom scrollbar for tab panels */
.tab-panel::-webkit-scrollbar {
  width: 18px;
}

.tab-panel::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
}

.tab-panel::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border: 3px solid var(--bg-primary);
  border-radius: 3px;
}

.tab-panel::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Scrollbar arrow buttons */
.tab-panel::-webkit-scrollbar-button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  height: 18px;
  display: block;
}

.tab-panel::-webkit-scrollbar-button:hover {
  background: var(--accent-light);
}

.tab-panel::-webkit-scrollbar-button:active {
  background: var(--accent-primary);
}

/* Up arrow */
.tab-panel::-webkit-scrollbar-button:vertical:decrement {
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .tab-panel::-webkit-scrollbar-button:vertical:decrement {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23b0b0b0" d="M8 5 L4 9 L5.5 9 L8 6.5 L10.5 9 L12 9 Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.tab-panel::-webkit-scrollbar-button:vertical:decrement {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23333" d="M8 5 L4 9 L5.5 9 L8 6.5 L10.5 9 L12 9 Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

/* Down arrow */
.tab-panel::-webkit-scrollbar-button:vertical:increment {
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .tab-panel::-webkit-scrollbar-button:vertical:increment {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23b0b0b0" d="M8 11 L4 7 L5.5 7 L8 9.5 L10.5 7 L12 7 Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.tab-panel::-webkit-scrollbar-button:vertical:increment {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23333" d="M8 11 L4 7 L5.5 7 L8 9.5 L10.5 7 L12 7 Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Search Controls */
.search-controls {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 0;
  margin: 0 20px 20px 20px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: background-color 0.3s ease;
}

.control-group {
  margin-bottom: 15px;
}

.control-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.control-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.control-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.search-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: var(--accent-hover);
}

.search-btn:active {
  background-color: var(--accent-active);
}

/* Loading and Error States */
.loading, .error {
  padding: 20px;
  text-align: center;
  border-radius: 0;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.loading {
  background-color: var(--accent-light);
  color: var(--accent-primary);
}

.error {
  background-color: var(--error-bg);
  color: var(--error-text);
}

.hidden {
  display: none;
}

/* Results */
.results {
  display: grid;
  gap: 20px;
  flex: 1;
  min-height: 0;
  padding: 0 20px 20px 20px;
}

.event-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: all 0.3s ease;
}

.event-header {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-medium);
}

.event-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.event-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.event-venue {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 5px;
}

.sales-info {
  margin-top: 15px;
}

.sales-section {
  margin-bottom: 15px;
}

.sales-section h4 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.presale-item {
  background-color: var(--bg-tertiary);
  padding: 10px;
  border-left: 3px solid var(--accent-primary);
  margin-bottom: 8px;
}

.presale-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.presale-dates {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.presale-description {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.onsale-info {
  background-color: #fff3e0;
  padding: 10px;
  border-left: 3px solid #ff9800;
}

.onsale-date {
  font-weight: 600;
  color: var(--text-primary);
}

.event-url {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-medium);
}

.event-url a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.event-url a:hover {
  text-decoration: underline;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Settings Tab Styles */
.settings-container {
  max-width: 700px;
  margin: 0 auto;
}

.settings-container h2 {
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.settings-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.settings-description a {
  color: var(--accent-primary);
  text-decoration: none;
}

.settings-description a:hover {
  text-decoration: underline;
}

.settings-form {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.settings-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.settings-status.success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.settings-status.error {
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

/* Deep Search Section - Compact Badge Style */
.deep-search-compact {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.deep-search-compact-header h4 {
  color: var(--accent-primary);
  font-size: 1rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deep-search-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.deep-search-compact-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.deep-search-badge {
  padding: 10px 20px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.deep-search-badge:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.deep-search-badge.has-selection {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.deep-search-count-badge {
  padding: 6px 12px;
  background-color: var(--accent-light);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.deep-search-status {
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.deep-search-status.loading {
  background-color: var(--accent-light);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.deep-search-status.success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.deep-search-status.error {
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

.settings-info {
  background: var(--bg-tertiary);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  transition: all 0.3s ease;
}

.settings-info h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.settings-info ol {
  margin-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.settings-info ol li {
  margin-bottom: 8px;
}

.settings-info a {
  color: var(--accent-primary);
  text-decoration: none;
}

.settings-info a:hover {
  text-decoration: underline;
}

/* Warning Banner */
.warning {
  background-color: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.warning p {
  margin: 0;
  color: var(--warning-text);
  font-weight: 500;
}

/* Venue List Styles */
.venues-list {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.venues-list.hidden {
  display: none;
}

.venue-card {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: all 0.3s ease;
}

.venue-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.venue-location {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.venue-address {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.venue-select-btn {
  padding: 8px 16px;
  background-color: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.venue-select-btn:hover {
  background-color: var(--accent-hover);
}

/* Filter Controls */
.filters-container {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: all 0.3s ease;
}

/* Sticky Header Container */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-secondary);
  z-index: 100;
  padding: 10px 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px var(--shadow);
  border-radius: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sticky-header.hidden {
  display: none;
}

/* Reduce spacing when inside sticky header */
.sticky-header .filters-container {
  margin-bottom: 10px;
  box-shadow: none;
  padding: 0 0 10px 0;
}

.sticky-header .action-bar {
  margin-bottom: 0;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-medium);
}

.filters-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.expand-btn {
  padding: 6px 12px;
  background-color: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.expand-btn:hover {
  background-color: var(--accent-hover);
}

.expand-btn.hidden {
  display: none;
}

.event-counter {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: normal;
}

.clear-filters-btn {
  padding: 8px 16px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.clear-filters-btn:hover {
  background-color: #d32f2f;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.filter-dropdown {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.filter-dropdown:hover {
  border-color: var(--text-muted);
}

.filter-badge {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: left;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-badge:hover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  color: var(--accent-primary);
}

.filter-badge.has-selection {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
}

/* ==================== NEW STYLES: EVENT CARDS & ACTIONS ==================== */

/* Tab Count Badge */
.tab-count {
  display: inline-block;
  background: var(--accent-primary);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 6px;
}

/* Action Bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  padding: 10px 15px;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
  transition: all 0.3s ease;
}

.action-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-codes, .btn-danger {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--shadow-hover);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-codes {
  background: #28a745;
  color: white;
}

.btn-codes:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-export {
  background: #17a2b8;
  color: white;
}

.btn-export:hover {
  background: #138496;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.btn-export:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Compact Event Card */
.event-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.event-card:hover {
  box-shadow: 0 4px 12px var(--shadow-hover);
  transform: translateX(4px);
  border-left-color: var(--accent-primary);
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.event-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.event-main-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.event-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  flex-shrink: 1;
  min-width: 150px;
}

.event-location-compact {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.event-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: help;
  transition: transform 0.2s;
}

.badge:hover {
  transform: scale(1.05);
}

.badge-presale {
  padding-left: 18px;
  position: relative;
}

.badge-presale::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-active {
  background: #d4edda;
  color: #155724;
}

.badge-active::before {
  background: #28a745;
  box-shadow: 0 0 6px #28a745;
  animation: pulse 2s infinite;
}

.badge-upcoming {
  background: #fff3cd;
  color: #856404;
}

.badge-upcoming::before {
  background: #ffc107;
}

.badge-ended {
  background: #e2e3e5;
  color: #6c757d;
}

.badge-ended::before {
  background: #6c757d;
}

.badge-onsale {
  background: #d1f2eb;
  color: #0e6655;
  font-weight: 700;
}

.badge-day {
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-weekend {
  background: #fef3c7;
  color: #92400e;
}

.badge-venue {
  background: #f3e8ff;
  color: #6b21a8;
  font-size: 0.7rem;
}

.badge-price {
  background: #d1ecf1;
  color: #0c5460;
  cursor: help;
}

.badge-type {
  background: #e7e7ff;
  color: #4a4aff;
  font-size: 0.95rem;
  padding: 3px 8px;
}

.event-date-compact {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* Watchlist Star */
.watchlist-star {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted); /* Changed from --border-color to --text-muted for better visibility */
  transition: all 0.3s;
  padding: 4px;
  line-height: 1;
}

.watchlist-star:hover {
  color: #ffc107;
  transform: scale(1.2);
}

.watchlist-star.active {
  color: #ffc107;
  animation: starPop 0.4s ease;
}

@keyframes starPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

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

/* Event Card Details (Expanded) */
.event-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.event-card-details.show {
  max-height: 800px;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--border-light);
}

.event-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 0.9rem;
}

.detail-section {
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: 6px;
}

.detail-section strong {
  color: var(--text-secondary);
}

.presale-item {
  margin-bottom: 10px;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  border-left: 3px solid var(--accent-primary);
}

.detail-actions {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 10px;
}

.btn-link {
  display: inline-block;
  padding: 10px 24px;
  background: #026cdf;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-link:hover {
  background: #0159b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 108, 223, 0.4);
}

/* Event Note */
.event-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.note-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 60px;
  transition: all 0.3s;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.note-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.note-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Watchlist Specific */
.watchlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.watchlist-header h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
}

.watchlist-header-actions {
  display: flex;
  gap: 10px;
}

/* Watchlist Changes Box */
.watchlist-changes {
  background: var(--accent-light);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
}

.watchlist-changes.hidden {
  display: none;
}

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

.changes-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.changes-dismiss-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.changes-dismiss-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.changes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.change-item {
  background: var(--bg-secondary);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-primary);
}

.change-item.change-new-presale {
  border-left-color: #28a745;
}

.change-item.change-presale-removed {
  border-left-color: #dc3545;
}

.change-item.change-onsale-changed {
  border-left-color: #ffc107;
}

.change-item.change-date-changed {
  border-left-color: #17a2b8;
}

.change-item.change-venue-changed {
  border-left-color: #17a2b8;
}

.change-item strong {
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
}

.empty-state p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.empty-hint {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Watchlist Statistics */
.watchlist-stats {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
}

.watchlist-stats h3 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.stat-item {
  background: var(--bg-tertiary);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-hover);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.stat-value-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 8px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.watchlist-grid {
  display: grid;
  gap: 12px;
}

/* Event Grouping */
.event-group {
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.group-header:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-active) 100%);
}

.group-header-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.group-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.group-count {
  background: rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.group-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.group-toggle.expanded {
  transform: rotate(180deg);
}

.group-events {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.group-events.show {
  max-height: 5000px;
  padding: 12px;
}

.group-events .event-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Responsive Design */
@media (max-width: 768px) {
  .event-details-grid {
    grid-template-columns: 1fr;
  }
  
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-group {
    flex-wrap: wrap;
  }
  
  .event-main-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .tab-button {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card {
  animation: fadeIn 0.3s ease;
}

/* Loading Spinner Enhancement */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 1.1rem;
  color: var(--accent-primary);
  position: relative;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Multi-Select Toggle Styles */
.filter-with-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-with-toggle .filter-dropdown {
  flex: 1;
}

.multi-select-toggle {
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s;
  flex-shrink: 0;
  white-space: nowrap;
}

.multi-select-toggle:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.multi-select-toggle.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.multi-select-badge {
  flex: 1;
  padding: 10px 14px;
  background: var(--accent-light);
  border: 2px solid var(--accent-primary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-align: left;
  transition: all 0.3s;
}

.multi-select-badge:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px var(--shadow-hover);
}

.multi-select-badge.has-selections {
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
}

/* Multi-Select Overlay Panel */
.multi-select-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s;
}

.multi-select-overlay.hidden {
  display: none;
}

.multi-select-panel {
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.multi-select-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--border-light);
}

.multi-select-panel-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.multi-select-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  line-height: 1;
}

.multi-select-close-btn:hover {
  background: var(--error-bg);
  color: var(--error-text);
}

.multi-select-panel-search {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.multi-select-search-input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.3s;
}

.multi-select-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.multi-select-search-input::placeholder {
  color: var(--text-muted);
}

.multi-select-search-clear {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-muted);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.multi-select-search-clear:hover {
  background: var(--error-text);
}

.multi-select-panel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
}

.multi-select-panel-actions span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.btn-secondary-small {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-primary);
}

.btn-secondary-small:hover {
  background: var(--border-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.multi-select-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
  max-height: 50vh;
}

.multi-select-panel-option {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 6px;
  margin-bottom: 4px;
}

.multi-select-panel-option:hover {
  background: var(--bg-tertiary);
}

.multi-select-panel-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.multi-select-panel-option label {
  flex: 1;
  cursor: pointer;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  user-select: none;
}

.multi-select-panel-option.single-select {
  padding: 14px 16px;
}

.multi-select-panel-option.single-select:hover {
  background: var(--accent-light);
}

.multi-select-panel-option.single-select.selected {
  background: var(--accent-primary);
  color: white;
}

.multi-select-panel-option.single-select.selected label {
  color: white;
  font-weight: 600;
}

.no-results-message {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.multi-select-panel-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--border-light);
  text-align: right;
}

.multi-select-panel-footer .btn-primary {
  min-width: 120px;
}

/* Remove old dropdown styles */
.multi-select-dropdown {
  display: none !important;
}

.multi-select-header,
.multi-select-clear,
.multi-select-option,
.multi-select-count {
  display: none !important;
}

/* Theme Toggle Switch */
.theme-toggle-container {
  margin-bottom: 30px;
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: var(--border-color);
  border-radius: 15px;
  transition: background-color 0.3s;
}

.toggle-switch.active {
  background-color: var(--accent-primary);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(30px);
}

.toggle-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-icon {
  font-size: 1.2rem;
}

/* Scroll Navigation Arrows - Hidden (using native scrollbar arrows instead) */
.scroll-arrow {
  display: none;
}


