/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(17, 24, 39, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --hover-gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --header-bg: rgba(15, 23, 42, 0.6);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --color-blue: #06b6d4;
  --color-purple: #8b5cf6;
  --color-green: #10b981;
  --color-red: #ef4444;
  --color-yellow: #f59e0b;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --border-radius: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Glow Effects */
.glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.glow-1 {
  background: #4f46e5;
  top: -100px;
  left: -100px;
}

.glow-2 {
  background: #06b6d4;
  bottom: -100px;
  right: -100px;
}

/* Header Styles */
header {
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: #06b6d4;
  stroke-width: 2.5;
}

.logo h1 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dashboard Grid Layout */
.dashboard-container {
  max-width: 100%;
  width: 100%;
  margin: 12px 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 16px;
  align-items: stretch;
  height: calc(100vh - 110px);
  box-sizing: border-box;
}

@media (max-width: 1150px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    height: auto;
    align-items: start;
    margin: 32px auto;
    padding: 0 16px;
  }
}

/* Glassmorphism Cards */
.card {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 0;
  box-shadow: var(--shadow);
}

/* Responsive Panels & Scroll Controls */
.control-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.results-panel {
  height: 100%;
  overflow: hidden;
}

.table-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.terminal-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 180px;
}


.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.card-icon {
  width: 24px;
  height: 24px;
}

.card-icon.blue { color: var(--color-blue); }
.card-icon.purple { color: var(--color-purple); }
.card-icon.green { color: var(--color-green); }

.card-header h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  vertical-align: middle;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.3);
  width: 100%;
}

.btn-primary:hover {
  background: var(--hover-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Scan Details Card items */
.scan-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-item-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.detail-item-col:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-item-col .label {
  color: var(--color-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Label flex row with refresh icon */
.label-row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-btn-refresh {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.icon-btn-refresh:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
}

.icon-btn-refresh i {
  width: 16px;
  height: 16px;
}

/* Multiselect Dropdown custom styling */
.multiselect-dropdown-container {
  position: relative;
  width: 100%;
}

.dropdown-trigger-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  transition: all 0.2s ease;
}

.dropdown-trigger-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.trigger-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.dropdown-content-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 16px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
}

.dropdown-content-card.active {
  display: flex;
}

.dropdown-search-box input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-size: 0.85rem;
}

.dropdown-search-box input:focus {
  border-color: var(--color-blue);
}

.dropdown-actions-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0 4px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-blue);
  cursor: pointer;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

.options-list {
  overflow-y: auto;
  max-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.dropdown-option {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  min-height: 20px;
}

.dropdown-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.dropdown-option .checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.dropdown-option:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-option input:checked ~ .checkmark {
  background: var(--primary-gradient);
  border: none;
}

.dropdown-option .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.dropdown-option input:checked ~ .checkmark:after {
  display: block;
}

.dropdown-option .checkmark:after {
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.no-options {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 16px 0;
}

/* Selected Badges display below selector */
.selected-badges-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  vertical-align: middle;
}

.btn-remove-badge {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-badge:hover {
  color: var(--color-red);
}

.badge-icon-small {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

.text-danger-custom {
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* Inline Date Range list layout */
.date-ranges-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.range-row-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-number-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  width: 60px;
  flex-shrink: 0;
}

.date-row-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.date-row-inline input[type="date"] {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  min-width: 110px;
}

.date-row-inline input[type="date"]:focus {
  border-color: var(--color-blue);
  background: rgba(255, 255, 255, 0.08);
}

.date-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 300;
  user-select: none;
}

/* Terminal Console Styling */
.terminal-card {
  padding: 0;
  overflow: hidden;
}

.terminal-header {
  padding: 16px 20px;
  margin-bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-header h2 {
  font-size: 1.05rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots .dot.red { background-color: var(--color-red); }
.terminal-dots .dot.yellow { background-color: var(--color-yellow); }
.terminal-dots .dot.green { background-color: var(--color-green); }

.terminal-body {
  flex: 1;
  overflow-y: auto;
  background-color: #050811;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  color: #a7f3d0;
  word-break: break-all;
}

.log-time {
  color: #34d399;
  opacity: 0.8;
  margin-right: 6px;
}

.log-line.important {
  color: #67e8f9;
  font-weight: 700;
  border-left: 2px solid var(--color-blue);
  padding-left: 6px;
}

/* Results Section & Filters */
.table-card {
  padding: 0;
}

.table-header-flex {
  padding: 20px 24px;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.table-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 10px 36px 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  width: 220px;
}

.search-box input:focus {
  border-color: var(--color-blue);
  background: rgba(255, 255, 255, 0.08);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.clear-search-btn:hover {
  color: var(--color-red);
  transform: scale(1.1);
}

.select-filter {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-filter:focus {
  border-color: var(--color-blue);
}

.select-filter option {
  background-color: var(--bg-color);
  color: var(--text-main);
}

/* Available Results Table */
.table-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
  table-layout: fixed;
}

th, td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  word-wrap: break-word;
  overflow: hidden;
  vertical-align: middle;
}

th:first-child, td:first-child {
  padding-left: 24px !important;
}

th:last-child, td:last-child {
  padding-right: 24px !important;
}

/* Align table cell columns to prevent overflow */
th:nth-child(1), td:nth-child(1) { width: 90px; } /* Date */
th:nth-child(2), td:nth-child(2) { width: 155px; } /* Neighborhood */
th:nth-child(3), td:nth-child(3) { width: auto; min-width: 200px; } /* House Name */
th:nth-child(4), td:nth-child(4) { width: 95px; text-align: center; } /* Guests */
th:nth-child(5), td:nth-child(5) { width: 85px; text-align: right; } /* Base */
th:nth-child(6), td:nth-child(6) { width: 115px; text-align: right; } /* Insurance */
th:nth-child(7), td:nth-child(7) { width: 75px; text-align: right; } /* Tax */
th:nth-child(8), td:nth-child(8) { width: 95px; text-align: right; } /* Total */
th:nth-child(9), td:nth-child(9) { width: 165px; } /* Golf Carts */
th:nth-child(10), td:nth-child(10) { width: 85px; text-align: center; } /* Rating */
th:nth-child(11), td:nth-child(11) { width: 95px; text-align: center; } /* Action */

/* Prevent extremely long text from stretching columns */
.cell-house {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
  max-width: 100%;
}

.cell-date {
  white-space: nowrap;
}


th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
}

th.sortable {
  cursor: pointer;
  transition: all 0.2s ease;
}

th.sortable:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

th.active-sort {
  color: var(--color-blue);
}

.sort-icon {
  width: 13px !important;
  height: 13px !important;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -1px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
th.active-sort .sort-icon {
  opacity: 1;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.font-mono {
  font-family: 'Courier New', Courier, monospace;
}

.font-bold {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--color-blue);
}

/* Rating Star flex */
.rating-flex {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  vertical-align: middle;
}

.star-icon {
  width: 14px;
  height: 14px;
  color: var(--color-yellow);
  fill: var(--color-yellow);
}

/* Golf Carts flex */
.cart-flex {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  vertical-align: middle;
}

.cart-icon-small {
  width: 14px;
  height: 14px;
  color: var(--color-purple);
}

.btn-action {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-blue);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.btn-action:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
  transform: scale(1.03);
}

.badge-outline {
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--color-blue);
}

/* Empty State */
.empty-state {
  text-align: center;
}

.empty-state-content {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.empty-icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 700px;
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.title-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 28px;
  height: 28px;
}

.modal-icon.text-green {
  color: var(--color-green);
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: white;
}

/* Modal details / inputs */
.info-alert {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.info-alert i {
  color: var(--color-purple);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--color-blue);
  background: rgba(255, 255, 255, 0.08);
}

.input-help {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Instructions Setup steps */
.instructions-accordion {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.instructions-accordion h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-steps {
  padding-left: 20px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.link-styled {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
}

.link-styled:hover {
  text-decoration: underline;
}

/* Code block container */
.code-box-container {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: #050811;
  overflow: hidden;
}

.code-header {
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

pre {
  padding: 16px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  max-height: 250px;
  color: #34d399;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

/* Animations */
.spin {
  animation: spin 1s linear infinite;
}

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

/* Spin animation on hover for refresh icon */
.icon-spin-hover:hover {
  animation: spin 1.2s ease-in-out;
}

.spinning {
  animation: spin 1s linear infinite !important;
}

.fade-in-row {
  animation: fadeInRow 0.3s ease forwards;
}

@keyframes fadeInRow {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toasts */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #ef4444;
}

/* Action Icon Buttons & Label Flex Alignments */
.label-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn-action {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.icon-btn-action:hover {
  color: var(--color-blue);
  background-color: rgba(255, 255, 255, 0.05);
}

.icon-btn-action i {
  width: 16px;
  height: 16px;
}

/* Date Range Delete Button */
.btn-delete-range {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-delete-range:hover {
  color: var(--color-red);
  background-color: rgba(239, 68, 68, 0.1);
}

.btn-delete-range i {
  width: 16px;
  height: 16px;
}

/* Resort Guide Map Modal Styling */
.map-modal-width {
  width: 900px;
  max-width: 95%;
}

.map-image-wrapper {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resort-map-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.map-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Coupon Scan Additions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coupon-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-top: 10px;
}

.coupon-table th, 
.coupon-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  vertical-align: middle;
}

.coupon-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.coupon-code-badge {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-blue);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-outline-green {
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-green);
}

.coupon-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-icon-only {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.btn-icon-only i {
  width: 14px;
  height: 14px;
}

.btn-icon-only.copied {
  background: var(--color-green) !important;
  border-color: var(--color-green) !important;
  color: white !important;
}

/* Floating Map Zoom Controls */
.map-zoom-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}

.map-zoom-controls .btn-icon-only {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--border-color) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.map-zoom-controls .btn-icon-only:hover {
  background: var(--color-blue) !important;
  border-color: var(--color-blue) !important;
  color: white !important;
  transform: scale(1.08);
}



