/* Unified Scheduler App Styles */
/* Source: scheduler templates */

/* ===== appointments/new.html ===== */
  .appointment-page {
    background:
      radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
      linear-gradient(180deg, #f7faf9 0%, #ffffff 100%);
    min-height: 100%;
    padding: 2.5rem 0 3rem;
  }

  .appointment-page__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.75rem;
  }

  .appointment-page__eyebrow {
    color: #0f766e;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }

  .appointment-page__title {
    color: #11201c;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 0;
  }

  .appointment-page__description {
    color: #52605d;
    font-size: 1rem;
    margin: 0.75rem 0 0;
    max-width: 42rem;
  }

  .appointment-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .appointment-page__ghost-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(17, 32, 28, 0.1);
    border-radius: 999px;
    color: #11201c;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.8rem 1.15rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .appointment-page__ghost-link:hover {
    box-shadow: 0 0.8rem 2rem rgba(17, 32, 28, 0.08);
    color: #11201c;
    transform: translateY(-1px);
  }

  .appointment-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .appointment-page__meta-item {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 999px;
    color: #38504a;
    font-size: 0.92rem;
    padding: 0.55rem 0.95rem;
  }

  .toast {
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  }

  .toast.text-bg-danger {
    animation: shake 0.5s;
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
  }

  .toast-body {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  @media (max-width: 768px) {
    .appointment-page {
      padding-top: 1.5rem;
    }

    .appointment-page__actions,
    .appointment-page__ghost-link {
      width: 100%;
    }

    .toast {
      max-width: calc(100vw - 2rem);
      min-width: auto;
    }
  }

/* ===== appointments/form_fragment.html ===== */
  .appointment-form-shell {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 32, 28, 0.08);
    border-radius: 28px;
    box-shadow: 0 1.5rem 4rem rgba(17, 32, 28, 0.08);
    overflow: hidden;
  }

  .appointment-form-shell__inner {
    padding: 2rem;
  }

  .appointment-form-shell__intro {
    align-items: flex-start;
    border-bottom: 1px solid rgba(17, 32, 28, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .appointment-form-shell__intro h2 {
    color: #11201c;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
  }

  .appointment-form-shell__intro p {
    color: #52605d;
    margin: 0.45rem 0 0;
    max-width: 42rem;
  }

  .appointment-form-shell__badge {
    background: #ecfdf5;
    border-radius: 999px;
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 0.9rem;
    white-space: nowrap;
  }

  .appointment-form-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  }

  .appointment-form-stack {
    display: grid;
    gap: 1.25rem;
  }

  .appointment-form-section {
    background: #ffffff;
    border: 1px solid rgba(17, 32, 28, 0.08);
    border-radius: 20px;
    padding: 1.35rem;
  }

  .appointment-form-section--accent {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-color: rgba(245, 158, 11, 0.24);
  }

  .appointment-form-section__title {
    color: #11201c;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
  }

  .appointment-form-section__description {
    color: #677572;
    font-size: 0.94rem;
    margin: 0 0 1rem;
  }

  .appointment-form-section__hint {
    color: #677572;
    display: block;
    font-size: 0.88rem;
    margin-top: 0.45rem;
  }

  .appointment-inline-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .appointment-actions {
    align-items: center;
    border-top: 1px solid rgba(17, 32, 28, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-end;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
  }

  .appointment-submit-btn {
    background: #11201c;
    border: none;
    border-radius: 999px;
    box-shadow: 0 0.8rem 1.8rem rgba(17, 32, 28, 0.18);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
  }

  .appointment-submit-btn:hover,
  .appointment-submit-btn:focus {
    background: #0b1512;
    color: #ffffff;
  }

  .appointment-cancel-link {
    color: #52605d;
    font-weight: 600;
    text-decoration: none;
  }

  .appointment-cancel-link:hover {
    color: #11201c;
  }

  #client-search-results .list-group-item {
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  #client-search-results .list-group-item:hover {
    background-color: #f8f9fa;
  }

  #client-select-wrapper {
    margin-top: 0.5rem;
  }

  input.date-picker-input,
  input.time-picker-input,
  input[type="text"].flatpickr-input,
  input.flatpickr-input,
  input.flatpickr-input.form-control {
    cursor: pointer !important;
  }

  select.form-select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
  }

  .appointment-form-shell .form-control,
  .appointment-form-shell .form-select {
    border-radius: 14px;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
  }

  .appointment-form-shell textarea.form-control {
    min-height: 132px;
  }

  .appointment-form-shell .form-label {
    color: #22312d;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .appointment-date-field .form-label {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
  }

  .appointment-date-control {
    display: block;
    position: relative;
  }

  .appointment-date-input-hidden {
    height: 1px;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 1px;
  }

  .appointment-click-hint {
    color: #0f766e;
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
  }

  .appointment-date-trigger {
    align-items: center;
    background: #0f766e;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    white-space: nowrap;
    width: 100%;
  }

  .appointment-date-trigger:hover,
  .appointment-date-trigger:focus {
    background: #0d5f59;
    box-shadow: 0 0.45rem 1rem rgba(15, 118, 110, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
  }

  .appointment-date-trigger:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.35);
    outline-offset: 2px;
  }

  .appointment-search-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.8rem;
  }

  .appointment-search-link {
    color: #0f766e;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
  }

  .appointment-search-link:hover {
    color: #0d5f59;
  }

  .appointment-muted-box {
    background: #f7faf9;
    border: 1px dashed rgba(17, 32, 28, 0.12);
    border-radius: 14px;
    color: #52605d;
    font-size: 0.92rem;
    margin-top: 0.8rem;
    padding: 0.85rem 1rem;
  }

  @media (max-width: 768px) {
    .appointment-form-shell__inner {
      padding: 1.25rem;
    }

    .appointment-form-grid,
    .appointment-inline-row {
      grid-template-columns: 1fr;
    }

    .appointment-form-shell .form-control,
    .appointment-form-shell .form-select {
      font-size: 16px !important;
      min-height: 44px;
    }

    .row > .col-md-6,
    .row > .col-md-4 {
      margin-bottom: 1rem;
    }

    .appointment-actions {
      align-items: stretch;
      flex-direction: column-reverse;
    }

    .appointment-submit-btn,
    .appointment-cancel-link {
      text-align: center;
      width: 100%;
    }

    #client-search-input {
      font-size: 16px !important;
    }

    .flatpickr-calendar {
      font-size: 14px;
      max-width: 100vw;
    }

    .flatpickr-day {
      height: 38px;
      line-height: 38px;
      max-width: 38px;
    }

    .flatpickr-time input {
      font-size: 18px !important;
    }

    .appointment-date-trigger {
      width: 100%;
    }
  }

  #form-error-alert {
    animation: slideInDown 0.3s ease-out, pulse 2s ease-in-out;
    border-left: 5px solid #dc3545;
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.15);
  }

  @keyframes slideInDown {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes pulse {
    0%, 100% {
      box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.15);
    }

    50% {
      box-shadow: 0 0.5rem 1.5rem rgba(220, 53, 69, 0.3);
    }
  }

/* ===== panel/index.html ===== */
  /* Page-specific styles for panel/index.html */

  .scheduler-dashboard-page {
    padding-bottom: 2.5rem;
  }

  .scheduler-dashboard-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .scheduler-dashboard-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.05rem;
  }

  .scheduler-dashboard-options {
    margin-left: auto;
  }
  
  /* Enhanced background overlay effect (unique to dashboard) */
  .total-sub-page-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(254, 189, 47, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(234, 46, 73, 0.02) 0%, transparent 50%);
    pointer-events: none;
  }

  /* Dashboard-specific header (report-header is an alias for page-header) */
  .report-header {
    background: linear-gradient(135deg, var(--panel-primary) 0%, var(--panel-secondary) 100%);
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px var(--shadow-strong);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }
  
  .report-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px var(--shadow-strong);
  }
  
  .report-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    transform: rotate(45deg);
    animation: headerShimmer 4s ease-in-out infinite;
  }
  
  .report-header h2 {
    color: var(--panel-darker);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    text-align: center;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
  }

  /* Appointments section container (unique wrapper) */
  .appointments-section {
    background: var(--panel-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
  }

  /* Section title with bottom border (dashboard-specific) */
  .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--panel-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--panel-primary);
  }

  /* Appointment card styling (unique to dashboard appointments) */
  .appointment-card {
    background: var(--panel-light-bg);
    border-radius: 12px;
    padding: 0.65rem 0.875rem;
    margin-bottom: 0.65rem;
    border-left: 3px solid var(--panel-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .appointment-card:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  }

  .appointment-card .customer-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--panel-dark);
    margin-bottom: 0;
    line-height: 1.3;
  }

  .appointment-card .service-name {
    font-size: 0.8rem;
    color: var(--panel-light);
    margin-bottom: 0;
    line-height: 1.3;
  }

  .appointment-card .time {
    font-size: 0.75rem;
    color: var(--panel-accent);
    font-weight: 600;
    line-height: 1.3;
  }

  /* Horizontal info layout */
  .appointment-card .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.7rem;
    color: var(--panel-light);
    line-height: 1.2;
  }

  .appointment-card .info-row > span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }

  .appointment-card .info-row i {
    font-size: 0.7rem;
    opacity: 0.8;
  }

  /* Status badges */
  .status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
  }

  .status-pending {
    background: linear-gradient(135deg, #ffd93d 0%, #fcbf49 100%);
    color: #6c4a00;
  }

  .status-confirmed {
    background: linear-gradient(135deg, #06ffa5 0%, #00d4aa 100%);
    color: #004d40;
  }

  .status-completed {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: #003d6b;
  }

  .status-cancelled {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #5a0000;
  }

  .status-no_show {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
    color: #212529;
  }

  /* HTMX loading indicator */
  .htmx-request .htmx-indicator,
  .htmx-request.htmx-indicator {
    display: inline-block;
  }

  .htmx-indicator {
    display: none;
  }

  /* Button group styling for status change */
  .appointment-card .btn-group {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .appointment-card .btn-group .btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.45rem;
    border-radius: 6px !important;
    line-height: 1.3;
    flex: 1;
    min-width: fit-content;
    white-space: nowrap;
    text-align: center;
  }

  .appointment-card .btn-group .btn i {
    font-size: 0.65rem;
  }

  /* Disabled button styling */
  .btn:disabled,
  .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
  }

  .btn:disabled:hover,
  .btn.disabled:hover {
    transform: none;
    box-shadow: none;
  }

  /* Enhanced Button Styles */
  .btn {
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .btn:hover::before {
    width: 300px;
    height: 300px;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  /* Modal close button visibility (confirm modal) */
  .modal-header {
    position: relative;
  }

  .modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
  }

  .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

  .modal-close-btn i {
    color: white;
    font-size: 1.1rem;
  }

  .btn i {
    transition: transform 0.3s ease;
  }

  .btn:hover i {
    transform: scale(1.1);
  }

  /* Primary Button - Vibrant gradient */
  .btn-primary {
    background: linear-gradient(135deg, #febd2f 0%, #f59e0b 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(254, 189, 47, 0.3);
  }

  .btn-primary:hover,
  .btn-primary:focus {
    background: linear-gradient(135deg, #fcd34d 0%, #febd2f 100%);
    color: #000;
    box-shadow: 0 6px 25px rgba(254, 189, 47, 0.4);
  }

  .btn-primary:active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }

  /* Success Button - Fresh green gradient */
  .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }

  .btn-success:hover,
  .btn-success:focus {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
  }

  .btn-success:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
  }

  /* Secondary Button - Sleek gray gradient */
  .btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.25);
  }

  .btn-secondary:hover,
  .btn-secondary:focus {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(100, 116, 139, 0.35);
  }

  .btn-secondary:active {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
  }

  /* Danger Button - Bold red gradient */
  .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  }

  .btn-danger:hover,
  .btn-danger:focus {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
  }

  .btn-danger:active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  }

  /* Outline Secondary Button */
  .btn-outline-secondary {
    background: transparent;
    border: 2px solid #64748b;
    color: #64748b;
    box-shadow: none;
  }

  .btn-outline-secondary:hover,
  .btn-outline-secondary:focus {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-color: #64748b;
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.25);
  }

  .btn-outline-secondary:active {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
  }

  /* Small buttons - maintain proportions */
  .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  /* Large buttons - more presence */
  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  /* Loading state for HTMX requests */
  .htmx-swapping {
    opacity: 0.5;
    transition: opacity 200ms ease-in;
  }

  /* Pagination styling */
  .pagination {
    margin-bottom: 0;
  }

  .pagination .page-link {
    color: var(--panel-primary);
    border: 1px solid rgba(254, 189, 47, 0.3);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
  }

  .pagination .page-link:hover {
    background: var(--panel-primary);
    color: var(--panel-white);
    border-color: var(--panel-primary);
    transform: translateY(-1px);
  }

  .pagination .page-item.active .page-link {
    background: var(--panel-primary);
    border-color: var(--panel-primary);
    color: var(--panel-white);
    font-weight: 600;
  }

  .pagination .page-item.disabled .page-link {
    color: var(--panel-light);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .section-title .badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    vertical-align: middle;
  }

  /* Search box styling */
  .search-section {
    background: var(--panel-white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
  }

  .search-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

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

  .search-filters .form-control,
  .search-filters .form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  .search-filters .form-control:focus,
  .search-filters .form-select:focus {
    border-color: var(--panel-primary);
    box-shadow: 0 0 0 0.2rem rgba(254, 189, 47, 0.25);
  }

  .search-filters label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--panel-dark);
    margin-bottom: 0.25rem;
    display: block;
  }

  .search-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .search-actions .btn {
    min-width: 120px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .search-actions .btn i {
    margin-right: 0.4rem;
  }

  .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--panel-light);
  }

  .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  .empty-state p {
    font-size: 1rem;
    margin: 0;
  }

  /* Collapsible search section */
  .search-section.collapsed .search-content {
    display: none;
  }

  .search-section .toggle-search {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 12px;
    transition: background 0.2s ease;
  }

  .search-section .toggle-search:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  .search-section .toggle-search .fa-chevron-down {
    transition: transform 0.3s ease;
    color: var(--panel-primary);
    font-size: 1.2rem;
  }

  .search-section.collapsed .toggle-search .fa-chevron-down {
    transform: rotate(-90deg);
  }

  .search-section .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Responsive adjustments for dashboard */
  @media (min-width: 769px) {
    /* For larger screens, limit button width */
    .appointment-card .btn-group .btn {
      flex: 0 1 auto;
      max-width: 120px;
    }
  }

  @media (max-width: 768px) {
    .scheduler-dashboard-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .scheduler-dashboard-actions .btn,
    .scheduler-dashboard-options,
    .scheduler-dashboard-options .dropdown,
    .scheduler-dashboard-options .dropdown .btn {
      width: 100%;
    }

    .report-header h2 {
      font-size: 2rem;
    }

    .appointments-section {
      padding: 1.5rem;
    }

    .appointment-card .btn-group .btn {
      font-size: 0.7rem;
      padding: 0.3rem 0.4rem;
    }

    .pagination .page-link {
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem;
    }

    .section-title .badge {
      font-size: 0.75rem;
      padding: 0.25rem 0.5rem;
    }

    .search-section {
      padding: 1rem;
    }

    .search-filters {
      grid-template-columns: 1fr;
    }

    .search-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .search-actions button {
      width: 100%;
    }
  }

/* ===== calendar.html ===== */
  :root {
    --calendar-primary: var(--panel-primary, #667eea);
    --calendar-secondary: var(--panel-secondary, #764ba2);
    --calendar-success: #10b981;
    --calendar-warning: #f59e0b;
    --calendar-danger: #ef4444;
    --calendar-info: #3b82f6;
    --calendar-muted: #6b7280;
    --calendar-dark: #1f2937;
    --calendar-light: #f9fafb;
    --calendar-white: #ffffff;
    --calendar-shadow: rgba(0, 0, 0, 0.1);
    --calendar-shadow-lg: rgba(0, 0, 0, 0.15);
  }

  /* Calendar page styles */
  .calendar-page {
    min-height: 100vh;
    padding-bottom: 100px;
  }

  .calendar-container {
    background: var(--calendar-white);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px var(--calendar-shadow), 0 2px 4px -2px var(--calendar-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .calendar-header {
    background: linear-gradient(135deg, var(--calendar-primary) 0%, var(--calendar-secondary) 100%);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
  }

  .calendar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
  }

  .calendar-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
  }

  .calendar-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
  }

  .calendar-header-icon i {
    font-size: 1.5rem;
    color: white;
  }

  .calendar-header h2 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Calendar Controls */
  .calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
  }

  .view-switcher {
    display: flex;
    gap: 0.375rem;
    background: var(--calendar-light);
    padding: 0.375rem;
    border-radius: 12px;
    flex-wrap: wrap;
  }

  .view-btn {
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    color: var(--calendar-muted);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .view-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--calendar-primary);
  }

  .view-btn.active {
    background: var(--calendar-white);
    color: var(--calendar-primary);
    box-shadow: 0 2px 8px var(--calendar-shadow);
  }

  .view-btn i {
    font-size: 0.9rem;
  }

  /* New Appointment Button - Desktop */
  .btn-new-appointment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--calendar-primary) 0%, var(--calendar-secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
  }

  .btn-new-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }

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

  /* Floating Action Button - Mobile */
  .fab-new-appointment {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--calendar-primary) 0%, var(--calendar-secondary) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: fabPulse 2s infinite;
  }

  .fab-new-appointment:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  }

  .fab-new-appointment:active {
    transform: scale(0.95);
  }

  @keyframes fabPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6); }
  }

  /* Legend - Collapsible on mobile */
  .calendar-legend-wrapper {
    margin-bottom: 1.25rem;
  }

  .legend-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--calendar-light);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: var(--calendar-dark);
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
  }

  .legend-toggle i {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
  }

  .legend-toggle.active i {
    transform: rotate(180deg);
  }

  .calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--calendar-light);
    border-radius: 14px;
    transition: all 0.3s ease;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--calendar-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--calendar-shadow);
    transition: transform 0.2s ease;
  }

  .legend-item:hover {
    transform: translateY(-1px);
  }

  .legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .legend-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--calendar-dark);
    white-space: nowrap;
  }

  /* FullCalendar custom styles */
  #calendar {
    min-height: 500px;
  }

  .fc {
    font-family: inherit;
  }

  .fc .fc-toolbar {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--calendar-dark);
    text-transform: capitalize;
  }

  .fc .fc-button {
    background: var(--calendar-light);
    border: none;
    color: var(--calendar-dark);
    padding: 0.5rem 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-transform: capitalize;
  }

  .fc .fc-button:hover {
    background: var(--calendar-primary);
    color: white;
  }

  .fc .fc-button-primary:not(:disabled).fc-button-active,
  .fc .fc-button-primary:not(:disabled):active {
    background: var(--calendar-primary);
    color: white;
  }

  .fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
  }

  .fc .fc-button-group > .fc-button {
    border-radius: 0;
  }

  .fc .fc-button-group > .fc-button:first-child {
    border-radius: 10px 0 0 10px;
  }

  .fc .fc-button-group > .fc-button:last-child {
    border-radius: 0 10px 10px 0;
  }

  .fc-theme-standard .fc-scrollgrid {
    border: none;
    border-radius: 12px;
    overflow: hidden;
  }

  .fc-theme-standard td, .fc-theme-standard th {
    border-color: #e5e7eb;
  }

  .fc .fc-daygrid-day-top {
    padding: 0.5rem;
  }

  .fc .fc-daygrid-day-number {
    font-weight: 600;
    color: var(--calendar-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .fc .fc-daygrid-day:hover .fc-daygrid-day-number {
    background: var(--calendar-light);
  }

  .fc .fc-day-today {
    background: rgba(102, 126, 234, 0.05) !important;
  }

  .fc .fc-day-today .fc-daygrid-day-number {
    background: var(--calendar-primary);
    color: white;
  }

  .fc .fc-col-header-cell {
    padding: 0.75rem 0;
    background: var(--calendar-light);
  }

  .fc .fc-col-header-cell-cushion {
    font-weight: 600;
    color: var(--calendar-dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  /* Event styles */
  .fc-event {
    border-radius: 6px;
    padding: 3px 6px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--calendar-shadow-lg);
  }

  .fc-event-pending {
    background-color: var(--calendar-warning);
    color: #000;
  }

  .fc-event-confirmed {
    background-color: var(--calendar-success);
    color: #fff;
  }

  .fc-event-cancelled {
    background-color: var(--calendar-muted);
    color: #fff;
  }

  .fc-event-completed {
    background-color: var(--calendar-info);
    color: #fff;
  }

  .fc-event-no_show {
    background-color: var(--calendar-danger);
    color: #fff;
  }

  /* List view styles */
  .fc-list {
    border-radius: 12px;
    overflow: hidden;
  }

  .fc-list-event:hover td {
    background: rgba(102, 126, 234, 0.05);
  }

  .fc-list-day-cushion {
    background: var(--calendar-light) !important;
    padding: 0.75rem 1rem !important;
  }

  /* Loading spinner */
  .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    border-radius: 16px;
    backdrop-filter: blur(4px);
  }

  .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--calendar-light);
    border-top-color: var(--calendar-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  .loading-text {
    font-size: 0.9rem;
    color: var(--calendar-muted);
    font-weight: 500;
  }

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

  /* Modal styles */
  .appointment-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .appointment-modal-content {
    background: var(--calendar-white);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    overflow: hidden;
  }

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

  .modal-header {
    background: linear-gradient(135deg, var(--calendar-primary) 0%, var(--calendar-secondary) 100%);
    padding: 1.5rem;
    position: relative;
  }

  .modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    padding-right: 2rem;
  }

  .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

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

  .modal-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    background: var(--calendar-light);
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  .modal-detail:hover {
    background: #e5e7eb;
  }

  .modal-detail:last-child {
    margin-bottom: 0;
  }

  .modal-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--calendar-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px var(--calendar-shadow);
  }

  .modal-detail-icon i {
    color: var(--calendar-primary);
    font-size: 0.9rem;
  }

  .modal-detail-content {
    flex: 1;
    min-width: 0;
  }

  .modal-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--calendar-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
    display: block;
  }

  .modal-value {
    color: var(--calendar-dark);
    font-weight: 500;
    font-size: 0.95rem;
    word-break: break-word;
  }

  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
  }

  .modal-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .modal-btn-secondary {
    background: var(--calendar-light);
    color: var(--calendar-dark);
  }

  .modal-btn-secondary:hover {
    background: #e5e7eb;
  }

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

  .modal-btn-primary:hover {
    background: var(--calendar-secondary);
  }

  /* Back Button */
  .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--calendar-white);
    color: var(--calendar-dark);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px var(--calendar-shadow);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
  }

  .btn-back:hover {
    color: var(--calendar-primary);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px var(--calendar-shadow);
  }

  .btn-back i {
    transition: transform 0.2s ease;
  }

  .btn-back:hover i {
    transform: translateX(-3px);
  }

  /* Responsive Styles */
  @media (max-width: 992px) {
    .calendar-container {
      padding: 1.25rem;
    }

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

    .view-switcher {
      justify-content: center;
      order: 2;
    }

    .btn-new-appointment {
      width: 100%;
      justify-content: center;
      order: 1;
    }
  }

  @media (max-width: 768px) {
    .calendar-page {
      padding-bottom: 120px;
    }

    .calendar-container {
      padding: 1rem;
      border-radius: 16px;
      margin-bottom: 1rem;
    }

    .calendar-header {
      padding: 1.25rem 1rem;
      border-radius: 16px;
      margin-bottom: 1rem;
    }

    .calendar-header-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
    }

    .calendar-header-icon i {
      font-size: 1.25rem;
    }

    .calendar-header h2 {
      font-size: 1.35rem;
    }

    /* Show FAB, hide desktop button */
    .btn-new-appointment {
      display: none;
    }

    .fab-new-appointment {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Collapsible legend */
    .legend-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .calendar-legend {
      display: none;
      padding: 0.875rem;
    }

    .calendar-legend.show {
      display: flex;
    }

    .legend-item {
      flex: 1 1 auto;
      min-width: calc(50% - 0.375rem);
      justify-content: center;
    }

    /* View switcher mobile */
    .view-switcher {
      width: 100%;
      padding: 0.25rem;
    }

    .view-btn {
      flex: 1;
      justify-content: center;
      padding: 0.5rem;
      font-size: 0.8rem;
    }

    .view-btn span {
      display: none;
    }

    .view-btn i {
      font-size: 1rem;
    }

    /* Calendar adjustments */
    #calendar {
      min-height: 400px;
    }

    .fc .fc-toolbar {
      flex-direction: column;
      gap: 0.5rem;
    }

    .fc .fc-toolbar-chunk {
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .fc .fc-toolbar-title {
      font-size: 1.1rem;
      order: -1;
    }

    .fc .fc-button {
      padding: 0.4rem 0.75rem;
      font-size: 0.8rem;
    }

    .fc-event {
      font-size: 0.7rem;
      padding: 2px 4px;
    }

    .fc .fc-daygrid-day-number {
      font-size: 0.85rem;
    }

    .fc .fc-col-header-cell-cushion {
      font-size: 0.65rem;
    }

    /* Modal mobile */
    .appointment-modal-content {
      width: 95%;
      margin: 3% auto;
      border-radius: 16px;
    }

    .modal-body {
      padding: 1rem;
      max-height: 50vh;
    }

    .modal-detail {
      padding: 0.75rem;
    }

    .modal-detail-icon {
      width: 32px;
      height: 32px;
    }

    .modal-value {
      font-size: 0.875rem;
    }

    .modal-actions {
      flex-direction: column;
      padding: 1rem;
    }

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

    .container-fluid {
      padding-left: 0.75rem;
      padding-right: 0.75rem;
    }
  }

  @media (max-width: 480px) {
    .calendar-header h2 {
      font-size: 1.15rem;
    }

    .calendar-header-icon {
      width: 36px;
      height: 36px;
    }

    .calendar-header-icon i {
      font-size: 1rem;
    }

    .view-btn {
      padding: 0.5rem 0.375rem;
    }

    .fc .fc-toolbar-title {
      font-size: 1rem;
    }

    .fc .fc-button {
      padding: 0.35rem 0.5rem;
      font-size: 0.75rem;
    }

    .legend-item {
      min-width: 100%;
    }

    .fab-new-appointment {
      width: 54px;
      height: 54px;
      bottom: 20px;
      right: 16px;
      font-size: 1.25rem;
    }
  }

  /* Touch-friendly spacing for time grid */
  @media (max-width: 768px) {
    .fc .fc-timegrid-slot {
      height: 3.5em;
    }

    .fc-list-event {
      padding: 0.625rem;
    }

    .fc-list-event-time,
    .fc-list-event-title {
      font-size: 0.85rem;
    }
  }

  /* Print styles */
  @media print {
    .btn-back,
    .btn-new-appointment,
    .fab-new-appointment,
    .view-switcher,
    .legend-toggle {
      display: none !important;
    }

    .calendar-container {
      box-shadow: none;
      border: 1px solid #e5e7eb;
    }
  }

/* ===== clients/form_fragment.html ===== */
.field-validation-wrapper {
  position: relative;
}

.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

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

.validation-error {
  font-size: 0.875rem;
  animation: slideDown 0.3s ease;
}

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

.scheduler-campaign-card {
  border: 1px solid #0d6efd;
  border-radius: 8px;
}

.scheduler-campaign-card__header {
  background-color: #e7f1ff;
}

.search-results-shell {
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.section-title.section-title--compact {
  font-size: 1.3rem;
}

.appointment-notes-snippet {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1.3;
  padding: 0.35rem 0.5rem;
}

.service-description-snippet {
  color: var(--panel-light);
  font-size: 0.9rem;
}

.detail-value--muted {
  color: #6c757d;
  font-size: 14px;
}

.search-content-spaced {
  margin-top: 1rem;
}

.search-results-spaced {
  margin-top: 1.5rem;
}

.panel-modal-header {
  border: none;
  color: #fff;
}

.panel-modal-header.panel-modal-header--cancel {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.panel-modal-header.panel-modal-header--confirm {
  background: linear-gradient(135deg, #06ffa5, #00d4aa);
}

.panel-modal-header.panel-modal-header--complete {
  background: linear-gradient(135deg, #4dabf7, #339af0);
}

.panel-modal-icon.panel-modal-icon--cancel {
  color: #ff6b6b;
}

.panel-modal-icon.panel-modal-icon--confirm {
  color: #06ffa5;
}

.panel-modal-icon.panel-modal-icon--complete {
  color: #4dabf7;
}

.scheduler-result-page {
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.scheduler-result-page .container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  overflow: hidden;
  width: 100%;
}

.scheduler-result-page .header {
  color: #fff;
  padding: 40px 30px;
  text-align: center;
}

.scheduler-result-page .header.header--confirm-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.scheduler-result-page .header.header--cancel-success {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.scheduler-result-page .header.header--error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.scheduler-result-page .icon {
  font-size: 64px;
  margin-bottom: 15px;
}

.scheduler-result-page .header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.scheduler-result-page .header p {
  font-size: 16px;
  opacity: 0.95;
}

.scheduler-result-page .content {
  padding: 40px 30px;
}

.scheduler-result-page .message {
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

.scheduler-result-page .details,
.scheduler-result-page .appointment-details {
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 30px;
  padding: 25px;
}

.scheduler-result-page .appointment-details {
  margin: 20px 0;
}

.scheduler-result-page .detail-row {
  border-bottom: 1px solid #e9ecef;
  display: flex;
  padding: 12px 0;
}

.scheduler-result-page .appointment-details .detail-row {
  padding: 10px 0;
}

.scheduler-result-page .detail-row:last-child {
  border-bottom: none;
}

.scheduler-result-page .detail-label {
  color: #495057;
  font-size: 15px;
  font-weight: 600;
  min-width: 140px;
}

.scheduler-result-page.scheduler-result-action .detail-label {
  align-items: center;
  display: flex;
}

.scheduler-result-page .detail-value {
  color: #212529;
  flex: 1;
  font-size: 15px;
}

.scheduler-result-page .status-badge {
  border-radius: 20px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  text-transform: uppercase;
}

.scheduler-result-page.scheduler-result-action .status-badge {
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0;
  padding: 4px 12px;
  text-transform: none;
}

.scheduler-result-page .status-confirmed {
  background: #d4edda;
  color: #155724;
}

.scheduler-result-page .status-pending {
  background: #fff3cd;
  color: #856404;
}

.scheduler-result-page .status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.scheduler-result-page .footer {
  background: #f8f9fa;
  color: #6c757d;
  font-size: 14px;
  padding: 30px;
  text-align: center;
}

.scheduler-result-page .footer strong {
  color: #495057;
  display: block;
  margin-bottom: 5px;
}

.scheduler-result-page.scheduler-result-action .container {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  text-align: center;
}

.scheduler-result-page.scheduler-result-action .icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 40px;
  height: 80px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 80px;
}

.scheduler-result-page.scheduler-result-action .icon.success {
  background: #d4edda;
  color: #28a745;
}

.scheduler-result-page.scheduler-result-action .icon.error {
  background: #f8d7da;
  color: #dc3545;
}

.scheduler-result-page.scheduler-result-action .icon.warning {
  background: #fff3cd;
  color: #ffc107;
}

.scheduler-result-page.scheduler-result-action h1 {
  color: #333;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.scheduler-result-page.scheduler-result-action .message {
  color: #666;
  margin-bottom: 30px;
}

.scheduler-result-page.scheduler-result-action .appointment-details {
  text-align: left;
}

.scheduler-result-page.scheduler-result-action .footer {
  background: none;
  border-top: 1px solid #e9ecef;
  margin-top: 30px;
  padding: 20px 0 0;
}

.scheduler-result-page.scheduler-result-action .footer p {
  margin: 5px 0;
}

@media (max-width: 600px) {
  .scheduler-result-page .header h1,
  .scheduler-result-page.scheduler-result-action h1 {
    font-size: 24px;
  }

  .scheduler-result-page .icon {
    font-size: 48px;
  }

  .scheduler-result-page .content,
  .scheduler-result-page.scheduler-result-action .container {
    padding: 30px 20px;
  }

  .scheduler-result-page .detail-row {
    flex-direction: column;
  }

  .scheduler-result-page .detail-label {
    margin-bottom: 5px;
  }

  .scheduler-result-page .message,
  .scheduler-result-page.scheduler-result-action .message {
    font-size: 16px;
  }
}
