:root {
  --foreground: black;
  --background: hsl(0, 0%, 100%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 3.9%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(0, 0%, 3.9%);
  --primary: black; /* Changed to black */
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(0, 0%, 96.1%);
  --secondary-foreground: hsl(0, 0%, 11.2%);
  --muted: hsl(0, 0%, 96.1%);
  --muted-foreground: hsl(0, 0%, 45%);
  --accent: hsl(0, 0%, 94%);
  --accent-foreground: hsl(0, 0%, 11.2%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(0, 0%, 89.8%);
  --input: hsl(0, 0%, 89.8%);
  --ring: hsl(0, 0%, 0%);
  --radius: 0.5rem;
}

.dark {
  --background: hsl(0, 0%, 7%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(0, 0%, 7%);
  --card-foreground: hsl(0, 0%, 98%);
  --popover: hsl(0, 0%, 7%);
  --popover-foreground: hsl(0, 0%, 98%);
  --primary: white; /* Changed to white */
  --primary-foreground: hsl(0, 0%, 7%);
  --secondary: hsl(0, 0%, 12%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --muted: hsl(0, 0%, 15%);
  --muted-foreground: hsl(0, 0%, 65%);
  --accent: hsl(0, 0%, 20%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 63%, 31%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(0, 0%, 20%);
  --input: hsl(0, 0%, 20%);
  --ring: hsl(0, 0%, 83%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.5;
  font-size: 16px;
}

.shadcn-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .navbar-brand {
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.25rem;
}

.nav-link {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--foreground);
  background-color: var(--accent);
}

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

.logout-link {
  color: var(--destructive-foreground);
  background-color: var(--destructive);
}

/* Section headers */
.section-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* Common card styles */
.shadcn-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.shadcn-card-header {
  margin-bottom: 1.5rem;
}

.shadcn-card-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--foreground);
}

.shadcn-card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.shadcn-card-content {
  margin-bottom: 1.5rem;
}

.shadcn-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Button styles */
.shadcn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  padding: 0.75rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.shadcn-button:hover {
  opacity: 0.9;
}

.shadcn-button-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.shadcn-button-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.shadcn-button-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.shadcn-button-outline:hover {
  background-color: var(--accent);
}

.shadcn-button-icon {
  margin-right: 0.5rem;
}

/* Form elements */
.shadcn-form-item {
  margin-bottom: 1.5rem;
}

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

/* Responsive table improvements */
.table-responsive {
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.table {
  width: 100%;
  margin-bottom: 0;
  white-space: nowrap;
}

.table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-top: none;
  background-color: var(--muted);
}

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

.table-hover tbody tr {
  transition: background-color 0.15s ease-in-out;
}

.table-hover tbody tr:hover {
  background-color: var(--accent);
}

.table .badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
}

.table .input-group-sm {
  max-width: 160px;
}

.table .btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

@media (max-width: 992px) {
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .table {
    font-size: 0.875rem;
  }

  .table th, .table td {
    padding: 0.625rem 0.75rem;
  }

  .table .input-group-sm {
    max-width: 130px;
  }
}

@media (max-width: 576px) {
  .table .input-group-sm {
    max-width: 120px;
  }

  .table .btn-group-sm .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
}

}

.shadcn-form-input {
  width: 100%;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.shadcn-form-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgb(41, 43, 46, 0.15);
}

.shadcn-form-select {
  width: 100%;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.shadcn-form-message {
  font-size: 0.875rem;
  color: var(--destructive);
  margin-top: 0.375rem;
}

/* Table styles */
.shadcn-table {
  width: 100%;
  border-collapse: collapse;
}

.shadcn-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.shadcn-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--foreground);
}

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

/* Pagination styles */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #000;
  background-color: var(--background);
  border: 1px solid var(--border);
}

.page-link:hover {
  z-index: 2;
  color: #000;
  text-decoration: none;
  background-color: var(--accent);
  border-color: var(--border);
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #000;
  border-color: #000;
}

/* Order details styles */
.progress {
  background-color: var(--muted);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  transition: width 0.3s ease;
}

.bg-success {
  background-color: #28a745 !important;
}

.bg-warning {
  background-color: #ffc107 !important;
}

.bg-danger {
  background-color: #dc3545 !important;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: var(--background);
  border-color: var(--border);
}

/* Badge styles */
.shadcn-badge {
  display: inline-flex;
  align-items: center; /* vertically center icon and text */
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  background-color: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.shadcn-badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.shadcn-badge-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.shadcn-badge-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

/* Delivery badge styles */
.delivery-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.delivery-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Badge overlay positioned in image */
.delivery-badge-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

/* Different badge variants */
.delivery-badge-overlay.hot-deal {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.delivery-badge-overlay.cheap {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.delivery-badge-overlay.premium {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}

.delivery-badge-overlay.instant {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.delivery-badge-overlay.instant-delivery {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Make image container relative for badge positioning */
.service-image-wrapper {
  position: relative;
}

/* Alerts */
.shadcn-alert {
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--muted);
  background-color: var(--background);
}

.shadcn-alert-error {
  border-left-color: var(--destructive);
  background-color: color-mix(in srgb, var(--destructive) 10%, transparent);
}

.shadcn-alert-success {
  border-left-color: hsl(142.1, 76.2%, 36.3%);
  background-color: color-mix(in srgb, hsl(142.1, 76.2%, 36.3%) 10%, transparent);
}

/* Utilities */
.text-muted {
  color: var(--muted-foreground);
}

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

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt.4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }

/* Media queries */
@media (max-width: 768px) {
  .shadcn-container {
    padding: 0 1rem;
  }

  .section-header {
    font-size: 1.5rem;
  }
}
/* Фикс для кнопок в инвертированном режиме */
.dark-mode .shadcn-button-outline {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.dark-mode .shadcn-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Стили для инвертированного режима */
.dark-mode .shadcn-button {
  background-color: white;
  color: black;
}

/* Применение primary color для кнопок */
.dark-mode .shadcn-button-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.price-package-home.popular::before {
      content: "BEST VALUE";
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.45rem;
      font-weight: 600;
      background: #10b981;
      color: white;
      padding: 1px 5px;
      border-radius: 6px;
      letter-spacing: 0.3px;
      opacity: 0.9;
    }
.price-package-home {
      color: var(--foreground);
      background-color: var(--background);
    }
.price-package {
      color: var(--foreground);
    }
.service-image-container {
      height: 140px;
      overflow: hidden;
      border-radius: var(--radius) var(--radius) 0 0;
      position: relative;
    }