/* ============================= */
/* SHADCN/UI INSPIRED MAIN.CSS   */
/* ============================= */

/* CSS Reset and Variables */
:root {
  /* Colors - Light Mode */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  
  --ring: 222.2 84% 4.9%;
  
  --radius: 0.5rem;
  
  /* Additional custom colors */
  --success: 142.1 76.2% 36.3%;
  --success-light: 142.1 76.2% 90%;
  --warning: 38 92% 50%;
  --warning-light: 38 92% 90%;
  --info: 217.2 91.2% 59.8%;
  --info-light: 217.2 91.2% 90%;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Header */
.header {
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background-color: hsl(var(--card) / 0.95);
}

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

.nav h1 {
  font-size: 1.125rem;
  font-weight: 600;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  height: 4rem;
  padding: 0 0.75rem;
  position: relative;
}

.nav-link:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.nav-link.active {
  color: hsl(var(--foreground));
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: hsl(var(--foreground));
}

/* Main Content */
.main {
  min-height: calc(100vh - 4rem);
  padding: 2rem 0;
  background-color: hsl(var(--background));
}

/* Breadcrumb Component */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.breadcrumb a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb a:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.breadcrumb-separator {
  color: hsl(var(--muted-foreground));
  user-select: none;
}

.breadcrumb-current {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.2s;
}

.back-button:hover {
  background-color: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
  text-decoration: none;
}

/* Cards */
.card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 1.25rem;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  position: relative;
  user-select: none;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  overflow: hidden;
  transform: translateZ(0);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.85) 100%);
  color: hsl(var(--primary-foreground));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.95) 0%, hsl(var(--primary) / 0.8) 100%);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
  border-color: hsl(var(--border) / 0.8);
}

.btn-danger {
  background: linear-gradient(135deg, hsl(var(--destructive)) 0%, hsl(var(--destructive) / 0.85) 100%);
  color: hsl(var(--destructive-foreground));
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, hsl(var(--destructive) / 0.95) 0%, hsl(var(--destructive) / 0.8) 100%);
}

.btn-success {
  background: linear-gradient(135deg, hsl(var(--success)) 0%, hsl(var(--success) / 0.85) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, hsl(var(--success) / 0.95) 0%, hsl(var(--success) / 0.8) 100%);
}

.btn-warning {
  background: linear-gradient(135deg, hsl(var(--warning)) 0%, hsl(var(--warning) / 0.85) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.25);
}

.btn-warning:hover {
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.35);
  background: linear-gradient(135deg, hsl(var(--warning) / 0.95) 0%, hsl(var(--warning) / 0.8) 100%);
}

.btn-info {
  background: linear-gradient(135deg, hsl(var(--info)) 0%, hsl(var(--info) / 0.85) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-info:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, hsl(var(--info) / 0.95) 0%, hsl(var(--info) / 0.8) 100%);
}

.btn-sm {
  height: 2rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
}

.btn-link {
  background: none;
  color: hsl(var(--primary));
  padding: 0;
  height: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}

.btn-link:hover {
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

/* Button Group */
.btn-group {
  display: inline-flex;
  gap: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus,
.form-select:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.form-control:disabled,
.form-select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: hsl(var(--muted));
}

textarea.form-control {
  min-height: 5rem;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  cursor: pointer;
}

/* Tables */
.table {
  width: 100%;
  caption-side: bottom;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.table thead {
  border-bottom: 1px solid hsl(var(--border));
}

.table th {
  height: 3rem;
  padding: 0 0.75rem;
  text-align: left;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  vertical-align: middle;
}

.table td {
  padding: 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid hsl(var(--border));
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge-success {
  background-color: hsl(var(--success-light));
  color: hsl(var(--success));
}

.badge-warning {
  background-color: hsl(var(--warning-light));
  color: hsl(var(--warning));
}

.badge-danger {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.badge-info {
  background-color: hsl(var(--info-light));
  color: hsl(var(--info));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0 0 0 / 0.8);
  z-index: 50;
  animation: fadeIn 0.2s;
}

.modal-content {
  position: relative;
  background-color: hsl(var(--card));
  margin: 5vh auto;
  padding: 0;
  width: 90%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  animation: slideIn 0.2s;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.modal-content form {
  padding: 1.5rem;
}

/* Alerts */
.alert {
  position: relative;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  animation: slideDown 0.2s;
}

.alert-success {
  background-color: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.2);
}

.alert-error,
.alert-danger {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border: 1px solid hsl(var(--destructive) / 0.2);
}

.alert-warning {
  background-color: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  border: 1px solid hsl(var(--warning) / 0.2);
}

.alert-info {
  background-color: hsl(var(--info) / 0.1);
  color: hsl(var(--info));
  border: 1px solid hsl(var(--info) / 0.2);
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid hsl(var(--muted));
  border-radius: 50%;
  border-top-color: hsl(var(--primary));
  animation: spin 0.8s linear infinite;
}

/* Utility Classes */
.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--muted-foreground)); }
.text-danger { color: hsl(var(--destructive)); }
.text-success { color: hsl(var(--success)); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

.d-block { display: block; }
.d-none { display: none; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

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

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

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

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

/* Special Components */

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  margin-top: 1rem;
}

.calendar-header {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.calendar-day:hover {
  background-color: hsl(var(--accent));
}

.calendar-day.selected {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.calendar-day.today {
  font-weight: 600;
  background-color: hsl(var(--secondary));
}

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.time-slot {
  padding: 0.5rem;
  text-align: center;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.time-slot:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.time-slot.selected {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.time-slot:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: hsl(var(--muted));
}

/* Progress bars */
.progress {
  height: 0.5rem;
  background-color: hsl(var(--secondary));
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 0;
  }

  .nav h1 {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 2vh auto;
  }

  .table {
    font-size: 0.75rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  .card {
    padding: 1rem;
  }

  .btn {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }
}

/* List Groups */
.list-group {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}

.list-group-item {
  padding: 0.75rem 1rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-bottom-width: 0;
}

.list-group-item:first-child {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.list-group-item:last-child {
  border-bottom-width: 1px;
  border-bottom-left-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

/* Additional form elements for better salon booking UX */
.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: 0.25rem;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
  float: left;
  margin-left: -1.5em;
}

.form-check-input:checked {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.75rem;
}

.form-check-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

/* Time Period Groups */
.time-period-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.time-period-group input[type="time"] {
  flex: 1;
}

/* Dropdown and Select improvements */
select[multiple] {
  height: auto;
  padding: 0.5rem;
}

select[multiple] option {
  padding: 0.25rem 0.5rem;
}

select[multiple] option:checked {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Additional utility classes for alignment */
.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

/* Code blocks */
code {
  padding: 0.125rem 0.25rem;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 0.875em;
  background-color: hsl(var(--muted));
  border-radius: 0.25rem;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  .header,
  .btn,
  .modal {
    display: none !important;
  }

  .main {
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Fix breadcrumb arrow alignment */
.breadcrumb svg {
  vertical-align: middle;
  margin-top: -2px;
}

/* Service Page Sidebar Layout */
.page-layout-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 250px;
  position: sticky;
  top: 5rem; /* (height of header) + padding */
}

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

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-size: 0.875rem;
}

.category-list-item:hover {
  background-color: hsl(var(--accent));
}

.category-list-item.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}

.category-list-item .btn-group {
  display: none;
  gap: 0.25rem;
}

.category-list-item:hover .btn-group,
.category-list-item.active .btn-group {
  display: inline-flex;
}

.category-list-item.active .btn {
    background: hsl(var(--primary-foreground) / 0.1);
    color: hsl(var(--primary-foreground));
    border: 1px solid hsl(var(--primary-foreground) / 0.2);
}
.category-list-item.active .btn:hover {
    background: hsl(var(--primary-foreground) / 0.2);
}


/* Responsive adjustments for sidebar */
@media (max-width: 768px) {
  .page-layout-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static;
    top: auto;
    margin-bottom: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
  }
}

/* ============================= */
/* SERVICES PAGE ENHANCEMENTS    */
/* ============================= */

/* Services Hero Section */
.services-hero {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--primary) / 0.02) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.services-hero-content {
  position: relative;
  z-index: 1;
}

.services-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: hsl(var(--foreground));
}

.services-hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin: 0.5rem 0 0 0;
}

.services-hero-actions {
  position: relative;
  z-index: 1;
}

/* Enhanced Button with Glow */
.btn-glow {
  position: relative;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: inherit;
  opacity: 0.5;
  filter: blur(10px);
  z-index: -1;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 0.7;
}

/* Services Layout */
.services-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Enhanced Sidebar */
.services-sidebar {
  position: sticky;
  top: 5rem;
  space-y: 2rem;
}

.sidebar-section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

/* Icon Button */
.btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
}

.btn-ghost {
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Category Form */
.category-form-container {
  padding: 1rem;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1rem;
  animation: slideDown 0.2s ease;
}

/* Enhanced Category List */
.category-list {
  margin: 0 -0.5rem;
  max-height: 40vh;
  overflow-y: auto;
  position: relative;
}

/* Custom scrollbar */
.category-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-track {
  background: hsl(var(--muted) / 0.3);
  border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.4);
  border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.6);
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  margin: 0 0.5rem 0.25rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-size: 0.875rem;
}

.category-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: hsl(var(--primary));
  border-radius: 0 2px 2px 0;
  transition: height 0.2s;
}

.category-item:hover {
  background: hsl(var(--accent));
  transform: translateX(2px);
}

.category-item.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}

.category-item.active::before {
  height: 70%;
}

.category-item-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.category-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

.category-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.category-item:hover .category-actions,
.category-item.active .category-actions {
  opacity: 1;
}

.category-item.active .btn-icon {
  color: hsl(var(--primary-foreground));
}

.category-item.active .btn-icon:hover {
  background: hsl(var(--primary-foreground) / 0.2);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: hsl(var(--muted) / 0.5);
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* Services Content */
.services-content {
  min-width: 0;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.content-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.content-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0.25rem 0 0 0;
}

.content-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Search Box */
.search-box {
  position: relative;
  width: 250px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* View Toggle */
.view-toggle {
  display: flex;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.25rem;
}

.view-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn.active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Service Card */
.service-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.5) 100%);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  transform: translateX(0);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.service-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: hsl(var(--foreground));
}

.service-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.service-card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.service-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.service-meta-icon {
  width: 16px;
  height: 16px;
  color: hsl(var(--primary));
}

.service-card-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1x solid hsl(var(--border));
}

/* List View */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-list-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.service-list-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.service-list-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

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

.service-list-title {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.service-list-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Skeleton Loading */
.category-skeleton,
.service-skeleton-grid {
  animation: pulse 2s infinite;
}

.skeleton-line {
  height: 2.5rem;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 0.5rem;
}

.service-skeleton-card {
  height: 200px;
  background: hsl(var(--muted) / 0.5);
  border-radius: var(--radius);
}

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

/* Modern Modal Enhancements */
.modal-modern {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}

.modal-slide {
  position: relative;
  margin: 5vh auto;
  animation: slideUp 0.3s ease;
}

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

.modal-form {
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Form Enhancements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-with-suffix,
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-suffix,
.input-prefix {
  position: absolute;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  pointer-events: none;
}

.input-suffix {
  right: 1rem;
}

.input-prefix {
  left: 1rem;
}

.input-with-prefix .form-control {
  padding-left: 2rem;
}

/* Button Loading State */
.btn-loader {
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: hsl(var(--muted-foreground));
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.empty-state-description {
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }
  
  .services-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .sidebar-section {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .services-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .services-hero-title {
    font-size: 2rem;
  }
  
  .content-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .content-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .search-box {
    width: 100%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Additional Utility Classes */
.ml-4 {
  margin-left: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

/* Form Control Sizes */
.form-control-sm {
  height: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

/* Additional skeleton loading for list view */
.service-skeleton-list {
  animation: pulse 2s infinite;
}

.service-skeleton-item {
  height: 70px;
  background: hsl(var(--muted) / 0.5);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Flex utility for form rows */
.flex-1 {
  flex: 1;
}

/* Category Item Empty State */
.category-item-empty {
  font-style: italic;
}

.category-empty {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

/* Service Category Tag */
.service-category-tag {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: 9999px;
}

/* Modal Compact Variant */
.modal-compact {
  max-width: 24rem;
}

.modal-body {
  padding: 1.5rem;
}

.delete-message {
  margin: 0;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.delete-message span {
  font-weight: 600;
}

/* Services Table Styles */
.services-table-container {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.services-table thead {
  background: hsl(var(--muted) / 0.5);
  border-bottom: 1px solid hsl(var(--border));
}

.services-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.services-table td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.services-table tbody tr:last-child td {
  border-bottom: none;
}

.services-table tbody tr:hover {
  background: hsl(var(--muted) / 0.3);
}

.service-name-cell {
  max-width: 300px;
}

.service-name {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.service-description {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  line-height: 1.4;
}

.actions-column {
  width: 280px;
  text-align: right;
}

.actions-column .btn-group {
  justify-content: flex-end;
}

/* Status Filters */
.status-filters {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.25rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.875rem;
}

.filter-option:hover {
  background: hsl(var(--accent));
}

.filter-option input[type="radio"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.filter-option span {
  cursor: pointer;
  user-select: none;
}

/* Modal Form Layout Fix */
.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: hsl(var(--muted) / 0.3);
}

/* Text Muted Utility */
.text-muted {
  color: hsl(var(--muted-foreground));
}

/* Remove margin from last form group */
.modal-body .form-group:last-child {
  margin-bottom: 0;
}

/* Responsive Table */
@media (max-width: 1024px) {
  .services-table {
    font-size: 0.8125rem;
  }
  
  .services-table th,
  .services-table td {
    padding: 0.75rem;
  }
  
  .actions-column {
    width: auto;
  }
  
  .actions-column .btn-group {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

/* Adjust sidebar margin */
.sidebar-section + .sidebar-section {
  margin-top: 0.5rem;
}

/* Locations Layout - Same as Services */
.locations-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.locations-sidebar {
  position: sticky;
  top: 5rem;
  space-y: 2rem;
}

.locations-content {
  min-width: 0;
}

/* Locations Table */
.locations-table-container {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.locations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.locations-table thead {
  background: hsl(var(--muted) / 0.5);
  border-bottom: 1px solid hsl(var(--border));
}

.locations-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.locations-table td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.locations-table tbody tr:last-child td {
  border-bottom: none;
}

.locations-table tbody tr:hover {
  background: hsl(var(--muted) / 0.3);
}

/* Location specific styles */
.location-name-cell {
  max-width: 250px;
}

.location-name {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.location-phone {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.location-address-secondary {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.timezone-cell {
  min-width: 150px;
}

.timezone-name {
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
}

.timezone-offset {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Fixed width buttons for locations table */
.locations-table .btn-group {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.locations-table .btn-group .btn {
  width: 85px;
}

.locations-table .btn-group .btn-warning,
.locations-table .btn-group .btn-success {
  width: 95px;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.75rem 0;
}

/* Location skeleton */
.location-skeleton-list {
  animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .locations-layout {
    grid-template-columns: 1fr;
  }
  
  .locations-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .locations-table {
    font-size: 0.8125rem;
  }
  
  .locations-table th,
  .locations-table td {
    padding: 0.75rem;
  }
}

/* ============================= */
/* BOOKINGS PAGE ENHANCEMENTS    */
/* ============================= */

/* Bookings Layout - Same as Services */
.bookings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.bookings-sidebar {
  position: sticky;
  top: 5rem;
}

.bookings-content {
  min-width: 0;
}

/* Bookings Table */
.bookings-table-container {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.bookings-table thead {
  background: hsl(var(--muted) / 0.5);
  border-bottom: 1px solid hsl(var(--border));
}

.bookings-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.bookings-table td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.bookings-table tbody tr:last-child td {
  border-bottom: none;
}

.bookings-table tbody tr:hover {
  background: hsl(var(--muted) / 0.3);
}

/* Booking specific cells */
.booking-datetime-cell {
  min-width: 140px;
}

.booking-date {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.booking-time {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.customer-cell {
  max-width: 200px;
}

.customer-name {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.customer-contact {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.service-cell {
  max-width: 180px;
}

.amount-cell {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Calendar View */
.calendar-view-container {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.calendar-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-month-year {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.beta-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: hsl(var(--info) / 0.1);
  color: hsl(var(--info));
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-header {
  background: hsl(var(--muted) / 0.5);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-day {
  background: hsl(var(--card));
  min-height: 120px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-day:hover {
  background: hsl(var(--muted) / 0.3);
}

.calendar-day.today {
  background: hsl(var(--primary) / 0.05);
}

.calendar-day.other-month {
  background: hsl(var(--muted) / 0.3);
  color: hsl(var(--muted-foreground));
}

.calendar-date {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calendar-day.today .calendar-date {
  color: hsl(var(--primary));
}

.booking-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.booking-indicator {
  font-size: 0.625rem;
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-left: 2px solid hsl(var(--primary));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-indicator.booking-confirmed {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border-left-color: hsl(var(--success));
}

.booking-indicator.booking-pending_payment {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  border-left-color: hsl(var(--warning));
}

.booking-indicator.booking-cancelled {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border-left-color: hsl(var(--destructive));
}

.booking-more {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  padding: 0.125rem;
}

/* Booking skeleton */
.booking-skeleton-list {
  animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .bookings-layout {
    grid-template-columns: 1fr;
  }
  
  .bookings-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .bookings-table {
    font-size: 0.8125rem;
  }
  
  .bookings-table th,
  .bookings-table td {
    padding: 0.75rem;
  }
  
  .calendar-day {
    min-height: 80px;
  }
}

@media (max-width: 768px) {
  .calendar-grid {
    gap: 0;
  }
  
  .calendar-day {
    min-height: 60px;
    padding: 0.25rem;
  }
  
  .calendar-date {
    font-size: 0.75rem;
  }
  
  .booking-indicator {
    font-size: 0.5rem;
    padding: 0.125rem;
  }
}

/* Compact Search Box */
.search-box-compact {
  position: relative;
  width: 180px;
}

.search-input-compact {
  width: 100%;
  height: 2rem;
  padding: 0 0.75rem 0 2rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  font-size: 0.8125rem;
  transition: all 0.2s;
}

.search-input-compact:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.search-box-compact .search-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

/* Icon Button Actions */
.booking-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.text-success {
  color: hsl(var(--success)) !important;
}

.text-danger {
  color: hsl(var(--destructive)) !important;
}

/* Narrow Actions Column */
.bookings-table .actions-column {
  width: 120px;
  text-align: center;
}

/* Weekly Calendar */
.weekly-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}

.weekly-calendar-day {
  background: hsl(var(--card));
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.weekly-calendar-day.today {
  background: hsl(var(--primary) / 0.02);
}

.weekly-calendar-header {
  padding: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  text-align: center;
  background: hsl(var(--muted) / 0.3);
}

.weekday {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
}

.weekly-calendar-day.today .date-number {
  color: hsl(var(--primary));
}

.weekly-booking-list {
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.weekly-booking-item {
  padding: 0.5rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: calc(var(--radius) - 2px);
  border-left: 3px solid hsl(var(--primary));
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
}

.weekly-booking-item:hover {
  background: hsl(var(--muted) / 0.5);
  transform: translateX(2px);
}

.weekly-booking-item.booking-confirmed {
  border-left-color: hsl(var(--success));
  background: hsl(var(--success) / 0.05);
}

.weekly-booking-item.booking-pending_payment {
  border-left-color: hsl(var(--warning));
  background: hsl(var(--warning) / 0.05);
}

.weekly-booking-item.booking-cancelled {
  border-left-color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.05);
  opacity: 0.7;
}

.weekly-booking-item.booking-completed {
  border-left-color: hsl(var(--info));
  background: hsl(var(--info) / 0.05);
}

.booking-time-slot {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.125rem;
}

.booking-customer {
  color: hsl(var(--foreground));
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-service {
  color: hsl(var(--muted-foreground));
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-bookings {
  color: hsl(var(--muted-foreground));
  font-style: italic;
  text-align: center;
  padding: 2rem 0.5rem;
  font-size: 0.8125rem;
}

.calendar-week-range {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.calendar-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.calendar-month-year {
  text-align: center;
  flex: 1;
}

.calendar-month-year h3 {
  margin: 0;
}

/* Responsive for weekly calendar */
@media (max-width: 768px) {
  .weekly-calendar-day {
    min-height: 200px;
  }
  
  .weekly-calendar-header {
    padding: 0.5rem;
  }
  
  .date-number {
    font-size: 1rem;
  }
  
  .weekly-booking-item {
    padding: 0.375rem;
    font-size: 0.625rem;
  }
  
  .search-box-compact {
    width: 140px;
  }
}

/* Reduced Sidebar Padding */
.bookings-sidebar .sidebar-section {
  padding: 1rem;
}

.bookings-sidebar .sidebar-section + .sidebar-section {
  margin-top: 1rem;
}

/* Remove compact search box - use standard one */
.search-box-compact {
  position: relative;
  width: 250px;
}

.search-input-compact {
  width: 100%;
  height: 2.5rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input-compact:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.search-box-compact .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
