/* Мягкий пыльно-розовый стиль PLATIKA для вложенных страниц. */
:root {
  --background: #fff7f9;
  --foreground: #4a2b38;
  --card: #ffffff;
  --card-foreground: #4a2b38;
  --popover: #ffffff;
  --popover-foreground: #4a2b38;
  --primary: #e38ea6;
  --primary-foreground: #512438;
  --primary-edge: #efb3c5;
  --primary-text: #a34f6a;
  --accent: #f8d7e1;
  --accent-foreground: #5b2c40;
  --accent-edge: #efb3c5;
  --secondary: #fdeaf0;
  --secondary-foreground: #6d3a4d;
  --muted: #fdf0f4;
  --muted-foreground: #8b6c78;
  --border: #f8d7e1;
  --input: #fffafc;
  --ring: #efb3c5;
  --chart-1: #e38ea6;
  --chart-2: #efb3c5;
  --chart-3: #d57391;
  --chart-4: #f8d7e1;
  --chart-5: #a34f6a;
  --sidebar: #fffafc;
  --sidebar-foreground: #4a2b38;
  --sidebar-primary: #e38ea6;
  --sidebar-primary-foreground: #512438;
  --sidebar-accent: #fdeaf0;
  --sidebar-accent-foreground: #6d3a4d;
  --sidebar-border: #f8d7e1;
  --sidebar-ring: #efb3c5;
}

.dark {
  --background: #2a1b22;
  --foreground: #fff2f6;
  --card: #3a2730;
  --card-foreground: #fff2f6;
  --popover: #3a2730;
  --popover-foreground: #fff2f6;
  --primary: #e79bb0;
  --primary-foreground: #3a1a27;
  --primary-edge: #b86680;
  --primary-text: #f0b4c6;
  --accent: #8c4a60;
  --accent-foreground: #fff2f6;
  --accent-edge: #c47d95;
  --secondary: #4a303c;
  --secondary-foreground: #fff2f6;
  --muted: #35232c;
  --muted-foreground: #d3b4bf;
  --border: #5a3b48;
  --input: #49303c;
  --ring: #e79bb0;
  --sidebar: #35232c;
  --sidebar-foreground: #fff2f6;
  --sidebar-primary: #e79bb0;
  --sidebar-primary-foreground: #3a1a27;
  --sidebar-accent: #4a303c;
  --sidebar-accent-foreground: #fff2f6;
  --sidebar-border: #5a3b48;
  --sidebar-ring: #e79bb0;
}

html.dark {
  color-scheme: dark !important;
}

body {
  background: linear-gradient(180deg, #fff7f9 0%, #fffafc 50%, #fff5f8 100%) !important;
  color: var(--foreground) !important;
}

.dark body {
  background: linear-gradient(180deg, #2a1b22 0%, #35232c 55%, #2a1b22 100%) !important;
}

.bg-background { background-color: var(--background) !important; }
.bg-card { background-color: var(--card) !important; }
.bg-sidebar,
[data-slot="sidebar-inner"] { background-color: var(--sidebar) !important; }

/* Мягкие округлые кнопки без фиолета. */
[data-slot="button"],
.bg-primary,
.bg-accent {
  border-radius: 999px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.bg-primary,
[data-slot="button"].bg-primary {
  background: linear-gradient(135deg, #f3b3c4, #e28ca4) !important;
  background-color: transparent !important;
  background-image: linear-gradient(135deg, #f3b3c4, #e28ca4) !important;
  color: #4a2130 !important;
  border: 1px solid #e8a6ba !important;
  box-shadow: 0 6px 16px -8px rgba(211, 115, 145, 0.55) !important;
}

.bg-accent,
[data-slot="button"].bg-accent {
  background-color: var(--accent) !important;
  background-image: none !important;
  color: var(--accent-foreground) !important;
  border: 1px solid var(--accent-edge) !important;
}

[data-slot="button"]:hover,
.bg-primary:hover,
.bg-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(211, 115, 145, 0.6) !important;
}

[data-slot="button"]:active {
  transform: translateY(1px);
}

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

.bg-zinc-950 { background-color: #3a2730 !important; }

/* Боковая панель на телефоне — выезжающая панель с нормальными подписями. */
@media (max-width: 767px) {
  [data-slot="sidebar"] {
    display: block !important;
  }

  [data-slot="sidebar-gap"] {
    width: 0 !important;
  }

  [data-slot="sidebar-container"] {
    display: flex !important;
    width: 264px !important;
    max-width: 82vw;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    z-index: 60 !important;
    box-shadow: 12px 0 32px -18px rgba(74, 43, 56, 0.5);
  }

  body.sidebar-open [data-slot="sidebar-container"] {
    transform: translateX(0);
  }

  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(74, 43, 56, 0.35);
  }

  main[data-slot="sidebar-inset"] {
    padding-left: 0 !important;
  }

  .mobile-nav-toggle {
    position: fixed;
    left: 14px;
    bottom: 18px;
    z-index: 70;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8a6ba;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3b3c4, #e28ca4);
    color: #4a2130;
    box-shadow: 0 8px 20px -10px rgba(211, 115, 145, 0.75);
    cursor: pointer;
  }

  .mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none;
  }
}
