/* ==========================================
   1. DASHBOARD CORE & BREATHING ROOM
   ========================================== */

.dashboard-panel {
  /* Remove !important from display: none */
  display: none;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  transform: translateY(20px);
}

.dashboard-panel.active {
  /* This spotlight will now work because !important is gone above */
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0);
}

/* ✨ BOUTIQUE TOUCH: Ensure inner forms stay hidden until needed */
#petFormContainer,
#clientProfileForm {
  display: none;
}

/* 3. Smooth entry animation for a boutique feel */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Ensure the container doesn't force a scrollbar if not needed */
#main-content {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dashboard main,
#client-dashboard,
.section-data-wrapper {
  padding: 40px !important;
  max-width: 1300px !important;
  margin: 20px auto !important;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  box-sizing: border-box !important;
}

/* Header & Welcome Polish */
.dashboard-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #f0c605;
  margin-bottom: 25px;
  padding-bottom: 15px;
}

#welcomeMessage {
  font-family: "Merriweather", serif;
  font-size: 1.2rem;
  color: #555;
  font-weight: 500;
  display: block;
  margin-top: 5px;
}
/*===============================================*/
/* --- 🏥 SECTION 4: MEDICAL & HABIT STYLING --- */
/*===============================================*/

/* 1. The Sitter "Stop & Read" Pulse Alert */
.habit-pulse-red {
  animation: habit-pulse-animation 2s infinite;
  border: 2px solid #d32f2f !important;
}

@keyframes habit-pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(211, 47, 47, 0.4);
    background-color: #ffffff;
  }
  50% {
    box-shadow: 0 0 0 15px rgba(211, 47, 47, 0);
    background-color: #fff5f5; /* Soft Red Warning Flash */
  }
  100% {
    box-shadow: 0 0 0 0px rgba(211, 47, 47, 0);
    background-color: #ffffff;
  }
}

/* 2. Vet Visit "Ready to Go" Blink */
.blink-icon {
  animation: blinker 1.5s linear infinite;
  color: #d32f2f;
  vertical-align: middle;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* 3. Medical Timeline Notes */
.medical-history-note {
  transition: transform 0.2s ease;
  border: 1px solid #e0e0e0;
}

.medical-history-note:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 4. Injection & Med Chips for Tab 3 */
.visit-injection-item,
.medical-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f7ff;
  color: #0056b3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #cce5ff;
  margin: 4px;
}

.alert-chip {
  background: #fff5f5 !important;
  color: #d32f2f !important;
  border: 1px solid #feb2b2 !important;
  font-weight: bold;
}

/* 5. Invoice Photo Preview Overlay */
#invoicePreviewContainer img {
  border: 3px solid #800000;
  transition: scale 0.3s ease;
  cursor: zoom-in;
}

#invoicePreviewContainer img:hover {
  scale: 1.1;
}
/* The Boutique Injection Chip */
/* Styling for the Injection Chips in Tab 3 */
.visit-injection-item {
  background: #e3f2fd !important;
  color: #0d47a1 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.9rem !important;
  font-weight: bold !important;
  border: 1px solid #bbdefb !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin: 5px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.visit-injection-item span.remove-btn {
  cursor: pointer;
  color: #d32f2f;
  font-weight: bold;
}
/* ==========================================
   2. PROGRESS BAR (The Road to 100%)
   ========================================== */
.progress-bar-bg {
  width: 100%;
  height: 12px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
}

#progress-bar-fill {
  height: 100%;
  width: 0%; /* Updates via JS */
  background: linear-gradient(90deg, #940012 0%, #f0c605 100%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 🐾 THE GOLD STANDARD: Premium Profile Card */
.profile-card {
  background: #ffffff !important;
  border: 1px solid #eee !important;
  border-top: 6px solid #940012 !important; /* Bold Brand Red Top */
  border-radius: 20px !important;
  padding: 35px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.card-header {
  display: flex;
  justify-content: space-between; /* 👈 This pushes the title Left and the button Right */
  align-items: center; /* 👈 This keeps them perfectly centered vertically */
  width: 100%;
  padding-bottom: 5px; /* 👈 Keeps a little breathing room above your yellow line */
}

.card-header h3 {
  margin: 0; /* 👈 Removes extra space that might push it out of line */
}
.gold-divider {
  border: none;
  height: 2px;
  background-color: #ffd700; /* Your Golden Yellow */
  margin: 10px 0 20px 0; /* Space: 10px above, 20px below */
  width: 100%;
}
/* 🐾 Card Grid Alignment */
.card-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr 1fr 1fr !important; /* Perfect balance for the stacked first column */
  gap: 30px !important;
  align-items: start !important;
}
.info-group {
  display: flex;
  flex-direction: column;
}
.info-group label {
  font-family: "Roboto", sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  color: #888 !important;
  letter-spacing: 1.2px !important;
  font-weight: 700 !important;
}

.info-group p {
  font-family: "Merriweather", serif !important;
  font-size: 1.15rem !important;
  color: #222 !important; /* Slightly darker for better readability */
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

/* Edit Button Polish */
.edit-icon-btn {
  background: #fafafa !important;
  border: 1px solid #ddd !important;
  color: #940012 !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.edit-icon-btn:hover {
  background: #940012 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(148, 0, 18, 0.2);
}
/* ==========================================
   3. THE GOLD STANDARD FORM LAYOUT
   ========================================== */
#clientProfileForm {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 20px;
}

#clientProfileForm fieldset {
  border: 1px solid #eee !important;
  border-left: 8px solid #f0c605 !important; /* Branded Gold Side */
  background-color: #fafafa !important;
  padding: 40px !important;
  border-radius: 15px !important;
  margin-bottom: 35px !important;
}

#clientProfileForm legend {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #940012;
  padding: 0 15px;
}

/* 🐾 Alternating 2-Column Grid */
.form-row-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px 40px !important;
  align-items: end !important;
}

.form-group {
  width: 100% !important;
}

#clientProfileForm label {
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  display: block;
}

#clientProfileForm input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #ffffff;
  font-size: 1rem;
}

#clientProfileForm input:focus {
  border-color: #f0c605;
  outline: none;
  box-shadow: 0 0 0 4px rgba(240, 198, 5, 0.1);
}

/* ==========================================
   4. MAP & BUTTONS
   ========================================== */
#map {
  height: 350px !important;
  width: 100%;
  margin-top: 15px;
  border: 3px solid #940012; /* Brand Red Frame */
  border-radius: 15px;
}

.form-button,
#clientProfileForm button[type="submit"] {
  background-color: #940012;
  color: #ffffff;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 18px;
  border-radius: 50px;
  width: 100%;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(148, 0, 18, 0.2);
  margin-top: 15px;
}

/* ==========================================
   5. NAVIGATION TABS
   ========================================== */
.dashboard-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.dashboard-tab {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.dashboard-tab.active {
  background: #940012;
  color: white;
}
/* 🐾 Align the Spouse Checkbox to the Left */
/* 🐾 THE GOLD STANDARD: Strict Left-Aligned Checkbox */
.global-checkbox-item {
  display: flex !important;
  flex-direction: row !important; /* Ensures checkbox and text stay in a line */
  justify-content: flex-start !important; /* Pushes everything to the left */
  align-items: flex-end !important;
  gap: 15px !important;
  width: 100% !important;
  margin: 15px 0 25px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Make sure the text doesn't have a mind of its own */
.global-checkbox-item label {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  color: #444 !important;
  cursor: pointer;
}

/* Easy-to-tap checkbox for your S9 Ultra */
.global-checkbox-item input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  cursor: pointer;
}
/* ============================================================ */
/* 🐾 HAPPY PUPPY BOUTIQUE: COMPACT PET & MEDICAL LAYOUT      */
/* ============================================================ */

/* 🏆 HAPPY PUPPY BRANDING: Gold Frame & Red Headings */

/* 1. THE GOLD BORDER: Apply to all sections */
#petForm fieldset {
  border: 2px solid #f1c605 !important; /* Brand Gold */
  border-radius: 15px !important;
  padding: 25px !important;

  background: #ffffff !important;
}
#petForm fieldset:first-of-type legend {
  color: #940012 !important; /* Brand Red */
  background: white !important;
  padding: 0 10px !important;
}
/* 2. THE RED HEADINGS: Nested in the gold line */
#petForm legend,
.meal-section h5 {
  color: #940012 !important; /* Brand Red */
  font-family: "Merriweather", serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  padding: 0 15px !important;
  background: white !important; /* Clears the gold line behind text */
}

/* 3. COMPACT FIELDS: No stretching over the entire page */
.form-row {
  display: flex !important;
  gap: 15px !important;
  flex-wrap: nowrap !important; /* Keeps fields side-by-side */
  margin-bottom: 15px !important;
  align-items: flex-end !important;
}
/* 2. Compact Grid Rows */
#petForm .form-row {
  display: flex !important;
  gap: 15px !important;
  margin-bottom: 20px !important;
  align-items: flex-end !important;
}
/* Specific width controls for a tidy look */
#petName,
#petBreed,
#petGroomerCompany {
  flex: 2 !important;
}

/* 4. BOUTIQUE INPUT STYLING */
#petForm input,
#petForm select,
#petForm textarea {
  padding: 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-family: "Roboto", sans-serif !important;
  box-sizing: border-box !important;
}

/* 5. CLEAN ICON ACTIONS: Green + and Red Dustbin */
.material-icons[onclick*="add"] {
  color: #28a745 !important; /* Green */
  cursor: pointer !important;
}

.material-icons[onclick*="remove"] {
  color: #940012 !important; /* Brand Red */
  cursor: pointer !important;
}
/* 🐾 BOUTIQUE PET DETAILS: Compact & Framed */

/* 1. Header & Gold Frame */
#petForm fieldset:first-of-type {
  border: 2px solid #f1c605 !important;
  border-radius: 15px !important;
  padding: 25px !important;
  background: #ffffff !important;
}

#petForm fieldset:first-of-type legend {
  color: #940012 !important;
  font-weight: 700 !important;
  background: white !important;
  padding: 0 10px !important;
}

/* 2. Side-by-Side Row Spacing (Fixes the 'untidy' look) */
#petForm .form-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  margin-bottom: 15px !important;
  align-items: flex-end !important;
}
/* 🐱 BOUTIQUE CAT LITTER: Gold & Orange Alert Style */

/* 1. The Container: Uses your Gold Standard border */
#catLitterSection {
  border: 2px solid #f1c605 !important; /* Brand Gold */
  background-color: #fffaf0 !important; /* Very light boutique orange tint */
  border-radius: 12px !important;
  padding: 20px !important;
  margin: 15px 0 !important;
}

/* 2. Side-by-Side Question: Keeps it compact */
#catLitterSection .form-group {
  display: flex !important;
  align-items:flex-end !important;
  gap: 15px !important;
}

#petLitterBox {
  width: 100px !important; /* Tiny boutique dropdown */
}

/* 3. The Warning Note: Red Brand Accent */
.warning-note-border {
  border-left: 5px solid #940012 !important; /* Brand Red Safety Anchor */
  background: #ffffff !important;
  padding: 12px !important;
  margin: 10px 0 !important;
  border-radius: 4px !important;
}

/* 4. The Location Field: Professional width */
#petLitterLocation {
  width: 100% !important;
  max-width: 400px !important; /* Prevents stretching */
  margin-top: 8px !important;
}
/* Row 1: Name, Type, Breed */
#petName,
#petType,
#petBreed {
  flex: 1 !important;
  width: auto !important;
}

/* Row 2: Microchip & Birth Date */
#isMicrochipped {
  width: 120px !important;
}
#petMicrochipNo {
  flex: 1.5 !important;
}
#petDob {
  flex: 1 !important;
}



/* 3. THE PRO-TIP: Restored Brand Frame */
.pro-tip-box {
  background: #fff9c4 !important; /* Soft Gold Wash */
  border-left: 5px solid #f1c605 !important; /* Thick Gold Anchor */
  padding: 15px !important;
  border-radius: 8px !important;
  margin: 20px 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 12px !important;
}

/* 5. Life Status Compact Alignment */
.rainbow-bridge-section .form-row {
  justify-content: flex-start !important;
  gap: 30px !important;
}
/* 🐾 MAKES PET PHOTOS PERFECTLY SQUARE/CIRCULAR */
.pet-card-photo,
#petPhotoPreview {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important; /* This is the "Crop" magic! */
  object-position: center; /* Keeps the face in the middle */
  border-radius: 50%; /* Makes it a high-end circle */
  border: 2px solid #800000; /* Your Boutique Burgundy border */
}
/*========================================*/
/* 5. Booking
/*========================================*/
.action-button-pill {
  background-color: #940012;
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  transition: 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-button-pill:hover {
  background-color: #f1c40f;
  color: #000 !important;
  transform: scale(1.05);
}
/*========================================*/
/* 🐾 THE GOLD STANDARD: Boutique Footer */
/*========================================*/
footer {
  background-color: #f9f9f9 !important; /* Soft light grey background */
  padding: 20px 0 !important;
  border-top: 1px solid #eee;
  margin-top: 50px; /* Gives your tabs breathing room */
  width: 100%;
}

footer .container {
  display: flex !important;
  justify-content: space-between !important; /* Splits Copyright and Credit */
  align-items: center !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

footer p {
  font-size: 0.85rem !important;
  color: #666 !important;
  margin: 0 !important;
  font-family: "Roboto", sans-serif !important;
}

/* Designer Credit Styling */
.designer-credit {
  display: flex !important;
  align-items: flex-end !important;
  gap: 15px !important;
}

.designer-credit p {
  font-weight: 500 !important;
  color: #444 !important;
}

.designer-credit img {
  height: 35px !important; /* Keeps the Eden logo elegant and small */
  width: auto !important;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.designer-credit img:hover {
  opacity: 1;
}

/* Responsive fix for your S9 Ultra */
@media (max-width: 768px) {
  footer .container {
    flex-direction: column !important;
    gap: 15px !important;
    text-align: center !important;
  }
}
/* --- My Home Panel Layout --- */
#my-home-panel {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
}

.panel-header {
  margin-bottom: 25px;
  border-bottom: 2px solid #f1c40f; /* Primary Yellow */
  padding-bottom: 10px;
}

.panel-header h3 {
  color: #940012; /* Primary Red */
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.panel-subtitle {
  color: #555;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* --- Info Grid & Cards --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.boutique-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.boutique-card:hover {
  transform: translateY(-3px);
  border-color: #f1c40f;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  border-bottom: 1px weight light #eee;
  padding-bottom: 8px;
}

.card-title h4 {
  margin: 0;
  color: #000000; /* True Black */
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* --- Field Styling --- */
.field-group {
  margin-bottom: 12px;
}

.field-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #940012; /* Primary Red for labels */
  margin-bottom: 4px;
  text-transform: uppercase;
}

.display-box {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #f1c40f; /* Yellow accent stripe */
  font-size: 0.95rem;
  color: #2c3e50; /* Gunmetal Gray tone */
  min-height: 20px;
}

.highlight-box {
  background: #fff9e6; /* Very light yellow for hidden items */
  border-left-color: #940012;
}

/* --- Contact & Buttons --- */
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 8px 10px;
  border-radius: 6px;
}

.click-to-call {
  color: #940012;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.icon-btn-small {
  background: #940012;
  color: white;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-btn-small:hover {
  background: #000;
}

/* --- 1. Layout & Grid (Side-by-Side Dashboard) --- */
.security-split-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  padding: 10px;
}

.staff-sub-card {
  flex: 1 1 480px; /* Forces side-by-side on desktop (min 480px) */
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .staff-sub-card {
    flex: 1 1 100%; /* Stacks vertically on mobile */
  }
}

/* --- 2. Typography & Brand Accents --- */
.section-label,
.accent-yellow {
  color: #940012; /* Primary Red */
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 15px;
  border-left: 5px solid #f1c40f; /* Primary Yellow Accent */
  padding-left: 12px;
  letter-spacing: 1px;
  display: block;
}

/* --- 3. Inputs & Boutique Styling --- */
.boutique-card input,
.boutique-card select,
.boutique-card textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
  transition: all 0.3s;
}

.boutique-card input:focus {
  outline: none;
  border-color: #940012;
  box-shadow: 0 0 5px rgba(148, 0, 18, 0.1);
}

/* --- 4. Schedule Grid Styling --- */
.schedule-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin: 15px 0;
}

.day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #fff;
  border-bottom: 1px solid #f9f9f9;
}

.day-row:nth-child(even) {
  background: #fafafa;
}

.day-row span {
  font-weight: 700;
  color: #000000;
  width: 80px;
}

.day-row input {
  border: 1px solid #ddd !important;
  text-align: center;
  width: 140px;
  padding: 4px;
  border-radius: 4px;
  font-family: monospace;
}

/* --- 5. Boutique Save Button (Pill Style) --- */
.save-btn,
.btn-save-changes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #940012;
  color: #f1c40f;
  border: 1px solid #f1c40f;
  border-radius: 50px;
  padding: 8px 20px;
  width: fit-content;
  min-width: 160px;
  margin: 15px auto;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-btn:hover {
  background-color: #000000;
  color: #fff;
  border-color: #940012;
}
/* This is the magic fix for the "Authorized Entry" card specifically */
.security-highlight {
  display: flex !important;
  flex-direction: column !important; /* Keep title at the top */
  width: 100% !important;
}

/* This forces the sub-sections to sit side-by-side on big screens */
@media (min-width: 1024px) {
  .security-split-container {
    display: flex !important;
    flex-direction: row !important; /* SIDE BY SIDE */
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: flex-start !important;
  }

  .staff-sub-card {
    /* This makes sure two cards fit perfectly side-by-side */
    flex: 0 1 calc(50% - 20px) !important;
    min-width: 400px !important;
  }
}
/* 💊 THE BOUTIQUE MEDICAL LEDGER CARD */
.med-detail-card {
  background: #fef9f9 !important; /* Soft Red Tint */
  padding: 15px !important;
  border-radius: 12px !important;
  border-left: 5px solid var(--primary-red) !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 10px rgba(148, 0, 18, 0.05) !important;
  transition: transform 0.2s ease;
}

.med-detail-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(148, 0, 18, 0.08) !important;
}

.med-detail-card small {
  display: inline-block;
  margin-top: 5px;
  letter-spacing: 0.5px;
}
/* Add this inside the <style> tag of printBoutiqueMenu */
.meal-results-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.shopping-card {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}
/* Update the styles in printBoutiqueBlueprint */
.print-section {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
}
#detoxGuide {
  background-color: #fdf2ff !important;
  border-left: 5px solid #a217b8 !important;
}
#pooRule {
  background-color: #f9f9f9 !important;
  border-left: 5px solid #444 !important;
}
#behavioralRule {
  background-color: #fcfcfc !important;
  border-left: 5px solid #940012 !important;
}

/* Critical: Force the browser to print the background colors */
* {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
/* 🐾 NEW: The Security Suitcase Control */
.hidden-initially {
  display: none; /* Keep it packed until the button is clicked */
}
.save-chip-btn {
  background: #f1c40f; /* Primary Yellow */
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.save-chip-btn:hover {
  background: #940012; /* Changes to Red on hover */
  color: #fff;
}

.card-footer-save {
  text-align: right;
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.save-chip-btn {
  background: #f1c40f; /* Primary Yellow */
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.save-chip-btn:hover {
  background: #940012; /* Changes to Red on hover */
  color: #fff;
}

.card-footer-save {
  text-align: right;
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.btn-outline-gold {
  background: transparent;
  border: 2px solid #f1c40f;
  color: #000;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s all ease;
  font-family: "Playfair Display", serif;
}

.btn-outline-gold:hover {
  background: #f1c40f;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* Make the green add buttons pulse slightly when data is present in the line input */
.boutique-input-group input:not(:placeholder-shown) ~ .delete-icon-btn {
  animation: pulseButton 1.5s infinite alternate;
  color: #28a745 !important;
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(40, 167, 69, 0));
  }
  100% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(40, 167, 69, 0.4));
  }
}
/* --- 🏁 THE FINAL WORD: Boutique Layout Reset --- */
/* Forces all form groups to align text on top and inputs to stretch */
.form-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    align-items: flex-end !important;
    width: 100% !important;
}

.form-group {
    flex: 1 !important;
    min-width: 0 !important; /* Prevents boxes from overflowing */
}

/* Forces weight and age boxes to behave properly */
#petAge, 
#petWeight, 
#petGoalWeight {
    width: 100% !important;
    min-width: 80px !important;
    text-align: center !important;
}

/* Ensure labels are always stacked above inputs */
.form-group label {
    display: block !important;
    margin-bottom: 5px !important;
}
/* --- Clean Icon Buttons (Trash Cans & Plus Signs) --- */
.delete-icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-icon-btn:hover {
    opacity: 0.6;
}
/* =========================================
   🐾 PRINT VIEW OPTIMIZATION
   ========================================= */
@media print {
    /* Hide everything on the page by default */
    body * {
        visibility: hidden;
    }

    /* Make ONLY the quote breakdown content visible */
    #quoteBreakdownModal, 
    #quoteBreakdownModal * {
        visibility: visible;
    }

    /* Reposition the modal so it sits perfectly at the top left of the printed page */
    #quoteBreakdownModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: white !important;
        box-shadow: none !important;
    }

    /* Hide the print and close buttons so they don't show up on the paper */
    #quoteBreakdownModal button {
        display: none !important;
    }
    
    /* Ensure the black header box prints its background color properly */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
/* ==========================================
   📱 MOBILE BOTTOM SCROLLING NAVIGATION BAR
   ========================================== */
@media screen and (max-width: 768px) {
  /* 1. Pin the navigation bar to the bottom of the screen */
  .dashboard-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 2px solid #f0c605 !important; /* Boutique Gold accent */
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Force items into a single line */
    overflow-x: auto !important; /* Enable smooth horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    z-index: 10000 !important;
    box-sizing: border-box !important;
  }

  /* 2. Style individual navigation tabs for the bottom bar */
  .dashboard-tab {
    flex: 0 0 auto !important; /* Prevent tabs from shrinking */
    white-space: nowrap !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    border: 1px solid #ddd !important;
    background: #fdfdfd !important;
  }

  /* 3. Add bottom padding to the main content wrapper so the fixed nav bar doesn't overlap your cards */
  .dashboard main,
  #client-dashboard,
  .section-data-wrapper,
  #main-content {
    padding-bottom: 90px !important;
  }
}
/* ==========================================
   📱 FULL-WIDTH MOBILE CARDS & PANELS
   ========================================== */
@media screen and (max-width: 768px) {
  /* 1. Remove outer padding and margins from main wrappers on small screens */
  .dashboard main,
  #client-dashboard,
  .section-data-wrapper {
    padding: 10px !important;
    margin: 0 auto !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* 2. Force profile cards, sections, and form containers to span 100% width */
  .profile-card,
  .form-section,
  .boutique-card,
  #clientProfileForm fieldset,
  #petForm fieldset {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
  }

  /* 3. Adjust the grid layout inside the profile card for mobile stacking */
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}