@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --background: #08080b;
  --foreground: #f0ede6;
  --card: #141419;
  --card-foreground: #f0ede6;
  --popover: #141419;
  --popover-foreground: #f0ede6;
  --primary: #c9a86c;
  --primary-foreground: #0a0804;
  --secondary: #121218;
  --secondary-foreground: #f0ede6;
  --muted: #15151b;
  --muted-foreground: #9b978f;
  --accent: rgba(201, 168, 108, 0.16);
  --accent-foreground: #e2c485;
  --destructive: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.08);
  --ring: rgba(201, 168, 108, 0.5);
  --sidebar: #0f0f14;
  --sidebar-foreground: #f0ede6;
  --sidebar-primary: #c9a86c;
  --sidebar-primary-foreground: #0a0804;
  --sidebar-accent: rgba(201, 168, 108, 0.12);
  --sidebar-accent-foreground: #e2c485;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-ring: rgba(201, 168, 108, 0.45);
}

.dark {
  --background: #08080b;
  --foreground: #f0ede6;
  --card: #141419;
  --card-foreground: #f0ede6;
  --popover: #141419;
  --popover-foreground: #f0ede6;
  --primary: #c9a86c;
  --primary-foreground: #0a0804;
  --secondary: #121218;
  --secondary-foreground: #f0ede6;
  --muted: #15151b;
  --muted-foreground: #9b978f;
  --accent: rgba(201, 168, 108, 0.16);
  --accent-foreground: #e2c485;
  --destructive: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.08);
  --ring: rgba(201, 168, 108, 0.5);
  --sidebar: #0f0f14;
  --sidebar-foreground: #f0ede6;
  --sidebar-primary: #c9a86c;
  --sidebar-primary-foreground: #0a0804;
  --sidebar-accent: rgba(201, 168, 108, 0.12);
  --sidebar-accent-foreground: #e2c485;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-ring: rgba(201, 168, 108, 0.45);
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(201, 168, 108, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(62, 207, 186, 0.1), transparent 24%),
    #08080b;
  color: #f0ede6;
}

body,
button,
input,
select,
textarea {
  font-family: 'Outfit', sans-serif !important;
}

button svg,
a svg,
[role='button'] svg {
  flex-shrink: 0;
}

h1,
h2,
h3,
[data-slot='sidebar-header'] a,
header span.text-lg.font-bold {
  font-family: 'Cormorant Garamond', serif !important;
  letter-spacing: 0.02em;
}

[data-slot='sidebar-header'] a[href='/' ] {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  white-space: nowrap !important;
  color: transparent !important;
}

[data-slot='sidebar-header'] a[href='/']::before {
  content: 'Horeca AI';
  display: inline-block;
  white-space: nowrap;
  color: #f0ede6;
}

[data-slot='sidebar-header'] a[href='/'] span {
  color: #9b978f !important;
}

header span.text-lg.font-bold {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  color: transparent !important;
}

header span.text-lg.font-bold::before {
  content: 'Horeca AI';
  display: inline-block;
  white-space: nowrap;
  color: #f0ede6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(201, 168, 108, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(62, 207, 186, 0.06), transparent 32%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

[data-slot='sidebar-container'],
[data-slot='sidebar-inner'],
[data-slot='sheet-content'][data-sidebar='sidebar'] {
  background:
    linear-gradient(180deg, rgba(201, 168, 108, 0.05), transparent 18%),
    #0f0f14 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-slot='sidebar-header'],
[data-slot='sidebar-footer'] {
  background: transparent !important;
}

[data-slot='sidebar-group-label'] {
  color: #c9a86c !important;
  letter-spacing: 0.16em;
}

[data-slot='sidebar-menu-button']:hover,
[data-slot='sidebar-menu-button'][data-active='true'],
[data-slot='sidebar-trigger']:hover,
button.hover\:bg-accent:hover,
a.hover\:bg-accent:hover {
  background: rgba(201, 168, 108, 0.12) !important;
  color: #f0ede6 !important;
}

[data-slot='sidebar-menu-button'][data-active='true'] svg,
[data-slot='sidebar-trigger'] svg,
[data-slot='dropdown-menu-item'] svg {
  color: #c9a86c;
}

main,
header.sticky,
.bg-background,
.bg-popover,
.bg-sidebar {
  background-color: transparent;
}

.border,
.border-b,
.border-r,
.border-t,
[class*='border-'] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.rounded-md,
.rounded-lg,
.rounded-xl {
  border-radius: 16px;
}

.shadow-sm,
.shadow-md,
.shadow-lg {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28) !important;
}

.text-muted-foreground,
.text-sidebar-foreground\/70 {
  color: #9b978f !important;
}

.bg-accent,
.hover\:bg-accent:hover,
.data-\[active\=true\]\:bg-sidebar-accent[data-active='true'] {
  background-color: rgba(201, 168, 108, 0.12) !important;
}

.text-accent-foreground,
.hover\:text-accent-foreground:hover,
.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active='true'] {
  color: #e2c485 !important;
}

.bg-primary,
.fill-primary {
  background-color: #c9a86c !important;
  fill: #c9a86c !important;
}

.text-primary-foreground {
  color: #0a0804 !important;
}

.focus\:ring-ring:focus,
.focus-visible\:ring-ring\/50:focus-visible,
.focus-visible\:border-ring:focus-visible {
  border-color: rgba(201, 168, 108, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.18) !important;
}

a[href='https://github.com/dograh-hq/dograh'] {
  display: none !important;
}

#cw-widget-holder,
#chatwoot_live_chat_widget,
.woot-widget-bubble,
.woot--bubble-holder,
.woot-widget-holder,
iframe[title*='chat' i],
iframe[src*='chatwoot'],
iframe[name*='chatwoot'] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.horeca-dograh-mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  body {
    background:
      radial-gradient(circle at top center, rgba(201, 168, 108, 0.16), transparent 30%),
      #08080b;
  }

  header.sticky.top-0.z-50.flex.items-center.gap-3 {
    background: rgba(8, 8, 11, 0.9) !important;
    backdrop-filter: blur(18px);
  }

  body.horeca-dograh-app {
    font-size: 15px;
  }

  body.horeca-dograh-app main,
  body.horeca-dograh-app [role='main'] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 28px !important;
  }

  body.horeca-dograh-app header.sticky,
  body.horeca-dograh-app header.sticky.top-0.z-50.flex.items-center.gap-3 {
    gap: 10px !important;
    padding: 10px 14px !important;
    min-height: 64px;
  }

  body.horeca-dograh-app [data-slot='sidebar-trigger'],
  body.horeca-dograh-app button,
  body.horeca-dograh-app a[role='button'] {
    min-height: 42px;
  }

  body.horeca-dograh-app [data-slot='sidebar-trigger'] {
    position: relative !important;
    z-index: 160 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px;
    width: 42px;
    padding: 0 !important;
  }

  body.horeca-dograh-app [data-slot='sidebar-trigger'] svg,
  body.horeca-dograh-app button svg,
  body.horeca-dograh-app a[role='button'] svg,
  body.horeca-dograh-app [role='tab'] svg {
    width: 18px;
    height: 18px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.horeca-dograh-app [data-radix-portal] {
    position: relative;
    z-index: 150 !important;
  }

  body.horeca-dograh-app [data-slot='sheet-overlay'] {
    z-index: 151 !important;
  }

  body.horeca-dograh-app [data-slot='sheet-content'][data-sidebar='sidebar'] {
    width: min(88vw, 340px) !important;
    max-width: 88vw !important;
    border-radius: 0 24px 24px 0;
    z-index: 152 !important;
  }

  body.horeca-dograh-app [data-slot='sidebar-container'],
  body.horeca-dograh-app [data-slot='sidebar-inner'] {
    width: min(88vw, 340px) !important;
  }

  body.horeca-dograh-app [data-slot='sidebar-group'] {
    margin-bottom: 12px;
  }

  body.horeca-dograh-app [data-slot='sidebar-menu-button'] {
    min-height: 46px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  body.horeca-dograh-app .rounded-md,
  body.horeca-dograh-app .rounded-lg,
  body.horeca-dograh-app .rounded-xl {
    border-radius: 18px;
  }

  body.horeca-dograh-app [role='tablist'] {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  body.horeca-dograh-app [role='tablist']::-webkit-scrollbar {
    display: none;
  }

  body.horeca-dograh-app [role='tab'] {
    flex: 0 0 auto !important;
    min-height: 40px;
    min-width: max-content;
    padding-left: 14px !important;
    padding-right: 14px !important;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  body.horeca-dograh-app [role='tabpanel'] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.horeca-dograh-app [role='tabpanel'] > *,
  body.horeca-dograh-app [role='tabpanel'] .rounded-xl,
  body.horeca-dograh-app [role='tabpanel'] .rounded-lg,
  body.horeca-dograh-app [role='tabpanel'] .rounded-md,
  body.horeca-dograh-app [role='tabpanel'] [class*='border'],
  body.horeca-dograh-app [role='tabpanel'] [class*='card'] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.horeca-dograh-app [class*='grid-cols-2'],
  body.horeca-dograh-app [class*='grid-cols-3'],
  body.horeca-dograh-app [class*='grid-cols-4'],
  body.horeca-dograh-app [class*='grid-cols-5'],
  body.horeca-dograh-app [class*='grid-cols-6'],
  body.horeca-dograh-app [class*='sm:grid-cols-2'],
  body.horeca-dograh-app [class*='md:grid-cols-2'],
  body.horeca-dograh-app [class*='md:grid-cols-3'],
  body.horeca-dograh-app [class*='lg:grid-cols-2'],
  body.horeca-dograh-app [class*='lg:grid-cols-3'],
  body.horeca-dograh-app [class*='xl:grid-cols-2'],
  body.horeca-dograh-app [class*='xl:grid-cols-3'] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.horeca-dograh-app [class*='max-w-3xl'],
  body.horeca-dograh-app [class*='max-w-4xl'],
  body.horeca-dograh-app [class*='max-w-5xl'],
  body.horeca-dograh-app [class*='max-w-6xl'],
  body.horeca-dograh-app [class*='max-w-7xl'] {
    max-width: 100% !important;
  }

  body.horeca-dograh-app table {
    width: 100%;
    max-width: 100% !important;
    table-layout: fixed;
    display: table;
  }

  body.horeca-dograh-app thead,
  body.horeca-dograh-app tbody,
  body.horeca-dograh-app tr {
    width: 100%;
    max-width: 100%;
  }

  body.horeca-dograh-app button,
  body.horeca-dograh-app a[role='button'] {
    white-space: normal !important;
    word-break: break-word;
  }

  body.horeca-dograh-app .flex.justify-between,
  body.horeca-dograh-app .flex.items-start.justify-between,
  body.horeca-dograh-app .flex.items-center.justify-between,
  body.horeca-dograh-app .flex.items-end.justify-between {
    flex-wrap: wrap;
    gap: 10px !important;
  }

  body.horeca-dograh-app .flex.justify-between > *,
  body.horeca-dograh-app .flex.items-start.justify-between > *,
  body.horeca-dograh-app .flex.items-center.justify-between > *,
  body.horeca-dograh-app .flex.items-end.justify-between > * {
    min-width: 0 !important;
  }

  body.horeca-dograh-app .flex.gap-2 > button,
  body.horeca-dograh-app .flex.gap-2 > a[role='button'],
  body.horeca-dograh-app .flex.gap-3 > button,
  body.horeca-dograh-app .flex.gap-3 > a[role='button'],
  body.horeca-dograh-app .flex.gap-4 > button,
  body.horeca-dograh-app .flex.gap-4 > a[role='button'] {
    flex: 1 1 100%;
  }

  body.horeca-dograh-app .overflow-x-auto {
    overflow-x: visible !important;
    max-width: 100% !important;
  }

  body.horeca-dograh-app .overflow-hidden {
    max-width: 100% !important;
  }

  body.horeca-dograh-app th,
  body.horeca-dograh-app td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.35;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.horeca-dograh-app th:last-child,
  body.horeca-dograh-app td:last-child {
    width: 116px;
  }

  body.horeca-dograh-app td:last-child > div,
  body.horeca-dograh-app td:last-child .flex,
  body.horeca-dograh-app td:last-child .inline-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  body.horeca-dograh-app td:last-child button,
  body.horeca-dograh-app td:last-child a,
  body.horeca-dograh-app td:last-child [role='button'] {
    width: 100% !important;
    justify-content: center;
    min-width: 0 !important;
  }

  body.horeca-dograh-app .text-nowrap,
  body.horeca-dograh-app .whitespace-nowrap,
  body.horeca-dograh-app [class*='truncate'] {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
  }

  body.horeca-dograh-app input,
  body.horeca-dograh-app select,
  body.horeca-dograh-app textarea,
  body.horeca-dograh-app button {
    font-size: 16px !important;
  }

  body.horeca-dograh-app input,
  body.horeca-dograh-app select,
  body.horeca-dograh-app textarea {
    min-height: 44px;
  }

  body.horeca-dograh-app [role='dialog'] {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 32px) !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }

  body.horeca-dograh-app [role='dialog'] [class*='max-w-'],
  body.horeca-dograh-app [role='dialog'] [class*='w-'] {
    max-width: 100% !important;
  }

  body.horeca-dograh-workflow .horeca-dograh-mobile-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 170;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 15, 20, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }

  body.horeca-dograh-workflow main,
  body.horeca-dograh-workflow [role='main'] {
    padding-bottom: 104px !important;
  }

  .horeca-dograh-mobile-nav__button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 1px solid rgba(201, 168, 108, 0.24);
    border-radius: 14px;
    background: rgba(201, 168, 108, 0.12);
    color: #f0ede6;
    font-size: 14px;
    font-weight: 600;
  }

  .horeca-dograh-mobile-nav__button--primary {
    background: linear-gradient(135deg, #c9a86c, #a8834a);
    color: #0a0804;
    border-color: transparent;
  }

  body.horeca-dograh-app .flex.flex-wrap,
  body.horeca-dograh-app .flex.items-center.gap-2,
  body.horeca-dograh-app .flex.items-center.gap-3,
  body.horeca-dograh-app .flex.items-center.gap-4 {
    flex-wrap: wrap;
  }

  body.horeca-dograh-app h1,
  body.horeca-dograh-app h2 {
    line-height: 1.05;
  }
}