/* App.css - Main styles for SchedulingWeb */

/* CSS Custom Properties using logo colors */
:root {
  --primary-green: #5D8424;
  --light-cream: #FFF5BD;
  --dark-burgundy: #7D0043;
  --bright-yellow: #FFC907;
  --orange: #F78D1E;
  --red: #D5143C;
  --lime-green: #94AC27;

  /* Additional utility colors */
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f5f5f5;
  --gray-medium: #cccccc;
  --gray-dark: #666666;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #4a6b1c;
}

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

.btn-secondary:hover {
  background-color: #d6751a;
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

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

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-medium);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
}

/* Card styles */
.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-header {
  border-bottom: 2px solid var(--light-cream);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Navigation styles */
.navbar {
  background-color: var(--primary-green);
  padding: 1rem 0;
  color: var(--white);
}

.navbar a {
  color: var(--white);
  text-decoration: none;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--light-cream);
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: var(--lime-green);
  color: var(--white);
}

.alert-error {
  background-color: var(--red);
  color: var(--white);
}

.alert-warning {
  background-color: var(--bright-yellow);
  color: var(--black);
}

/* Utility classes */
.text-center {
  text-align: center;
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Autocomplete Demo Styles */
/* Modern minimal styling inspired by Bootstrap checkout example */
body {
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Clean header with subtle branding */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  color: #198754 !important;
  justify-content: center !important;
}

.logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #198754;
  text-align: center;
}

/* Main container styling */
.main-container {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Form section styling */
.form-section {
  border-bottom: 1px solid #dee2e6;
}

.form-section:last-child {
  border-bottom: none;
}

.section-title {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #198754;
  display: inline-block;
}

/* Clean form controls */
.form-control {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-label {
  font-weight: 500;
  color: #212529;
  margin-bottom: 0.5rem;
}

/* Autocomplete dropdown styling */
#autoComplete_list_1,
ul[role="listbox"] {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: scroll;
  z-index: 1000;
}

.autoComplete_result {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.15s ease-in-out;
  list-style: none !important;
  color: #495057;
}

.autoComplete_result:hover,
.autoComplete_result[aria-selected="true"] {
  background-color: #198754;
  color: white;
}

.autoComplete_result:last-child {
  border-bottom: none;
}

.autoComplete_result mark {
  background-color: #fff3cd;
  color: #856404;
  padding: 0.1rem 0.2rem;
  border-radius: 0.2rem;
  font-weight: 500;
}

.autoComplete_result:hover mark,
.autoComplete_result[aria-selected="true"] mark {
  background-color: rgba(255, 255, 255, 0.9);
  color: #198754;
}

.no_result {
  padding: 1rem;
  color: #6c757d;
  font-style: italic;
  text-align: center;
}

/* Info cards styling */
.info-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1.5rem;
}

.info-card h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.25rem 0;
  color: #6c757d;
}

.feature-list li i {
  color: #198754;
  margin-right: 0.5rem;
}

/* Status indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.status-indicator .spinner-border {
  width: 1rem;
  height: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Scheduling Demo Styles */
/* Additional styles for booking flow */
.step-container {
  min-height: 400px;
  transition: all 0.3s ease;
}


.step-progress {
  background-color: #e9ecef;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.step-progress-bar {
  height: 100%;
  background-color: #198754;
  transition: width 0.3s ease;
}

.time-slot-btn {
  min-width: 120px;
  margin: 0.25rem;
  padding: 0.75rem;
  font-size: 0.9rem;
}

.time-slot-btn.selected {
  background-color: #198754;
  border-color: #198754;
  color: white;
}

.appointment-summary {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.datepicker-cell.highlighted {
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.datepicker-cell.highlighted:hover {
  background-color: #b8daff;
}

/* Dash highlighting in autocomplete */
.dash-highlight {
  background-color: #e9ecef;
  color: #495057;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
  font-weight: bold;
  margin: 0 0.1rem;
}

.autoComplete_result:hover .dash-highlight,
.autoComplete_result[aria-selected="true"] .dash-highlight {
  background-color: rgba(255, 255, 255, 0.9);
  color: #495057;
}

/* Inline datepicker styles */
#datePickerInline .datepicker {
  position: relative !important;
  display: block !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: white;
}

#datePickerInline .datepicker-picker {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
}

/* Combined Date & Time Selection Layout */
/* Desktop: Side-by-side layout */
@media (min-width: 768px) {
  .datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile: Stacked layout */
@media (max-width: 767px) {
  .datetime-container {
    display: block;
  }
  .time-selection-section {
    margin-top: 1.5rem;
  }
}

.time-slots-loading-container {
  position: relative;
  min-height: 200px;
}

.time-selection-section .form-label {
  margin-bottom: 1rem;
}

.date-selection-section .form-label {
  margin-bottom: 1rem;
}

/* Mobile optimizations for scheduling */
@media (max-width: 576px) {
  .time-slot-btn {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .btn-navigation {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  #datePickerInline .datepicker {
    font-size: 0.875rem;
  }
}

/* Selected Orders Tags Container */
.selected-orders-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.375rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

.selected-orders-tags:empty::after {
  content: "No orders selected";
  color: #6c757d;
  font-style: italic;
}

/* Order Tag Styles */
.order-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: #0d6efd;
  color: white;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.order-tag-number {
  font-family: monospace;
}

.order-tag-remove {
  cursor: pointer;
  transition: opacity 0.2s;
  font-size: 1rem;
  line-height: 1;
}

.order-tag-remove:hover {
  opacity: 0.7;
}

/* Container visibility controlled by JavaScript */
#selectedOrdersContainer {
  display: none;
}

#selectedOrdersContainer.has-orders {
  display: block;
}

/* Manual Order Entry Styles */
.order-tag-manual {
  background-color: #fd7e14 !important; /* Orange color for manual entries */
  border: 1px solid #fd7e14;
}

.order-tag-manual:hover {
  background-color: #e8690b !important;
  border-color: #e8690b;
}

.order-tag-pro {
  background-color: #20c997 !important; /* Teal color for Pro Numbers */
  border: 1px solid #20c997;
}

.order-tag-pro:hover {
  background-color: #1aa179 !important;
  border-color: #1aa179;
}

/* Manual entry modal styles */
#manualEntryModal .modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

#manualEntryModal .modal-title {
  color: #495057;
  font-weight: 600;
}

#manualEntryModal .form-control:focus {
  border-color: #fd7e14;
  box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

/* Manual entry link styling */
#manualEntryLink {
  color: #198754;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

#manualEntryLink:hover {
  color: #157347;
  text-decoration: underline;
}

/* Responsive modal */
@media (max-width: 576px) {
  #manualEntryModal .modal-dialog {
    margin: 1rem 0.5rem;
  }

  #manualEntryModal .modal-body {
    padding: 1rem;
  }

  #manualEntryModal .modal-footer {
    padding: 0.75rem 1rem;
  }
}