/* === GLOBAL STYLESHEET.CSS FOR ALL PAGES === */

/* ─── Modern Color Scheme & Variables ─── */
:root {
  --primary-green: #2d5a3d;
  --primary-green-dark: #1e3a2a;
  --primary-green-light: #244d24;
  --primary-blue: #2196F3;
  --primary-blue-light: #42A5F5;
  --danger-red: #f44336;
  --danger-red-light: #ef5350;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
}

#sidebar,
#navbar {
  background-color: #2d5f2d !important;
}

/* ─── Enhanced Top Navigation (For All Pages) ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0px;   /* exactly your sidebar's width */
  right: 0;
  height: 130px;  /* make it a bit taller */
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  color: var(--primary-green);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-bottom: 2px solid rgba(45, 90, 61, 0.1);
  margin: 0;     /* remove any stray margins */
  transition: all 0.3s ease;
}

/* Logo Enhancement */
#navbarimg {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#navbarimg img {
  height: 48px;
}



/* Centered search bar (Enhanced) */
#ClientSearch {
  flex: 1 1 300px;
  max-width: 500px;
  margin: 0 24px;
}

#ClientSearch input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(45, 90, 61, 0.2);
  border-radius: 25px;
  background: rgba(255,255,255,0.9);
  color: var(--primary-green);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: 1rem;
}

#ClientSearch input::placeholder {
  color: rgba(45, 90, 61, 0.6);
}

#ClientSearch input:focus {
  outline: none;
  background: rgba(255,255,255,1);
  border-color: var(--primary-green);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(45, 90, 61, 0.2);
}

/* Right-side buttons area */
#navbarbttns {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Enhanced Create Button */
#create-dropdown-container,
.account-dropdown-container {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 16px;
}

#create-dropdown-container > button {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white !important;
  border: none !important;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

#create-dropdown-container > button:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
}

/* Enhanced Account dropdown button */
.account-btn {
  background: rgba(45, 90, 61, 0.1) !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--primary-green) !important;
  transition: all 0.3s ease;
}

.account-btn:hover {
  background: rgba(45, 90, 61, 0.15) !important;
  transform: translateY(-2px);
}

.account-btn .account-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Tuck dropdown menus under their toggles */
#createDropdownMenu,
.account-dropdown-container .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 160px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 100;
}

#createDropdownMenu.hidden,
.account-dropdown-container .dropdown-menu.hidden {
  display: none;
}

#createDropdownMenu div {
  padding: 8px 12px;
  cursor: pointer;
}

#createDropdownMenu div:hover {
  background-color: #f0f0f0;
}

.hidden {
  display: none;
}

/* ─── Enhanced Sidebar (For All Pages) ─── */
#websitecontainer > div:first-child {
  position: fixed;
  top: 80px;       /* the height of your fixed navbar */
  left: 0;
  bottom: 0;
  width: 200px;    /* your sidebar width */
  overflow-y: auto;
}

#sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 200px;
  flex: 0 0 50px;
  background: linear-gradient(180deg, var(--primary-green) 0%, var(--primary-green-dark) 100%) !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 80px;  /* push menu items below the sticky navbar */
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

#sidebar div {
  width: 100%;
}

#sidebar a button {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 16px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#sidebar a button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  transition: width 0.3s ease;
}

#sidebar a button:hover::before {
  width: 100%;
}

#sidebar a button:hover,
#sidebar a button.active {
  background: rgba(255,255,255,0.1);
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Main Content Area */
#rightsidepagecontainer {
  position: fixed;
  top: 130px;       /* same navbar height */
  left: 200px;     /* just to the right of sidebar */
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 24px;   /* keep your usual padding */
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

/* Content containers */
#contentcontainer {
  height: 82%;
}

#contentnavbar {
  height: 0%;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

#rightsidecontentnavbar {
  flex: 1 1 50%;
  display: flex;
  justify-content: space-around;
  margin-right: 10px;
}

#rightsidecontentnavbarbttns {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  /* Hide original view buttons since we have modern ones */
  display: none;
}



#leftsidecontentnavbar {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  margin-left: 20px;
  /* Hide original navigation since we have modern ones */
  display: none;
}

/* ===== MODERN CALENDAR INTEGRATION STYLES ===== */

/* Modern Calendar Container Overrides */
#mainconentcalendar {
  padding: 0;
  margin: 0;
  height: calc(100vh - 180px);
  background: transparent;
}

/* Modern Calendar Header */
.modern-calendar-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px 20px 0 0;
  padding: 24px 32px;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.modern-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modern-calendar-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #475569);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.modern-view-controls {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.modern-view-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.modern-view-btn.active {
  background: white;
  color: #1e293b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-view-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: #1e293b;
}

.modern-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modern-month-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modern-nav-button {
  width: 48px;
  height: 48px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #475569;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.modern-nav-button:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.modern-current-month {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  min-width: 200px;
  text-align: center;
}

.modern-today-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modern-today-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Modern Calendar Grid Container */
.modern-calendar-container {
  background: white;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  height: calc(100% - 140px);
}

/* Calendar styles - Updated for modern look */
#calendarmonth {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 100%;
  margin: 0;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

#calendarmonth div:nth-child(n+8) {
  border: 1px solid #f1f5f9;
}

#calendarmonth div:nth-child(n+8) {
  border-top: none;
}

/* Modern Day Headers */
.day {
  padding: 20px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #64748b;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-bottom: 2px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

/* Modern Date Cells */
.date {
  min-height: 140px;
  padding: 16px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  text-align: left;
  border: 1px solid #f1f5f9;
}

.date:hover {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.date.other-month {
  background: #f8fafc;
  color: #94a3b8;
  opacity: 0.5;
}

.date.today {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
  border: 2px solid #3b82f6 !important;
  font-weight: bold;
}

/* Modern Date Numbers */
.date-container {
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date.today .date-container {
  color: #1d4ed8;
}

.day-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
}

.date.today .day-indicator {
  background: #1d4ed8;
}

/* Add Event Button */
.add-event-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: #e2e8f0;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.date:hover .add-event-btn {
  opacity: 1;
}

.add-event-btn:hover {
  background: #3b82f6;
  color: white;
  transform: scale(1.1);
}

/* Views for week and year */
.controls {
  margin-bottom: 20px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.week-grid {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  gap: 2px;
}

.time-column {
  display: flex;
  flex-direction: column;
}

.time-slot {
  height: 50px;
  border-bottom: 1px solid #ccc;
  text-align: right;
  padding-right: 5px;
}

.day-boxes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.month {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 5px;
}

.day-small {
  border: 1px solid #ddd;
  text-align: center;
  padding: 3px;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* dark overlay */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal.open {
  display: flex; /* show the modal by using flex layout */
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* Close button */
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
}

/* Appointment Modal (only one set of rules) */
.modalappointmentclass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modalappointmentclass.open {
  display: flex;
}

.modalappointment-inner {
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Appointment Adder Form */
.appointment-adder-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointment-adder-form h2 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  text-align: center;
  color: #333;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #444;
}

.form-row input,
.form-row select,
.dropdown-btn {
  padding: 8px;
  font-size: 1rem;
  border-radius: 4px;
}

/* Buttons */
.actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#submitAppointment {
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

#submitAppointment:hover {
  background: #0056b3;
}

.cancel-btn {
  background: #ddd;
  color: #333;
  border: none;
  cursor: pointer;
}

.cancel-btn:hover {
  background: #bbb;
}

/* Dropdown Buttons for Date/Time */
.dropdown-btn {
  border: 1px solid #ccc;
  background: #f9f9f9;
  text-align: left;
  cursor: pointer;
}

/* Hidden Dropdown Content for Date/Time */
.date-picker-dropdown,
.time-picker-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 4px;
  padding: 8px;
  display: none; /* Closed by default */
  z-index: 99999;
}

.date-picker-dropdown.open,
.time-picker-dropdown.open {
  display: block;
}

#date-dropdown-content,
#time-dropdown-content {
  display: flex;
  gap: 8px;
}

/* Appointments inside Calendar Cells - Modern styling */
.appointment-container {
  margin-top: 5px;
}

.appointment {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
}

.appointment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.appointment:hover::before {
  opacity: 1;
}

.appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Appointment Color Variants */
.appointment[style*="rgb(16, 185, 129)"],
.appointment[style*="#10b981"] {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.appointment[style*="rgb(16, 185, 129)"]:hover,
.appointment[style*="#10b981"]:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.appointment[style*="rgb(245, 158, 11)"],
.appointment[style*="#f59e0b"] {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.appointment[style*="rgb(245, 158, 11)"]:hover,
.appointment[style*="#f59e0b"]:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.appointment-adder-form input[list] {
  position: relative;
  z-index: 10000;
}

.client-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10000;
  display: none; /* Hidden by default */
}

.client-dropdown .option {
  padding: 8px;
  cursor: pointer;
}

.client-dropdown .option:hover {
  background: #eee;
}

/* Combined timeline entry card styling */
.entry-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  margin: 10px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #fff;
}

.entry-header {
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}

.entry-content {
  font-size: 0.95rem;
  color: #555;
  margin-top: 8px;
}

/* Blue Buttons */
.fill-out-btn {
  margin-top: 8px;
  margin-right: 6px;
  padding: 6px 12px;
  border: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.fill-out-btn:hover {
  background-color: #0056b3;
}

/* Filter Bar */
#filter-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

#filter-bar label {
  font-weight: 600;
  color: #444;
}

/* Inline Editor Containers */
.inline-editor,
.inline-appt-editor {
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  background: #fefefe;
}

/* Blue Toolbar Overrides for Inline Quill Editors */
.inline-editor .ql-toolbar.ql-snow,
.inline-appt-editor .ql-toolbar.ql-snow {
  background-color: #007bff !important;
  border-radius: 4px 4px 0 0;
}

.inline-editor .ql-toolbar.ql-snow .ql-stroke,
.inline-appt-editor .ql-toolbar.ql-snow .ql-stroke {
  stroke: #fff;
}

.inline-editor .ql-toolbar.ql-snow .ql-picker-label,
.inline-appt-editor .ql-toolbar.ql-snow .ql-picker-label,
.inline-editor .ql-toolbar.ql-snow .ql-picker-options,
.inline-appt-editor .ql-toolbar.ql-snow .ql-picker-options {
  color: #fff;
}

.inline-editor .ql-toolbar.ql-snow .ql-picker-label:hover,
.inline-appt-editor .ql-toolbar.ql-snow .ql-picker-label:hover {
  color: #ddd;
}

.inline-editor .ql-container.ql-snow .ql-editor,
.inline-appt-editor .ql-container.ql-snow .ql-editor {
  min-height: 80px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.entry-item.filled-out {
  background-color: #d4edda;
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 12px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 9999;
}

/* Modern modal form styling */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  max-width: 400px;
  margin: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s ease;
}

.modern-form h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-green);
  font-size: 1.8rem;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 4px;
}

.form-row input,
.form-row select {
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid rgba(45, 90, 61, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-actions button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.form-actions button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.4);
}

.form-actions button[type="button"] {
  background-color: #ccc;
}

/* Search input on mobile */
@media (max-width: 768px) {
  #ClientSearch {
    max-width: 200px;
    margin: 0 12px;
  }
  
  #navbar {
    padding: 0 12px;
    left: 0;
    height: 60px;
  }
  
  #sidebar {
    position: static;
    width: 100%;
    padding-top: 0;
    height: auto;
  }
  
  #rightsidepagecontainer {
    position: static;
    left: 0;
    top: 0;
    padding: 16px;
  }
  
  #websitecontainer {
    flex-direction: column;
  }
  
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
  }
  
  .nav-item {
    white-space: nowrap;
    padding: 0.5rem 1rem;
  }
  
  .content {
    padding: 1rem;
  }
  
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .table-container {
    overflow-x: auto;
  }

  /* Modern calendar mobile adjustments */
  .modern-calendar-header {
    padding: 20px;
  }
  
  .modern-header-top {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .modern-calendar-title {
    font-size: 24px;
    text-align: center;
  }
  
  .modern-header-controls {
    flex-direction: column;
    gap: 16px;
  }
  
  .date {
    min-height: 120px;
    padding: 12px;
  }
  
  .appointment {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 1) Make the wrapper of sidebar+filters a vertical column */
#websitecontainer > div:first-child {
  display: flex;
  flex-direction: column;
  width: 200px;         /* same as your sidebar width */
}

/* 2) Target "the div immediately after #sidebar" — that's your filter panel — 
      and give it some breathing room */
/* Responsive PDF overlays & fluid PDF rendering */
.pdf-page-wrapper {
  width: 100% !important;
  height: auto !important;
}
.pdf-canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
}
.field-overlay {
  position: absolute !important;
  box-sizing: border-box !important;
  /* Dynamic font-size handled in JS */
}


/* ─────────── UNIFORM 7-COLUMN CALENDAR ─────────── */
#calendarmonth {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;      /* make sure it fills its container */
  gap: 1px !important;          /* if you want that 1px gutter */
}

/* ─────── PREVENT APPOINTMENT TEXT WRAP ON MOBILE ─────── */
@media (max-width: 1024px) {
  .appointment {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    writing-mode: horizontal-tb !important;
  }
}
/* ─── Hide the first blank week row ─── */
#calendarmonth > .date:nth-child(n+8):nth-child(-n+14) {
  display: none !important;
}


/* ─── SHOW & GREY PREVIOUS MONTH DATES FOR ALL VIEWS ─── */
#calendarmonth .other-month .date-container {
  color: #94a3b8 !important;
  opacity: 0.6 !important;
  display: block !important;
}
