/* Base Styles */
:root {
  --primary: #4361ee;
  --primary-hover: #3a56d4;
  --secondary: #4f5d75;
  --secondary-hover: #404c5e;
  --success: #2e8937;
  --success-hover: #247029;
  --danger: #d90429;
  --danger-hover: #b80021;
  --warning: #ffb703;
  --warning-hover: #e6a503;
  --light: #f8f9fa;
  --dark: #212529;
  --border: #dee2e6;
  --text: #333333;
  --text-light: #6c757d;
  --background: #f7f8fc;
  --card: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.2s ease-in-out;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--background);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Modified container-body to only apply grid to settings page */
.container-body {
  margin-bottom: 2rem;
}

/* Apply grid layout only to settings page */
.settings-page .container-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .settings-page .container-body {
    grid-template-columns: 1fr 1fr;
  }
}

.left-settings, .right-settings {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  overflow: hidden;
}

.app-header {
  background-color: var(--card);
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1.5rem;
}

.app-main {
  flex: 1;
  padding: 2rem 1.5rem;
}

.app-footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  margin-right: 0.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--radius);
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(67, 97, 238, 0.05);
  text-decoration: none;
}

.nav-icon {
  margin-right: 0.5rem;
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 0.5rem;
}

.user-email {
  font-weight: 500;
  margin-right: 0.5rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--text);
}

.dropdown-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.75rem 0;
  margin: 10px 0 0;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 1rem var(--shadow);
}

.dropdown.active .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

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

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  clear: both;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  color: var(--text);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
  text-decoration: none;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.card-body {
  padding: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.action-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  height: 40px;
}

.btn + .btn {
  margin-left: 10px;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  color: white;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

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

.btn-success {
  color: white;
  background-color: var(--success);
  border-color: var(--success);
}

.btn-success:hover {
  background-color: var(--success-hover);
  border-color: var(--success-hover);
}

.btn-danger {
  color: white;
  background-color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
  border-color: var(--danger-hover);
}

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

.btn-save:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-revoke {
  color: white;
  background-color: var(--warning);
  border-color: var(--warning);
}

.btn-revoke:hover {
  background-color: var(--warning-hover);
  border-color: var(--warning-hover);
}

.btn-delete {
  color: white;
  background-color: var(--danger);
  border-color: var(--danger);
}

.btn-delete:hover {
  background-color: var(--danger-hover);
  border-color: var(--danger-hover);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  height: 32px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

form .mb-3, form .mb-3-check {
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.inline-checkbox {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.inline-checkbox label {
  margin-left: 15px;
}

/* Checkboxes */
.checkbox-container {
  display: grid;
  align-items: center;
  position: relative;
  padding-left: 14px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  height: 100%;
  grid-auto-flow: column;
  grid-gap: 5px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #e2e2e2;
  border: 2px solid #666;
  border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Form check for admin toggle */
.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  margin-bottom: 0;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: var(--card);
}

.data-table th,
.data-table td {
  padding: 1.25rem;
  vertical-align: middle;
  border-top: 1px solid var(--border);
  text-align: left;
}

.data-table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--border);
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

.data-table tbody tr {
  height: 60px;
  transition: var(--transition);
}

.data-table tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.data-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Table Users */
.table-users {
  margin-top: 1rem;
}

.table-users td {
  vertical-align: middle;
}

.table-users td form {
  display: inline-block;
  margin-right: 0.5rem;
}

/* General Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table th, table td {
  padding: 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table th {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 600;
  color: var(--dark);
}

table tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

table a {
  color: var(--primary);
  text-decoration: none;
}

table a:hover {
  text-decoration: underline;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent scrolling */
  background-color: rgba(0, 0, 0, 0.5);
  display: flex; /* Use flexbox for centering */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
}

.modal.active {
  z-index: 1001;
  display: block;
}

.modal-content {
  position: relative;
  background-color: var(--card);
  padding: 1.5rem; /* Add padding for better spacing */
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  width: 80%; /* Increase width to make it more prominent */
  max-width: 1200px; /* Set a maximum width */
  max-height: 90vh; /* Ensure content fits within viewport height */
  overflow-y: auto; /* Allow internal scrolling if content exceeds max height */
  animation: modalFadeIn 0.3s;
  border: 1px solid var(--border);
}

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

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.02);
}

.modal-body {
  padding: 2.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.02);
}

.close-btn {
  color: var(--text-light);
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover,
.close-btn:focus {
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
}

/* Tabs */
.tabs {
  margin-bottom: 2rem;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-item {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  font-weight: 500;
}

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

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--primary);
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.spinner-small {
  border: 3px solid rgba(255, 255, 255, 0.3);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border-left-color: white;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Alerts */
.flash-messages {
  margin-bottom: 2rem;
}

.flash-messages .alert {
  margin-bottom: 1.5rem;
}

.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.close-alert {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}

.close-alert:hover {
  opacity: 1;
}

td.processed-data pre,
td.processed-data code {
  white-space: pre-wrap !important;
  word-break: break-word;
  max-width: 100%;
  display: block;
}

/* Specific styles for settings page */
.left-settings, .right-settings {
  display: flex;
  flex-direction: column;
}

.delimiter {
  height: 1px;
  background-color: var(--border);
  margin: 1rem 0;
}

/* Login page styling */
.login-container {
  max-width: 400px;
  margin: 2rem auto;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  padding: 2rem;
}

.login-container h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-container label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.login-container input[type="submit"] {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.login-container input[type="submit"]:hover {
  background-color: var(--primary-hover);
}

/* Date range inputs */
.date-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.date-label {
  font-weight: 500;
}

.date-input {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Items list */
.items-list {
  margin-top: 1.5rem;
}

/* Last update info */
.last-update-info {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-style: italic;
}

/* Tutorial card */
.tutorial-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  margin-bottom: 2.5rem;
  padding: 2rem;
  counter-reset: step-counter;
}

.tutorial-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tutorial-card .step {
  margin-bottom: 2.5rem;
  padding-left: 2.5rem;
  position: relative;
}

.tutorial-card .step:last-child {
  margin-bottom: 0;
}

.tutorial-card .step:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.tutorial-card .step h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.tutorial-card .step p {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Pressable title */
.pressable-title {
  cursor: pointer;
  display: inline-block;
  color: var(--primary);
  transition: color var(--transition);
}

.pressable-title:hover {
  color: var(--primary-hover);
}

/* Email processing page specific styles */
.left {
  width: 100%;
}

.container .left {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.processed-messages {
  margin-top: 1.5rem;
}

#processing-loading, #loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

#processing-loading img, #loading img {
  width: 50px;
  height: 50px;
  margin-bottom: 0.5rem;
}

/* Icon styles */
.icon-refresh:before {
  content: "🔄";
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 0.75rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
  }

  .btn + .btn {
    margin-left: 0;
  }

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

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .tab-header {
    flex-wrap: wrap;
  }

  .card {
    margin-bottom: 1.5rem;
  }
  
  .date-range {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .table-users td form {
    display: block;
    margin-bottom: 0.5rem;
  }
}

/* Additional styles for the modified feeds page */

.shop-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-selector select {
  width: auto;
  min-width: 200px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 768px) {
  .shop-selector {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .shop-selector select {
    width: 100%;
  }
}

/* Add these styles to ensure modals work correctly */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background-color: var(--card);
  margin: 5% auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  width: 80%;
  max-width: 1200px;
  animation: modalFadeIn 0.3s;
  border: 1px solid var(--border);
}

.close-btn {
  color: var(--text-light);
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover,
.close-btn:focus {
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
}

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

.date-format-examples {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  margin-top: 0.5rem;
}

.date-format-examples small {
  line-height: 1.6;
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #6c757d;
}

.text-muted {
  color: #6c757d !important;
}

.header-pairs {
    margin-bottom: 10px;
}

.header-pair {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.header-pair input {
    flex: 1;
}

.header-pair .btn-danger {
    padding: 0 8px;
}

.add-header {
    margin-top: 5px;
}

/* Filter Controls */
.filter-controls {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
}

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

.filter-info {
    font-style: italic;
    color: #6c757d;
}

#feedFilter {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    background-color: white;
}

#feedFilter:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#shopFilter {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    background-color: white;
}

#shopFilter:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.auth-fields {
    margin-left: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 4px;
    margin-top: 10px;
}

.auth-info {
    margin-bottom: 15px;
}

.auth-info h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 1.1em;
}

.auth-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
}

.auth-fields .form-group {
    margin-bottom: 15px;
}

.auth-fields .form-group:last-child {
    margin-bottom: 0;
}

.auth-fields label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.auth-fields .form-text {
    margin-top: 5px;
    font-size: 0.875em;
    color: #6c757d;
}

.auth-fields h5 {
    margin: 20px 0 15px 0;
    color: #343a40;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.auth-fields h5:first-of-type {
    margin-top: 15px;
}

/* Ensure Bearer token section is visually distinct from Basic Auth */
#bearer-auth-fields {
    border-left-color: #28a745;
}

#basic-auth-fields {
    border-left-color: #007bff;
}

#auth-headers-fields {
    border-left-color: #ffc107;
}

/* Code styling for examples */
code {
    background-color: #f1f3f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d73027;
}