body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  margin: 0;
  padding: 20px 0;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 40px 48px 36px 48px;
  transition: box-shadow 0.3s ease;
}

.container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

h2 {
  text-align: center;
  margin-bottom: 32px;
  color: #2c3e50;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: -0.5px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 0.95em;
}

input,
select {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 2px solid #e8ecf0;
  font-size: 1em;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input[type='date'] {
  font-size: 1.25em;
  padding: 16px 20px;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: #222;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e8ecf0;
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  border-color: #3498db;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-1px);
}

input:hover:not(:focus) {
  border-color: #bdc3c7;
}

/* Placeholder styling - lighter color */
input::placeholder,
textarea::placeholder {
  color: #adb5bd;
  opacity: 1;
  font-weight: 400;
}

/* For older browsers */
input::-webkit-input-placeholder {
  color: #adb5bd;
}
input::-moz-placeholder {
  color: #adb5bd;
}
input:-ms-input-placeholder {
  color: #adb5bd;
}

button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2980b9 0%, #1f5e8c 100%);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  transform: translateY(-2px);
}

button:disabled {
  background: #bdc3c7 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.7;
}

.btn-disabled {
  background: #95a5a6 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.8;
  pointer-events: none;
}

/* Enhanced button states for better Docker/online visibility */
button:disabled::before {
  display: none;
}

.btn-disabled::before {
  display: none;
}

/* Improved progress bar persistence styles */
.progress-section.persistent {
  animation: progressFadeIn 0.3s ease-in;
}

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

/* Enhanced visual feedback for scraping states */
.progress-status-active {
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.result {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d5f4e6 0%, #c8e6c9 100%);
  color: #1b5e20;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
  border-left: 4px solid #4caf50;
}

.error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border-left-color: #f44336;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.ready {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-left: 4px solid #4caf50;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
  animation: readyPulse 2s ease-in-out;
}

@keyframes readyPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px 32px;
  align-items: end;
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.date-row {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hidden-field {
  display: none;
}

.star-checkboxes,
.filter-checkboxes {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.star-checkboxes {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

.star-label,
.filter-label {
  font-weight: 500;
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.star-label {
  font-weight: 600;
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e8ecf0;
  font-size: 1.1em;
  color: #34495e;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 48px;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(52, 152, 219, 0.04);
}

.star-label:hover {
  background: #e3f2fd;
  border-color: #3498db;
  color: #2980b9;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.star-label:hover,
.filter-label:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.star-label input,
.filter-label input {
  margin: 0;
  width: auto;
}

.star-label input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #3498db;
  margin: 0;
  border-radius: 6px;
  border: 1.5px solid #e8ecf0;
  transition: border 0.2s;
}

@media (max-width: 1000px) {
  .container {
    max-width: 95vw;
    padding: 24px 20px;
    margin: 10px auto;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .date-row {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .date-row {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* Form Configuration Styles */
.form-config {
  margin-bottom: 0;
}

.form-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.4em;
  font-weight: 600;
  color: #3498db;
  letter-spacing: 0.3px;
}

/* Button Row Styles */
.button-row {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.button-row button {
  flex: 1;
  margin-top: 0;
}

.btn-cancel {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}

.btn-cancel:hover:not(:disabled) {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

@media (max-width: 768px) {
  .button-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* Advanced Settings Styles */
.advanced-settings {
  margin-top: 32px;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #e8ecf0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.advanced-settings:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  border-color: #dde3e9;
}

.advanced-title {
  margin: 0 0 24px 0;
  color: #3498db;
  font-size: 1.3em;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 16px;
  letter-spacing: 0.3px;
}

/* End Date Quick Buttons */
.enddate-btn-row {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.enddate-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #2980b9;
  border: 1.5px solid #b3c6e6;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(52, 152, 219, 0.07);
}

.enddate-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.13);
}

.enddate-btn:disabled {
  background: #e0e0e0;
  color: #b0b0b0;
  border-color: #d0d0d0;
  cursor: not-allowed;
  box-shadow: none;
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.csv-setting {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.csv-setting:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #2196f3;
}

.csv-checkbox {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  accent-color: #3498db;
}

.csv-label {
  margin: 0;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.05em;
}

.concurrency-row {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

.concurrency-row > div {
  flex: 1;
}

.concurrency-row input {
  margin-bottom: 0;
}

/* Reset Configuration Styles */
.reset-config-section {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-radius: 8px;
  border: 1px solid #ffb74d;
  transition: all 0.3s ease;
}

.reset-config-section:hover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ff9800;
}

.btn-reset {
  width: auto !important;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.btn-reset::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-reset:hover::before {
  left: 100%;
}

.btn-reset:hover:not(:disabled) {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%) !important;
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4) !important;
  transform: translateY(-2px) !important;
}

.btn-reset:disabled {
  background: #bdc3c7 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.7 !important;
}

.btn-reset.btn-disabled {
  background: #95a5a6 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.8 !important;
  pointer-events: none !important;
}

.reset-config-description {
  margin: 12px 0 0 0;
  font-size: 0.9em;
  color: #e65100;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .concurrency-row {
    flex-direction: column;
    gap: 20px;
  }

  .advanced-settings {
    padding: 24px 20px;
  }
}

/* Progress Bar Styles */
.progress-section {
  margin-top: 32px;
  padding: 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  border: 2px solid #e8ecf0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-container {
  width: 100%;
}

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

.progress-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.4em;
  font-weight: 600;
}

.progress-stats {
  display: flex;
  gap: 20px;
  font-weight: 600;
  color: #34495e;
  font-size: 1.1em;
}

.progress-bar-wrapper {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 28px;
  background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #d5dbdb;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #16a085 100%);
  border-radius: 14px;
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.progress-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95em;
  color: #5d6d7e;
}

.progress-info,
.progress-timing {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

/* Queue Hint in Progress Section */
.queue-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
  border: 1px solid #bde0fe;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e40af;
}

.queue-hint .btn-link {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.queue-hint .btn-link:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .progress-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .progress-stats {
    flex-direction: column;
    gap: 6px;
  }

  .progress-details {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .progress-timing {
    text-align: left;
  }

  .progress-section {
    padding: 24px 20px;
  }
}

.hidden {
  display: none !important;
}

/* ============================================================================
   TAB NAVIGATION STYLES
   ============================================================================ */

.tab-navigation {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  color: #5d6d7e;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  width: auto;
}

.tab-btn:hover:not(.active) {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  transform: none;
  box-shadow: none;
}

.tab-btn.active {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tab-panel {
  animation: tabFadeIn 0.3s ease;
}

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

/* ============================================================================
   PANEL HEADER STYLES
   ============================================================================ */

.panel-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #ecf0f1;
}

.panel-header h3 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 1.5em;
  font-weight: 700;
}

.panel-description {
  margin: 0;
  color: #7f8c8d;
  font-size: 1em;
}

/* ============================================================================
   JOB QUEUE STYLES
   ============================================================================ */

.queue-status {
  margin-bottom: 24px;
}

.queue-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e8ecf0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card.stat-active {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #2196f3;
}

.stat-card.stat-completed {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #4caf50;
}

.stat-value {
  font-size: 2em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9em;
  color: #7f8c8d;
  font-weight: 500;
}

.job-form-section,
.job-list-section {
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.job-form-section h4,
.job-list-section h4 {
  margin: 0 0 16px 0;
  color: #3498db;
  font-size: 1.2em;
  font-weight: 600;
}

.job-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 0.9em;
}

.form-group input,
.form-group select {
  margin-bottom: 0;
}

/* Stars checkboxes in job queue form */
.stars-checkboxes {
  display: flex;
  gap: 8px;
}

.stars-checkboxes .checkbox-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.2s ease;
}

.stars-checkboxes .checkbox-btn:hover {
  border-color: #3498db;
  background: #f8fafc;
}

.stars-checkboxes .checkbox-btn input {
  margin: 0;
}

/* Filters group in job queue form */
.filters-group {
  margin-bottom: 16px;
}

.filter-checkboxes {
  display: flex;
  gap: 16px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.filter-checkbox:hover {
  border-color: #3498db;
  background: #f8fafc;
}

.filter-checkbox input {
  margin: 0;
}

.btn-submit-job {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.3);
}

.btn-submit-job:hover:not(:disabled) {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.refresh-hint {
  font-size: 0.8em;
  color: #95a5a6;
  font-weight: normal;
}

.job-list {
  max-height: 500px;
  overflow-y: auto;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #95a5a6;
}

.empty-state p {
  margin: 0;
  font-size: 1.1em;
}

/* Job Card Styles */
.job-card {
  padding: 20px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8ecf0;
  transition: all 0.3s ease;
}

.job-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.job-card.job-running {
  border-left: 4px solid #2196f3;
  background: linear-gradient(135deg, #e3f2fd 0%, #fff 30%);
}

.job-card.job-queued {
  border-left: 4px solid #ff9800;
}

.job-card.job-completed {
  border-left: 4px solid #4caf50;
}

.job-card.job-failed {
  border-left: 4px solid #f44336;
}

.job-card.job-cancelled {
  border-left: 4px solid #9e9e9e;
  opacity: 0.7;
}

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

.job-title {
  display: flex;
  flex-direction: column;
}

.job-city {
  font-size: 1.2em;
  font-weight: 600;
  color: #2c3e50;
}

.job-id {
  font-size: 0.8em;
  color: #95a5a6;
  font-family: monospace;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-queued {
  background: #fff3e0;
  color: #e65100;
}

.badge-starting,
.badge-running {
  background: #e3f2fd;
  color: #1565c0;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.badge-completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-failed {
  background: #ffebee;
  color: #c62828;
}

.badge-cancelled {
  background: #f5f5f5;
  color: #616161;
}

.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9em;
  color: #5d6d7e;
}

.job-duration {
  color: #2980b9;
  font-weight: 500;
}

.job-progress {
  margin: 12px 0;
}

.job-progress .progress-bar {
  height: 12px;
  margin-bottom: 8px;
}

.job-progress .progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  color: #5d6d7e;
}

.job-progress .current-date {
  font-size: 0.85em;
  color: #3498db;
  margin-top: 4px;
}

.job-error {
  padding: 8px 12px;
  background: #ffebee;
  border-radius: 6px;
  color: #c62828;
  font-size: 0.9em;
  margin: 8px 0;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ecf0f1;
}

.job-time {
  font-size: 0.85em;
  color: #95a5a6;
}

.btn-cancel-job {
  padding: 6px 16px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  font-size: 0.85em;
  width: auto;
}

.btn-cancel-job:hover:not(:disabled) {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* ============================================================================
   PERFORMANCE PANEL STYLES
   ============================================================================ */

.performance-section {
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.performance-section h4 {
  margin: 0 0 16px 0;
  color: #3498db;
  font-size: 1.2em;
  font-weight: 600;
}

.performance-section h5 {
  margin: 16px 0 12px 0;
  color: #5d6d7e;
  font-size: 1em;
}

.section-description {
  margin: 0 0 16px 0;
  color: #7f8c8d;
  font-size: 0.95em;
}

/* System Info Grid */
.system-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border: 1px solid #e8ecf0;
  min-height: 100px;
}

.info-icon {
  font-size: 2.5em;
  flex-shrink: 0;
  margin-top: 4px;
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-value {
  font-size: 1.4em;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
}

.info-label {
  font-size: 0.9em;
  color: #7f8c8d;
  font-weight: 600;
  margin-top: 2px;
}

.info-sub {
  font-size: 0.8em;
  color: #95a5a6;
  margin-top: 4px;
}

/* System Info Note */
.system-info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border-radius: 8px;
  border: 1px solid #ffc107;
  margin-top: 12px;
}

.system-info-note .note-icon {
  font-size: 1.1em;
  flex-shrink: 0;
  margin-top: 2px;
}

.system-info-note .note-text {
  font-size: 0.85em;
  color: #856404;
  line-height: 1.4;
}

/* Deployment Selector */
.deployment-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.deployment-selector label {
  margin-bottom: 0;
  font-weight: 600;
}

.deployment-selector select {
  width: auto;
  margin-bottom: 0;
  min-width: 200px;
}

/* Recommendations Display */
.recommendations-section h4 {
  margin: 0 0 16px 0;
  color: #2c3e50;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.rec-card {
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 10px;
  text-align: center;
  border: 1px solid #a5d6a7;
}

.rec-value {
  font-size: 2em;
  font-weight: 700;
  color: #2e7d32;
}

.rec-label {
  font-size: 0.9em;
  color: #558b2f;
  font-weight: 500;
}

.rec-reasoning {
  margin: 16px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.rec-reasoning h5 {
  margin: 0 0 12px 0;
  color: #5d6d7e;
}

.rec-reasoning ul {
  margin: 0;
  padding-left: 20px;
  color: #5d6d7e;
}

.rec-reasoning li {
  margin-bottom: 6px;
}

.rec-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9em;
  color: #7f8c8d;
}

/* Memory Estimator */
.estimator-grid {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.estimator-grid .form-group {
  flex: 1;
}

.btn-estimate {
  padding: 12px 24px;
  width: auto;
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  box-shadow: 0 4px 16px rgba(155, 89, 182, 0.3);
}

.btn-estimate:hover:not(:disabled) {
  background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

/* Memory Estimate Result */
.memory-estimate-result {
  padding: 20px;
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border-radius: 10px;
  border: 1px solid #ce93d8;
}

.memory-estimate-result h4 {
  margin: 0 0 16px 0;
  color: #7b1fa2;
}

.estimate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}

.estimate-row.total {
  background: #7b1fa2;
  color: #fff;
  font-weight: 600;
  margin-top: 8px;
}

/* Memory Estimate Status */
.estimate-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.estimate-status.status-good {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
}

.estimate-status.status-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
}

.estimate-status .status-icon {
  font-size: 1.5em;
}

.estimate-status .status-text {
  font-weight: 600;
  color: #2c3e50;
}

.estimate-status .status-detail {
  margin-left: auto;
  color: #7f8c8d;
  font-size: 0.9em;
}

/* Memory Estimate Recommendation */
.estimate-recommendation {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid #ce93d8;
}

.estimate-recommendation h5 {
  margin: 0 0 12px 0;
  color: #7b1fa2;
  font-size: 0.95em;
}

.rec-mini-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rec-mini-grid span {
  padding: 8px 12px;
  background: #f3e5f5;
  border-radius: 6px;
  font-size: 0.9em;
  color: #6a1b9a;
}

.rec-mini-grid span strong {
  color: #7b1fa2;
  font-size: 1.1em;
}

/* Benchmark Controls */
.benchmark-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.benchmark-buttons {
  display: flex;
  gap: 12px;
}

.btn-benchmark {
  padding: 12px 20px;
  width: auto;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
}

.btn-benchmark:hover:not(:disabled) {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-benchmark:disabled {
  background: #bdc3c7 !important;
}

/* Benchmark Status */
.benchmark-status {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.benchmark-progress {
  margin-bottom: 16px;
}

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

.benchmark-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e8ecf0;
}

.benchmark-result-item.success {
  border-left: 4px solid #4caf50;
}

.benchmark-result-item.failed {
  border-left: 4px solid #f44336;
}

.result-name {
  font-weight: 600;
  color: #2c3e50;
}

.result-status {
  font-size: 1.2em;
}

.result-memory {
  color: #7f8c8d;
  font-size: 0.9em;
}

/* Benchmark Report */
.benchmark-report {
  padding: 20px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-radius: 10px;
  border: 1px solid #ffca28;
}

.benchmark-report h4 {
  margin: 0 0 16px 0;
  color: #f57f17;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.summary-stat {
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  text-align: center;
}

.summary-stat.success .stat-value {
  color: #2e7d32;
}

.summary-stat.failed .stat-value {
  color: #c62828;
}

.best-config {
  padding: 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #a5d6a7;
}

.best-config h5 {
  margin: 0 0 8px 0;
  color: #2e7d32;
}

.best-config p {
  margin: 0;
  color: #388e3c;
}

.report-recommendations {
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.report-recommendations h5 {
  margin: 0 0 12px 0;
  color: #f57f17;
}

.rec-item {
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #ffca28;
}

/* ============================================================================
   NOTIFICATION STYLES
   ============================================================================ */

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  padding: 14px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: notificationSlideIn 0.3s ease;
}

@keyframes notificationSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-fade-out {
  animation: notificationSlideOut 0.3s ease forwards;
}

@keyframes notificationSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification-success {
  background: linear-gradient(135deg, #d5f4e6 0%, #c8e6c9 100%);
  color: #1b5e20;
  border-left: 4px solid #4caf50;
}

.notification-error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border-left: 4px solid #f44336;
}

.notification-warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #e65100;
  border-left: 4px solid #ff9800;
}

.notification-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border-left: 4px solid #2196f3;
}

.notification-message {
  flex: 1;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  width: auto;
  color: inherit;
  box-shadow: none;
}

.notification-close:hover {
  opacity: 1;
  background: none;
  transform: none;
  box-shadow: none;
}

/* ============================================================================
   RESPONSIVE STYLES FOR NEW COMPONENTS
   ============================================================================ */

@media (max-width: 1000px) {
  .queue-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .job-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .report-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tab-navigation {
    flex-direction: column;
  }

  .queue-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .job-form-grid {
    grid-template-columns: 1fr;
  }

  .job-details {
    flex-direction: column;
    gap: 8px;
  }

  .system-info-grid {
    grid-template-columns: 1fr;
  }

  .rec-grid {
    grid-template-columns: 1fr;
  }

  .estimator-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .estimator-grid .btn-estimate {
    width: 100%;
  }

  .benchmark-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .benchmark-buttons {
    flex-direction: column;
  }

  .benchmark-buttons .btn-benchmark {
    width: 100%;
  }

  .report-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .notification-container {
    left: 10px;
    right: 10px;
  }

  .notification {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .queue-stats-grid {
    grid-template-columns: 1fr;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }
}

/* Intraday Button Styles */
.btn-intraday {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  box-shadow: 0 4px 16px rgba(155, 89, 182, 0.3);
}

.btn-intraday:hover:not(:disabled) {
  background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

/* ============================================================================
   APP LAYOUT WITH PERSISTENT SIDEBAR
   ============================================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
  gap: 0;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 20px;
  padding-right: 10px;
}

/* Job Status Sidebar */
.job-sidebar {
  width: 320px;
  min-width: 280px;
  background: #fff;
  border-left: 1px solid #e8ecf0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

.sidebar-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: #2c3e50;
}

.btn-refresh {
  width: auto;
  padding: 6px 10px;
  font-size: 0.9em;
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: none;
}

.btn-refresh:hover {
  background: #e9ecef;
  transform: none;
}

/* Sidebar Queue Stats */
.sidebar-queue-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.sidebar-stat {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e8ecf0;
}

.sidebar-stat .stat-num {
  display: block;
  font-size: 1.4em;
  font-weight: 700;
  color: #2c3e50;
}

.sidebar-stat .stat-label {
  font-size: 0.7em;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-stat.stat-running {
  background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
  border-color: #3498db;
}

.sidebar-stat.stat-running .stat-num {
  color: #2980b9;
}

.sidebar-stat.stat-done {
  background: linear-gradient(135deg, #e8f8f0 0%, #d5f4e6 100%);
  border-color: #27ae60;
}

.sidebar-stat.stat-done .stat-num {
  color: #27ae60;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-section h4 {
  font-size: 0.85em;
  color: #7f8c8d;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.empty-state-small {
  text-align: center;
  padding: 16px 10px;
  color: #95a5a6;
  font-size: 0.85em;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #ddd;
}

/* Sidebar Job Card */
.sidebar-job-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
}

.sidebar-job-card:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.sidebar-job-card.running {
  border-left: 3px solid #3498db;
  background: linear-gradient(135deg, #fff 0%, #f0f7fc 100%);
}

.sidebar-job-card.queued {
  border-left: 3px solid #f39c12;
  background: linear-gradient(135deg, #fff 0%, #fef9e7 100%);
}

.sidebar-job-card.completed {
  border-left: 3px solid #27ae60;
}

.sidebar-job-card.failed {
  border-left: 3px solid #e74c3c;
}

.sidebar-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sidebar-job-city {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95em;
}

.sidebar-job-status {
  font-size: 0.7em;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.sidebar-job-status.running {
  background: #3498db;
  color: #fff;
  animation: pulse-status 1.5s infinite;
}

.sidebar-job-status.queued {
  background: #f39c12;
  color: #fff;
}

.sidebar-job-status.completed {
  background: #27ae60;
  color: #fff;
}

.sidebar-job-status.failed {
  background: #e74c3c;
  color: #fff;
}

@keyframes pulse-status {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.sidebar-job-dates {
  font-size: 0.8em;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.sidebar-job-duration {
  font-size: 0.8em;
  color: #2980b9;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Sidebar Progress Bar */
.sidebar-progress {
  margin-top: 8px;
}

.sidebar-progress-bar {
  height: 6px;
  background: #e8ecf0;
  border-radius: 3px;
  overflow: hidden;
}

.sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.sidebar-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75em;
  color: #7f8c8d;
  margin-top: 4px;
}

/* Cancel button in sidebar */
.sidebar-job-card .btn-cancel-small {
  width: auto;
  padding: 4px 8px;
  font-size: 0.75em;
  margin-top: 8px;
  background: #e74c3c;
  box-shadow: none;
}

.sidebar-job-card .btn-cancel-small:hover {
  background: #c0392b;
}

/* Sidebar truncation notice for limited lists */
.sidebar-truncation-notice {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.85em;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
  border-radius: 6px;
  margin-top: 8px;
  border: 1px dashed #dfe6ec;
  font-style: italic;
}

/* Sidebar hint text */
.sidebar-hint {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9em;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 16px;
}

/* Responsive: Hide sidebar on small screens */
@media (max-width: 1100px) {
  .app-layout {
    flex-direction: column;
  }

  .job-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-left: none;
    border-top: 1px solid #e8ecf0;
    max-height: 400px;
  }

  .main-content {
    padding-right: 20px;
  }

  .sidebar-queue-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .job-sidebar {
    padding: 16px;
  }

  .sidebar-queue-stats {
    gap: 6px;
  }

  .sidebar-stat {
    padding: 8px 4px;
  }

  .sidebar-stat .stat-num {
    font-size: 1.2em;
  }
}

/* ============================================
   UNIFIED SCRAPE JOBS UI STYLES
   ============================================ */

/* End date with buttons container */
.end-date-with-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.end-date-with-buttons input[type='date'] {
  flex: 1;
  margin-bottom: 0;
}

/* Scrape Mode Selection */
.scrape-mode-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8ecf0;
}

.scrape-mode-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-btn {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 180px;
}

.radio-btn:hover {
  border-color: #3498db;
  background: #fff;
}

.radio-btn input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-btn input[type='radio']:checked + .radio-label {
  color: #3498db;
  font-weight: 600;
}

.radio-btn:has(input[type='radio']:checked) {
  border-color: #3498db;
  background: #ebf5fb;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.radio-label {
  font-size: 1em;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 4px;
}

.radio-desc {
  font-size: 0.8em;
  color: #7f8c8d;
}

/* Advanced Settings Toggle */
.advanced-settings-toggle {
  margin-top: 16px;
  text-align: left;
}

.btn-toggle {
  width: auto;
  padding: 8px 16px;
  background: transparent;
  color: #7f8c8d;
  font-size: 0.9em;
  border: 1px solid #e8ecf0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-toggle:hover {
  background: #f8f9fa;
  color: #3498db;
  border-color: #3498db;
  transform: none;
}

/* Advanced Settings Content */
.advanced-settings-content {
  margin-top: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e8ecf0;
}

.advanced-settings-content .advanced-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.advanced-settings-content .form-group {
  flex: 1;
  min-width: 120px;
}

.advanced-settings-content .form-group input {
  margin-bottom: 0;
}

.reset-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8ecf0;
}

/* Progress Section in Scrape Jobs */
#jqProgressSection {
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

#jqProgressSection .progress-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 20px;
}

#jqProgressSection .progress-header h4 {
  margin: 0 0 16px 0;
  font-size: 1.1em;
  color: #2c3e50;
}

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

/* Responsive adjustments for scrape mode */
@media (max-width: 500px) {
  .scrape-mode-options {
    flex-direction: column;
  }

  .radio-btn {
    min-width: 100%;
  }

  .end-date-with-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .end-date-with-buttons .enddate-btn-row {
    justify-content: flex-start;
  }
}

