/* Enhanced style.css - Harmonized with App.css design system */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS Variables - Consistent with App.css */
:root {
  --primary-color: #54A3B1;
  --secondary-color: #EC058E;
  --dark-color: #232331;
  --light-bg: #FAFBFB;
  --card-bg: #F8F9FB;
  --white: #FFFFFF;
  --gray-text: #6c757d;
  --muted-text: #A7A7AD;
  --success-color: #61CE70;
  --danger-color: #FF3B3B;
  --light-color: #E1FAFE;
  --border-color: rgba(84, 163, 177, 0.1);
  --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-heavy: 0 12px 32px rgba(0, 0, 0, 0.12);
  --gradient-primary: linear-gradient(135deg, #54A3B1 0%, #EC058E 100%);
  --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8F9FB 100%);
  --border-radius: 16px;
  --border-radius-small: 8px;
  --font-family: "Inter Tight", sans-serif;
}

* { outline: none; };
html { scroll-behavior: smooth; }

/* Base Styles */
body {
  background-color: #F6F7FA;
  font-family: var(--font-family);
  color: var(--dark-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Layout Components */
.page-container, .container {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-container  > .mb-3, .page-container > #calendar {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.page-header {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-title, .card-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tab-content {
  background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
} 

#taxList {
  padding: 1.5rem;
}

#taxList.tax-item {
  box-shadow: none;
  background: var(--white);
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius-small);
  padding: 1rem;
  transition: all 0.2s ease;
}


.highlight {
  font-size: 1.25rem;
  font-weight: 500;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.25rem 0;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.highlight:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.page-header .btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-small);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Header Styles */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section .logo {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-section .logo:hover {
  color: var(--secondary-color);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--dark-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-small);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.user-section {
  display: flex;
  align-items: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--gray-text);
  font-weight: 500;
}

.logout-button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.logout-button:hover {
  background-color: var(--secondary-color);
}




/* Enhanced Card Styles */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0px;
  background: var(--gradient-primary);

}

.card:hover {
  /* placeholder property to satisfy linter without visual changes */
  --hover-placeholder: 1;
}

.card:hover::before {
  /* placeholder property to satisfy linter without visual changes */
  --hover-placeholder: 1;
}

.main-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.card-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Enhanced Button Styles */
.btn {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.5px;
  font-family: var(--font-family);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, #4a9199 0%, #3F94A4 100%);
  border-color: #3F94A4;
  text-decoration: underline!important;  
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #d8047d 100%);
  border-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(236, 5, 142, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #d8047d 0%, #E73F53 100%);
  border-color: #E73F53;
  box-shadow: 0 6px 16px rgba(236, 5, 142, 0.4);
  color: var(--white);
  text-decoration: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #52b75f 100%);
  border-color: var(--success-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(97, 206, 112, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #52b75f 0%, #47a555 100%);
  box-shadow: 0 6px 16px rgba(97, 206, 112, 0.4);
  color: var(--white);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #e54e00 100%);
  border-color: var(--danger-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 91, 0, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #e54e00 0%, #cc4500 100%);
  box-shadow: 0 6px 16px rgba(255, 91, 0, 0.4);
  color: var(--white);
}

/* Outline Button Variants */
.btn-outline-dark {
  background: transparent;
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}

.btn-outline-dark:hover {
  background: var(--dark-color);
  color: var(--white);
  text-decoration: none;
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger-color);
  border: 2px solid var(--danger-color);
}

.btn-outline-danger:hover {
  background: var(--danger-color);
  color: var(--white);
  text-decoration: none;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

.btn-outline-secondary {
  background: transparent;
  color: var(--gray-text);
  border: 2px solid var(--gray-text);
}

.btn-outline-secondary:hover {
  background: var(--gray-text);
  color: var(--white);
  text-decoration: none;
}

/* Special Button Styles */
.btn-secondary[href="/"], 
.btn-secondary[data-bs-dismiss="modal"], 
.btn-secondary[data-bs-target="#login-form"],
.btn-info.edit-seat, 
.btn-danger.delete-seat {
  background: var(--white);
  border: 2px solid var(--dark-color);
  color: var(--dark-color);
  box-shadow: var(--shadow-light);
}

.btn-secondary[href="/"]:hover, 
.btn-secondary[data-bs-dismiss="modal"]:hover, 
.btn-secondary[data-bs-target="#login-form"]:hover,
.btn-info.edit-seat:hover, 
.btn-danger.delete-seat:hover {
  background: var(--card-bg);
  border-color: var(--dark-color);
  color: var(--dark-color);
  text-decoration: none;
}

.btn-edit-custom {
  background: var(--white);
  border: 2px solid var(--dark-color);
  color: var(--dark-color);
  box-shadow: var(--shadow-light);
}

.btn-edit-custom:hover {
  background: var(--dark-color);
  color: var(--white);
  text-decoration: none;
}

/* Action Button Groups - Consistent Edit/Delete styling */
.btn-sm.btn-outline-primary,
.btn-sm.btn-outline-danger {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-small);
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  transition: all 0.2s ease;
}

/* Icon-only buttons (edit/delete) */
.btn-sm.btn-outline-primary.edit-service,
.btn-sm.btn-outline-danger.delete-service,
.btn-sm.btn-outline-primary.edit-category,
.btn-sm.btn-outline-danger.delete-category,
.edit-location-btn,
.edit-tax-btn,
.delete-tax-btn {
  min-width: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Show only icons for icon-only buttons */
.edit-location-btn:after,
.edit-tax-btn:after {
  content: '\f4cb'; /* pencil icon */
  font-family: 'bootstrap-icons';
  position: absolute;
  text-indent: 0;
  font-size: 0.875rem;
}

.delete-tax-btn:after {
  content: '\f5de'; /* trash icon */
  font-family: 'bootstrap-icons';
  position: absolute;
  text-indent: 0;
  font-size: 0.875rem;
}

.btn-sm.btn-outline-primary:hover,
.btn-sm.btn-outline-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Page Header Button Styling */
.page-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(84, 163, 177, 0.3);
  transition: all 0.3s ease;
}

.page-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  box-shadow: 0 6px 16px rgba(236, 5, 142, 0.4);
  transform: translateY(-1px);
  color: var(--white);
  text-decoration: none;
}


.services-navbar,
.settings-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
}

.services-navbar .navbar-brand,
.settings-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.services-profile-dropdown .dropdown-toggle,
.settings-profile-dropdown .dropdown-toggle {
  border: none;
  background: transparent;
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.services-profile-dropdown .dropdown-toggle:hover,
.settings-profile-dropdown .dropdown-toggle:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.services-profile-dropdown .dropdown-toggle::after,
.settings-profile-dropdown .dropdown-toggle::after {
  display: none;
}

/* Service Item Cards */
.service-item {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius-small);
  padding: 1rem;
  transition: all 0.2s ease;
}

.service-item:hover {
  /* placeholder property to satisfy linter without visual changes */
  --hover-placeholder: 1;
}


.btn-delete-custom {
  background: var(--white);
  border: 2px solid var(--danger-color);
  color: var(--danger-color);
  box-shadow: var(--shadow-light);
}

.btn-delete-custom:hover {
  background: var(--danger-color);
  color: var(--white);
  text-decoration: none;
}


/* (moved) modal-show dialog width handled in Modal and Backdrop Customizations below */

/* Site toast - reusable toast styling used across the app
   Use existing design system variables for colors, border radius and shadows
   Add modifier classes for success/danger states to keep toasts consistent */
.site-toast {
  border-radius: var(--border-radius-small);
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow-medium);
  background: var(--white);
  color: var(--dark-color);
  border: 1px solid var(--border-color);
  min-width: 200px;
  max-width: 360px;
  overflow: hidden;
}

.site-toast .toast-body {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
}

/* Success/danger modifiers use the theme colors but keep the same shape */
.site-toast--success {
  background: linear-gradient(90deg, rgba(84,163,177,0.08) 0%, rgba(97,206,112,0.06) 100%);
  border: 1px solid rgba(97,206,112,0.15);
  color: var(--dark-color);
}

.site-toast--danger {
  background: linear-gradient(90deg, rgba(255,59,59,0.06) 0%, rgba(255,59,59,0.03) 100%);
  border: 1px solid rgba(255,59,59,0.12);
  color: var(--dark-color);
}

/* Ensure the small close button looks correct on a light toast */
.site-toast .btn-close {
  filter: none;
}

/* Settings save toast - muted appearance and icon */
#settingsSaveToast {
  --toast-bg: rgba(255,255,255,0.92);
  --toast-border: rgba(84,163,177,0.08);
  --toast-text: var(--muted-text);
  background: var(--toast-bg) !important;
  color: var(--toast-text) !important;
  border: 1px solid var(--toast-border) !important;
  box-shadow: var(--shadow-light) !important;
  padding: 0.4rem 0.6rem !important;
  margin: 0.25rem !important;
  border-radius: 10px !important;
  min-width: 120px;
}

#settingsSaveToast .toast-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--muted-text) !important;
}

/* Prepend a muted bootstrap check icon using a small inline SVG */
#settingsSaveToast .toast-body::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23A7A7AD' d='M13.485 1.929a1 1 0 0 1 1.415 1.415l-8.192 8.192a1 1 0 0 1-1.415 0L1.1 8.748A1 1 0 0 1 2.515 7.33l3.148 3.148 7.822-7.822z'/%3E%3C/svg%3E");
}

#settingsSaveToast .btn-close {
  opacity: 0.6;
}

/* Social Media Button Styles */
.btn-google {
  background: var(--white);
  color: var(--dark-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-light);
}

.btn-google:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow-medium);
}

.btn-facebook {
  background: linear-gradient(135deg, #106C93 0%, #0d5a7a 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 108, 147, 0.3);
}

.btn-facebook:hover {
  background: linear-gradient(135deg, #3F94A4 0%, #106C93 100%);
  box-shadow: 0 6px 16px rgba(16, 108, 147, 0.4);
}

.btn-twitter {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a24 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(35, 35, 49, 0.3);
}

.btn-twitter:hover {
  background: linear-gradient(135deg, var(--muted-text) 0%, var(--dark-color) 100%);
  box-shadow: 0 6px 16px rgba(35, 35, 49, 0.4);
}

/* Form Controls */
.form-control {
  background-color: var(--white);
  border: 2px solid #e9ecef;
  border-radius: 10px;
  color: var(--dark-color);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(84, 163, 177, 0.15);
  background-color: var(--white);
  color: var(--dark-color);
  outline: none;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a9199 100%);
  color: var(--white);
  border-radius: 10px 10px 0 0;
  box-shadow: var(--shadow-light);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(84, 163, 177, 0.15);
  border-color: var(--primary-color);
}

/* Pagination Styles */
.page-link.active, .active > .page-link {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a9199 100%);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-light);
}

.dropdown-item.active, .dropdown-item:active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a9199 100%);
  color: var(--white);
}

/* Navigation Bar Styles */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
}

.navbar .container-fluid {
  max-width: 800px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-profile-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: solid 2px var(--primary-color);
  object-fit: cover;
}

.profile-dropdown .dropdown-toggle {
  border: none;
  background: transparent;
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.profile-dropdown .dropdown-toggle:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.profile-dropdown .dropdown-toggle::after {
  display: none;
}

/* Specific preview size for profile image in edit modal */
#profileImagePreview {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

/* Button hover micro-interaction used across the site */
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 163, 177, 0.3);
}

/* Gradient Background for Pages */
.gradient-background {
  background: linear-gradient(135deg, #F6F7FA 0%, #E1FAFE 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

/* Shop Card Styles */
.shop-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
  background: var(--card-bg);
  cursor: pointer;
}

.shop-card:hover {
  box-shadow: var(--shadow-light);
  border-color: var(--primary-color);
}

.shop-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.shop-role-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
}

.seat-info {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
}

/* Highlight Text */
.highlight {
  color: var(--secondary-color);
  font-weight: 600;

}

/* Tab Navigation */
.nav-tabs .nav-link.active {
  color: var(--dark-color);
  background-color: var(--white);
  border-color: var(--primary-color) var(--primary-color) var(--white);
  font-weight: 600;
}

.nav-tabs .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-color: var(--primary-color);
  color: var(--dark-color);
}

/* Enhanced Image Preview Components */
.service-image-preview, .shop-image-preview {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 8px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-small);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: grab;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  background: var(--gradient-card);
}
.btn-gray-outline {
  color: var(--gray-text) !important;
  border-color: var(--gray-text) !important;
  background: transparent;
}
.btn-gray-outline:hover {
  background: var(--gray-text);
  color: var(--white) !important;
  border-color: var(--gray-text) !important;
}
.btn-g-connect {
  color: var(--white) !important;
  background: var(--bs-blue) !important;
  border-color: var(--bs-blue) !important;
}
.btn-g-connect:hover {
  filter: brightness(0.95);
}

.service-image-preview:hover, .shop-image-preview:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.service-image-preview:active, .shop-image-preview:active {
  cursor: grabbing;
}

.service-image-preview img, .shop-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.service-image-preview .delete-image, .shop-image-preview .delete-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, var(--danger-color) 0%, #e54e00 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 91, 0, 0.3);
}

.service-image-preview .delete-image:hover, .shop-image-preview .delete-image:hover {
  background: linear-gradient(135deg, #e54e00 0%, #cc4500 100%);
  box-shadow: 0 4px 12px rgba(255, 91, 0, 0.4);
}

.service-image-preview.over, .shop-image-preview.over {
  border: 2px dashed var(--primary-color);
  background: linear-gradient(135deg, rgba(84, 163, 177, 0.1) 0%, rgba(84, 163, 177, 0.05) 100%);
}

/* Service Card Images */
.service-card-images {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.service-card-image, .seat-card-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-small);
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.service-card-image:hover, .seat-card-image:hover {
  border-color: var(--primary-color);
}

/* Color Swatch Styles */
.color-swatch {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.color-swatch:hover {
  box-shadow: var(--shadow-medium);
}

.color-swatch.selected {
  border-color: var(--dark-color);
  box-shadow: 0 0 0 2px rgba(35, 35, 49, 0.2);
}

/* Enhanced Seat Styles */
.seat-item, .seat-selector {
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 8px;
  margin: 8px;
  display: inline-block;
  vertical-align: top;
  background: var(--gradient-card);
  box-shadow: var(--shadow-light);
  opacity: 0.8;
}

.seat-item:hover, .seat-selector:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
  opacity: 1;
}

.seat-item.active, .seat-selector.active {
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 0 2px rgba(84, 163, 177, 0.2);
  opacity: 1;
  background: linear-gradient(135deg, rgba(84, 163, 177, 0.1) 0%, var(--white) 100%);
}

.seat-item.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f8f9fa;
}

.seat-item.disabled:hover {
  border-color: var(--border-color);
}

.seat-selector img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: none;
}

.seat-selector .seat-name {
  font-size: 0.80em;
  margin-top: 0px;
  word-wrap: break-word;
  font-weight: 500;
  color: var(--dark-color);
}

/* Seat Name Animation */
.seat-name {
  width: 100%;
  height: 20px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.seat-name-text {
  display: inline-block;
  animation: none;
}

.seat-name-text.scroll {
  animation: scroll-text 3s linear infinite;
}

@keyframes scroll-text {
  0% { transform: translateX(0); }
  50% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* Marquee Animation */
.seat-item.marquee span {
  animation: bounce 5s ease-in-out infinite alternate;
}

@keyframes bounce {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100% - 100%)); }
}

/* Location Section Styles */
.location-section, .location-card {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 20px;
  margin-bottom: 20px;
  background: var(--gradient-card);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.location-section:hover, .location-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.location-section.inactive {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  opacity: 0.7;
}

.seats-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--border-color);
}

/* Location Info Styles */
.location-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-small);
  background: var(--gradient-card);
  box-shadow: var(--shadow-light);
}

.location-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-small);
  border: 2px solid var(--border-color);

.profile-preview-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.location-image:hover {
  border-color: var(--primary-color);
}


.seat-selection-container {
  background: var(--white);
}

/* Profile Image Styles */
.profile-image-display, .seat-image-preview {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius-small);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.profile-image-display:hover, .seat-image-preview:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-heavy);
}

/* Small helper for seat/profile thumbnails used across the site */
.seat-profile, .seat-profile-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.profile-image-options-container {
  background: var(--gradient-card);
  border-radius: var(--border-radius-small);
  padding: 20px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.profile-image-option {
  width: 60px !important;
  height: 60px !important;
  margin: 6px !important;
  cursor: pointer !important;
  border-radius: var(--border-radius-small) !important;
  border: 2px solid transparent !important;
  transition: all 0.3s ease !important;
  object-fit: cover !important;
  box-shadow: var(--shadow-light) !important;
}

.profile-image-option:hover {
  border-color: var(--primary-color) !important;
  box-shadow: var(--shadow-medium) !important;
}

.profile-image-option.selected {
  border-color: var(--dark-color) !important;
  box-shadow: 0 0 0 3px rgba(35, 35, 49, 0.2) !important;
}

/* Image Preview Container */
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: var(--border-radius-small);
  border: 1px solid var(--border-color);
}

.image-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-small);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-card);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.image-preview-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .delete-button {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, var(--danger-color) 0%, #e54e00 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 91, 0, 0.3);
}

.image-preview-item .delete-button:hover {
  background: linear-gradient(135deg, #e54e00 0%, #cc4500 100%);
  box-shadow: 0 4px 12px rgba(255, 91, 0, 0.4);
}

.image-preview-item.deleted {
  opacity: 0.5;
  border-color: var(--danger-color);
  background: linear-gradient(135deg, rgba(255, 91, 0, 0.1) 0%, rgba(255, 91, 0, 0.05) 100%);
}

/* Cropper Container */
.cropper-container {
  margin-top: 15px;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* Enhanced Section Headers */
.section-header {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 2.5rem 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Opening Hours Styles */
.time-input-group {
  background: var(--gradient-card);
  border-radius: var(--border-radius-small);
  padding: 20px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-light);
  margin-bottom: 15px;
}

.day-header {
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
  padding: 15px 20px;
  margin: -20px -20px 15px -20px;
}

.time-inputs-container {
  background: var(--white);
  border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
  padding: 20px;
  border: 2px solid var(--border-color);
  border-top: none;
  margin: 15px -20px -20px -20px;
}

.opening-hours-location-selector {
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--border-radius-small);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-medium);
}

.no-location-message {
  background: var(--card-bg);
  border: 2px dashed var(--muted-text);
  border-radius: var(--border-radius-small);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--gray-text);
  margin: 2rem 0;
  font-style: italic;
}

/* FullCalendar Enhanced Styles */
.fc .fc-daygrid-day-frame, .fc .fc-daygrid-day {
  background-color: var(--white);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.fc-daygrid-day.fc-day-today {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a9199 100%) !important;
  color: var(--white) !important;
  border-radius: var(--border-radius-small) !important;
  box-shadow: var(--shadow-light);
}

.fc .fc-toolbar-title {
  color: var(--dark-color) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
}

.fc .fc-button {
  background: var(--primary-color);
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.fc .fc-button:hover {
  background: linear-gradient(135deg, #4a9199 0%, #3F94A4 100%) !important;
  border-color: #3F94A4 !important;
  box-shadow: var(--shadow-medium) !important;
}

.fc .fc-col-header-cell-cushion {
  color: var(--dark-color) !important;
  font-weight: 600 !important;
}

.fc .fc-daygrid-event {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #d8047d 100%) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(236, 5, 142, 0.3) !important;
}

.fc-theme-standard td, .fc-theme-standard th {
  border: 1px solid var(--border-color);
}

/* (moved) modal-backdrop rules consolidated in Modal and Backdrop Customizations below */

input.location-checkbox {
    outline: 1px solid #000000 !important;
}

/* Mobile Calendar Enhancements */
@media (max-width: 576px) {
  .fc {
    font-size: 12px;
    background: var(--gradient-card);
    border-radius: var(--border-radius-small);
    padding: 10px;
    box-shadow: var(--shadow-light);
  }

  .fc-timeGridWeek-button {
    display: none !important;
  }

  .fc .fc-daygrid-day-frame {
    height: auto;
    padding: 4px !important;
    margin: 1px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--white) !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
  }

  .fc .fc-daygrid-day-frame:hover {
    background: var(--card-bg) !important;
    border-color: var(--primary-color) !important;
  }

  .fc .fc-daygrid-day-number {
    font-size: 14px !important;
    text-decoration: none !important;
    text-align: center !important;
    padding: 4px !important;
    line-height: 1.2 !important;
    background: none !important;
    border: none !important;
    color: var(--dark-color) !important;
    font-weight: 500 !important;
  }

  .fc .fc-toolbar {
    height: auto;
    margin-bottom: 25px !important;
    padding: 0 5px !important;
    background: var(--gradient-card) !important;
    border-radius: var(--border-radius-small) !important;
    box-shadow: var(--shadow-light) !important;
  }

  .fc .fc-toolbar-title {
    font-size: 1.3rem !important;
    color: var(--dark-color) !important;
    font-weight: 700 !important;
  }

  .fc .fc-button {
    font-size: 14px !important;
    padding: 6px 12px !important;
  }

  .fc .fc-col-header-cell-cushion {
    font-size: 13px !important;
    padding: 8px 2px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
  }

  .fc .fc-col-header {
    height: auto !important;
    border: none !important;
    background: var(--gradient-card) !important;
  }

  .fc-day-today-custom {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(225, 250, 254, 0.7) 100%) !important;
    color: var(--dark-color) !important;
    border-radius: 6px !important;
    border: 2px solid var(--primary-color) !important;
  }

  .fc-day-has-events {
    background: linear-gradient(135deg, rgba(236, 5, 142, 0.1) 0%, rgba(236, 5, 142, 0.05) 100%) !important;
    color: var(--dark-color) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(236, 5, 142, 0.3) !important;
  }

  .fc .fc-daygrid-day {
    margin: 1px !important;
    padding: 0 !important;
    border: none !important;
  }

  .fc .fc-daygrid-event {
    display: block;
    font-size: 11px !important;
    padding: 2px 4px !important;
    margin: 1px !important;
  }

  .fc .fc-daygrid-body {
    padding: 0 !important;
  }

  .fc .fc-scrollgrid {
    border-collapse: separate !important;
    border: none !important;
    gap: 2px !important;
  }

  .fc .fc-scrollgrid-section > * {
    border: none !important;
  }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 0 0.5rem;
  }
  
  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .form-control {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  .card {
    margin: 0 0.5rem 1.5rem 0.5rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .service-image-preview, .shop-image-preview {
    width: 100px;
    height: 100px;
    margin: 6px;
  }
  
  .seat-item, .seat-selector {
    width: 90px;
    height: 90px;
    margin: 6px;
  }
  
  .profile-image-display, .seat-image-preview {
    width: 120px;
    height: 120px;
  }
  
  .section-header {
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
  }


}

@media (max-width: 576px) {
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .form-control {
    font-size: 0.9rem;
  }
  
  .card {
    margin: 0 0.25rem 1rem 0.25rem;
  }

  /* Ensure card bodies have a minimum height for consistent layout */
  .card-body {
    min-height: 280px;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .service-image-preview, .shop-image-preview {
    width: 80px;
    height: 80px;
    margin: 4px;
  }
  
  .seat-item, .seat-selector {
    width: 80px;
    height: 80px;
    margin: 4px;
  }
  
  .profile-image-display, .seat-image-preview {
    width: 100px;
    height: 100px;
  }
  
  .section-header {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
  }
  
  .location-info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .time-input-group, .opening-hours-location-selector {
    padding: 15px;
  }
  
  .day-header {
    padding: 12px 15px;
    margin: -15px -15px 10px -15px;
  }
  
  .time-inputs-container {
    padding: 15px;
    margin: 10px -15px -15px -15px;
  }

  /* .location-card .card-body and .seat-item-card .card-body layout tweaks intentionally removed */

  .card-button-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
  }

}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
  :root {
    --border-color: var(--primary-color);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 6px 16px rgba(0, 0, 0, 0.5);
  }
  
  .card, .location-section, .location-card {
    border: 2px solid var(--primary-color);
  }
  
  .form-control {
    border: 2px solid var(--dark-color);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn:hover,
  .card:hover,
  .service-image-preview:hover,
  .shop-image-preview:hover,
  .seat-item:hover,
  .location-section:hover,
  .form-control:focus {
    transform: none !important;
  }
  
  .seat-name-text.scroll,
  .seat-item.marquee span {
    animation: none !important;
  }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.seat-item:focus,
.seat-selector:focus,
.service-image-preview:focus,
.shop-image-preview:focus,
.color-swatch:focus,
.profile-image-option:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus-visible,
.form-control:focus-visible,
.seat-item:focus-visible,
.seat-selector:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  body {
    background: white !important;
    color: black !important;
    max-width: none !important;
    padding: 0 !important;
  }
  
  .btn {
    display: none;
  }
  
  .card, .location-section, .location-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
    background: white !important;
  }
  
  .service-image-preview, .shop-image-preview {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  a {
    text-decoration: underline !important;
    color: black !important;
  }
  
  .fc {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Loading and Animation States */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.5; 
  }
}

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

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(167, 167, 173, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(84, 163, 177, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(84, 163, 177, 0.5);
}

/* Modal and Backdrop Customizations
   Consolidated modal-related overrides so all stacking and sizing rules live in one place.
   These are conservative overrides that keep Bootstrap behaviour but ensure modals and
   backdrops stack correctly when page-level custom z-indexes or positioned parents exist.
*/
.modal {
  /* Keep modal stacking consistent; Bootstrap default is 1050 */
  z-index: 1050;
  /* Subtle overlay to dim background behind modal dialog */
  background: rgba(35, 35, 49, 0.85);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal.show .modal-dialog {
  /* Increase max width for larger modals used in settings pages */
  max-width: 800px !important;
}

.modal-backdrop.show {
  display: block !important;
  opacity: 0.5 !important;
}

/* Ensure backdrop sits below modal dialog content (Bootstrap uses --bs-backdrop-zindex)
   Subtract 1 so modal-content remains on top when custom z-index stacking occurs */
.modal-backdrop {
  z-index: calc(var(--bs-backdrop-zindex) - 1);
}

/* Placeholder Text Styling */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
  opacity: 0.7;
  font-style: italic;
}

.form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #9CA3AF;
  opacity: 0.7;
  font-style: italic;
}

.form-control::-moz-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #9CA3AF;
  opacity: 0.7;
  font-style: italic;
}

.form-control:-ms-input-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #9CA3AF;
  opacity: 0.7;
  font-style: italic;
}

/* Additional Utility Classes */
.text-center {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.text-muted {
  color: var(--muted-text) !important;
  font-weight: 500;
}

.text-danger {
  color: var(--danger-color) !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.text-success {
  color: var(--success-color) !important;
  font-weight: 500;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.d-grid {
  display: grid;
  margin-top: 2rem;
}
.fc-event-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 5px;
}

.fc-event-contact {
  font-size: 0.75rem;
  opacity: 0.8;
  color: #333;
  margin-top: 2px;
}

.client-profile-image-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.client-profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

@media (max-width: 576px) {
  .client-profile-image-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-profile-image {
    margin-bottom: 10px;
  }
}

@media (min-width: 768px) {
  .page-container, container {
    margin: 0 auto;
  }

}

@media (max-width: 1200px) {
  .page-container {
    max-width: 800px;
    
  }
  .seat-selector img {
    width: 40px!important;
    height: 40px!important;
  }
}

/* Universal Error Message Styles */
.error-message {
  background-color: var(--danger-color);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-small);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 91, 0, 0.2);
}

.error-message-inline {
  color: var(--danger-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* Login Page Styles */
body.login-page {
  background: linear-gradient(135deg, #F6F7FA 0%, #E1FAFE 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

.login-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 2.5rem;
}

.login-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-subtitle {
  color: var(--muted-text);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn-google {
  background: #fff;
  border: 2px solid #dadce0;
  color: #3c4043;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: var(--border-radius-small);
  padding: 0.75rem 1.5rem;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c8ca;
  color: #3c4043;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  background: var(--card-bg);
  color: var(--muted-text);
  padding: 0 1rem;
  font-size: 0.9rem;
}

.create-account-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.create-account-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.create-account-link a:hover {
  color: var(--secondary-color);
}

.forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--secondary-color);
}

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

.shake {
  animation: shake 0.6s ease-in-out;
}

/* Register Page Styles */
body.register-page {
  background: linear-gradient(135deg, #F6F7FA 0%, #E1FAFE 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-container {
  width: 100%;
  max-width: 520px;
  padding: 2rem;
}

.register-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 2.5rem;
}

.register-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.register-subtitle {
  color: var(--muted-text);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.login-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.login-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-link a:hover {
  color: var(--secondary-color);
}

.password-requirements {
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
}

.password-requirements .requirement {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.password-requirements .requirement i {
  margin-right: 0.5rem;
  width: 16px;
}

.requirement.valid {
  color: var(--success-color);
}

.requirement.invalid {
  color: var(--danger-color);
}

.hidden-element {
    display: none;
}

/* Utility: hide cropper container but allow measured height for animation/layout */
.cropper-container-hidden {
  display: none;
  max-height: 400px;
  overflow: hidden;
}

/* Visual indicator for the user's uploaded image in predefined selector */
.predefined-current {
  border: 2px solid var(--primary-color);
  position: relative;
}

.predefined-current::after {
  content: 'Uploaded';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Active selection marker for profile image options */
.predefined-active {
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 4px 10px rgba(84,163,177,0.18);
}

.predefined-active::after {
  display: none; /* hide uploaded badge when active to avoid overlap */
}

/* Hide delete buttons on service image thumbnails until hover */
.service-image-preview .button-delete,
.service-image-preview .delete-image {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.service-image-preview:hover .button-delete,
.service-image-preview:hover .delete-image {
  opacity: 1;
  visibility: visible;
}

.service-image-preview {
  position: relative;
}

.service-image-preview .button-delete,
.service-image-preview .delete-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 20px;
  font-size: 16px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Services Page Enhancements --- */
/* Ensure consistent larger height for service description textareas */
textarea.form-control#serviceDescription,
textarea.form-control.service-description-textarea {
  min-height: 220px;
  height: 220px;
}

/* --- Enhanced Admin Booking Modal Styles --- */
.admin-time-notice {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  border: 1px solid rgba(33, 150, 243, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.admin-time-notice .fas {
  color: #1976d2;
}

#eventModal .modal-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px 16px;
}

#eventModal .modal-header h5 {
  font-weight: 600;
  font-size: 1.25rem;
}

#eventModal .modal-header small {
  font-size: 0.875rem;
  opacity: 0.9;
}

#eventModal .modal-body {
  padding: 24px;
}

#eventModal .modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #dee2e6;
}

#eventModal .location-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

#eventModal .location-info:hover {
  background: #f0f2f5;
}

#eventModal .form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 8px;
}

#eventModal .form-label.fw-bold {
  font-weight: 600;
}

#eventModal .text-primary {
  color: var(--primary-color) !important;
}

#eventModal .form-control {
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

#eventModal .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(84, 163, 177, 0.25);
}

#eventModal .btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

#eventModal .btn-primary:hover {
  background: #4a92a0;
  border-color: #4a92a0;
  transform: translateY(-1px);
}

#eventModal .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 6px 16px;
  font-weight: 500;
}

#eventModal .btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

#eventModal .btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  padding: 8px 20px;
  font-weight: 500;
}

#eventModal .seat-profile-image {
  width: 50px;
  height: 50px;
  border: 2px solid white;
  box-shadow: var(--shadow-light);
}

#eventModal .client-profile-image-container {
  position: relative;
}

#eventModal .alert-info {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f9fc 100%);
  border: 1px solid rgba(84, 163, 177, 0.2);
  color: #0c5460;
}

/* Calendar enhancements for admin mode */
.fc-non-business {
  background-color: rgba(84, 163, 177, 0.05) !important;
  opacity: 0.7;
}

.fc-non-business:hover {
  background-color: rgba(84, 163, 177, 0.1) !important;
  opacity: 0.9;
}

/* Enhanced Service Selection & Price Breakdown */
#selected_services_display {
  min-height: 60px;
  border: 1px dashed #dee2e6;
  border-radius: 6px;
  padding: 12px;
  background: #f8f9fa;
}

.selected-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);
}

.selected-service-item:last-child {
  margin-bottom: 0;
}

/* New service group styles for multiple instances */
.selected-service-group {
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.selected-service-group:last-child {
  margin-bottom: 0;
}

.service-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.service-info-left {
  flex: 1;
}

.service-title {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 2px;
}

.service-details {
  font-size: 0.875rem;
  color: var(--gray-text);
}

.service-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-quantity-btn {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-quantity-btn:hover {
  background: var(--primary-color);
  color: white;
}

.service-count {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.service-remove-btn {
  background: none;
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
  font-size: 16px;
  font-weight: 600;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-remove-btn:hover {
  background: var(--danger-color);
  color: white;
}

.price-breakdown-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
}

.price-breakdown-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.price-breakdown-line.subtotal {
  border-top: 1px solid #dee2e6;
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 500;
}

.price-breakdown-line.total {
  border-top: 2px solid var(--primary-color);
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--dark-color);
}

.price-breakdown-line .amount {
  font-family: monospace;
  min-width: 70px;
  text-align: right;
}

.tax-line {
  color: var(--gray-text);
}

.tax-line.hidden-tax {
  font-style: italic;
  opacity: 0.7;
}

.empty-services-message {
  text-align: center;
  color: var(--gray-text);
  font-style: italic;
  padding: 20px;
}