
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #5c5651 0%, #454139 100%);
  backdrop-filter: blur(12px);
}

/* Hide unnecessary elements */
#mergeTemplateBtn {
  display: none;
}

.equivalent-price,
.price-conversion,
.converted-price {
  display: none;
}

/* Reset Button Glow */
#clearAllPageBtn {
  position: relative;
  font-weight: 600;
  animation: dangerPulse 2s infinite;
}

@keyframes dangerPulse {
  0%, 100% { box-shadow: 0 4px 14px 0 rgb(239 68 68 / 0.35); }
  50% { box-shadow: 0 4px 20px 0 rgb(239 68 68 / 0.55); }
}

/* Tooth Enhancements */
.tooth {
  border: none !important;
  background-color: transparent !important;
}

.tooth img {
  width: 52px !important;
  filter: drop-shadow(0 4px 8px rgb(69 65 57 / 0.08));
}

.tooth:hover img {
  filter: drop-shadow(0 8px 16px rgb(153 111 73 / 0.25));
}

.tooth.selected {
  background-color: transparent !important;
  border: none !important;
}

.tooth.second-visit {
  width: 52px;
  height: 72px;
}

.tooth.second-visit img {
  width: 38px;
  max-height: 44px;
}

/* Treatment Categories - Vecta Plan Theme */
.treatment-categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.treatment-category {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: none;
  box-shadow: 0 2px 12px rgb(69 65 57 / 0.04);
  border-left: 3px solid #996F49;
}

.treatment-category:hover {
  border-color: #B8906E;
  box-shadow: 0 4px 12px rgb(153 111 73 / 0.1);
}

.treatment-category h2 {
  margin: 0 0 0.75rem 0;
  color: #7A583A;
  font-size: 1rem;
  font-weight: 600;
}

.treatment-category .radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
}

.treatment-category .radio-item,
.treatment-category .checkbox-item {
  background: white;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.treatment-category .radio-item:hover,
.treatment-category .checkbox-item:hover {
  background: #FAF7F4;
  border-color: #B8906E;
}

.treatment-category .radio-item input:checked + label,
.treatment-category .checkbox-item input:checked + label {
  color: #7A583A;
  font-weight: 500;
}

.treatment-category .radio-item input:checked,
.treatment-category .checkbox-item input:checked {
  accent-color: #996F49;
}

/* Visit Toggle Section */
.visit-toggle-section {
  margin: 1.25rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: none;
  box-shadow: 0 2px 16px rgb(69 65 57 / 0.04);
  border-left: 3px solid #996F49;
}

.visit-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.visit-toggle-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #3d3935;
  margin: 0;
}

/* Toggle Switch - Vecta Plan */
input:checked + .slider {
  background: linear-gradient(135deg, #996F49, #5c5651);
}

/* Price Container */
.price-container {
  margin-top: 1rem;
  padding: 1rem;
  background: #FAF7F4;
  border-radius: 0.75rem;
  border: 1px solid #B8906E;
}

.price-container-title {
  font-size: 1rem;
  font-weight: 600;
  color: #7A583A;
  margin-bottom: 1rem;
}

/* Visit Tabs */
.visit-tabs {
  display: flex;
  margin-bottom: 1rem;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.visit-tab {
  padding: 0.625rem 1.25rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem 0.75rem 0 0;
  cursor: pointer;
  font-weight: 500;
  color: #64748b;
  transition: all 0.3s ease;
}

.visit-tab:hover {
  background: #FAF7F4;
  border-color: #B8906E;
  color: #7A583A;
}

.visit-tab.active {
  background: linear-gradient(135deg, #996F49, #7A583A);
  color: white;
  border-color: #996F49;
}

/* Tables - Vecta Plan Theme */
.treatment-table th,
.table thead th {
  background: linear-gradient(135deg, #996F49, #7A583A);
}

.treatment-table tr:nth-child(even),
.table tbody tr:nth-child(even) {
  background-color: #FAF7F4;
}

.treatment-table tr:hover,
.table tbody tr:hover {
  background-color: #F5EDE5;
}

.treatment-total-row,
.total-row {
  background: linear-gradient(135deg, #F5EDE5, #EDE8E3) !important;
  border-top: 2px solid #996F49 !important;
}

.table tfoot {
  border-top: 2px solid #996F49;
}

.table tfoot tr {
  background-color: #F5EDE5;
}

.discount-column {
  color: #ef4444;
}

.discounted-price {
  color: #5C4028;
  font-weight: 600;
}

/* Cards - Vecta Plan Theme */
.card {
  border: 1px solid rgb(153 111 73 / 0.15);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgb(69 65 57 / 0.04);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgb(153 111 73 / 0.1);
  border-color: rgb(153 111 73 / 0.25);
}

.card-header {
  background: linear-gradient(135deg, #FAF7F4, white);
  border-bottom: 1px solid rgb(153 111 73 / 0.15);
  border-radius: 0.9375rem 0.9375rem 0 0;
}

.btn-link {
  color: #996F49;
}

.btn-link:hover {
  color: #7A583A;
}

/* Teeth Selection */
.teeth-grid {
  background: linear-gradient(135deg, #f8fafc, #FAF7F4);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
}

.tooth-select-btn {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  border: 2px solid #e2e8f0;
  background: white;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tooth-select-btn:hover {
  background: #FAF7F4;
  border-color: #B8906E;
  color: #7A583A;
  transform: translateY(-2px);
}

.tooth-select-btn.selected {
  background: linear-gradient(135deg, #996F49, #7A583A);
  color: white;
  border-color: #996F49;
  box-shadow: 0 4px 12px rgb(153 111 73 / 0.4);
}

.selected-teeth-display {
  background: #FAF7F4;
  border: 1px solid #B8906E;
  border-radius: 0.5rem;
}

/* Welcome Modal */
#welcomeModal .modal-content {
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#welcomeModal .modal-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1rem;
}

#welcomeModal .close-welcome-btn:hover {
  color: #996F49;
  transform: rotate(90deg) scale(1.1);
}

/* Country Select */
#patientCountryInput {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23996F49' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

#patientCountryInput:focus {
  border-color: #996F49;
  box-shadow: 0 0 0 4px rgb(153 111 73 / 0.1);
}

#patientCountryInput optgroup {
  font-weight: 600;
  color: #7A583A;
}

/* Patient Name */
#patientNameInput {
  text-transform: capitalize;
}

#patientNameInput::placeholder {
  text-transform: none;
}

/* Dental Package Button */
.dental-package-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #996F49, #7A583A);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgb(153 111 73 / 0.35);
  transition: all 0.3s ease;
}

.dental-package-btn:hover {
  box-shadow: 0 6px 20px rgb(153 111 73 / 0.45);
  transform: translateY(-2px);
}

/* Sinus Lift Text */
.sinus-lift-text {
  color: #996F49;
  font-weight: 500;
}

.dental-chart {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgb(69 65 57 / 0.05);
  border: none;
}

#welcomeModal .modal-content {
  border-top: 4px solid #996F49;
  border-radius: 1.25rem;
  padding: 2rem;
}

#welcomeModal .modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  color: #3d3935;
}

.modal-content {
  border-top: 4px solid #996F49;
}

.modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

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

@media (max-width: 768px) {
  .patient-info {
    grid-template-columns: 1fr;
  }

  .visit-tabs {
    flex-direction: column;
  }
  
  .visit-tab {
    border-radius: 0.5rem;
  }
}
