/* ActtaFlow presentation. The published components retain their data and actions. */
:root,
.force-light-theme {
  --background: 225 33% 97%;
  --foreground: 228 35% 14%;
  --card: 0 0% 100%;
  --card-foreground: 228 35% 14%;
  --popover: 0 0% 100%;
  --popover-foreground: 228 35% 14%;
  --primary: 251 78% 59%;
  --primary-foreground: 0 0% 100%;
  --secondary: 230 33% 95%;
  --secondary-foreground: 228 30% 24%;
  --muted: 230 25% 95%;
  --muted-foreground: 226 14% 46%;
  --accent: 245 65% 96%;
  --accent-foreground: 251 72% 45%;
  --border: 228 26% 90%;
  --input: 228 26% 87%;
  --ring: 251 78% 59%;
  --radius: 0.875rem;
  --chart-1: 251 78% 59%;
  --chart-2: 211 100% 59%;
  --chart-3: 173 83% 38%;
  --chart-4: 191 100% 43%;
  --chart-5: 276 82% 62%;
  --sidebar-background: 228 47% 10%;
  --sidebar-foreground: 225 38% 91%;
  --sidebar-primary: 251 100% 72%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 232 30% 18%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 230 26% 21%;
  --sidebar-ring: 191 100% 51%;
  --af-violet: #7b5cff;
  --af-blue: #2d8bff;
  --af-cyan: #06d6ff;
  --af-aqua: #00e0b8;
  --af-navy: #0b1026;
  --af-graphite: #0e1428;
  --color-1: #7b5cff;
  --color-2: #2d8bff;
  --color-3: #06d6ff;
  --color-4: #00e0b8;
  --color-5: #7b5cff;
  --af-shadow: 0 4px 24px -12px #24345d1f;
}

.dark {
  --background: 228 44% 8%;
  --foreground: 225 40% 94%;
  --card: 228 35% 12%;
  --card-foreground: 225 40% 94%;
  --popover: 228 32% 13%;
  --popover-foreground: 225 40% 94%;
  --primary: 251 90% 65%;
  --primary-foreground: 0 0% 100%;
  --secondary: 229 28% 18%;
  --secondary-foreground: 225 36% 91%;
  --muted: 229 28% 16%;
  --muted-foreground: 225 19% 66%;
  --accent: 241 33% 20%;
  --accent-foreground: 224 60% 93%;
  --border: 228 25% 22%;
  --input: 228 25% 27%;
  --ring: 191 100% 51%;
  --chart-1: 251 100% 75%;
  --chart-2: 211 100% 66%;
  --chart-3: 173 83% 49%;
  --chart-4: 191 100% 51%;
  --af-shadow: 0 8px 28px -16px #0009;
}

html { color-scheme: light; }
html.dark { color-scheme: dark; }
body { -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline-offset: 4px; }
::selection { background: #7b5cff35; }

.af-app {
  --sidebar-width: 17rem !important;
  --sidebar-width-icon: 4.25rem !important;
  isolation: isolate;
  letter-spacing: -0.012em;
}

.af-app h1 { letter-spacing: -0.04em; }
.af-app h2, .af-app h3 { letter-spacing: -0.025em; }
.af-app main { background: hsl(var(--background)); }
.af-app main > div { max-width: 1800px; margin-inline: auto; }
.af-app .bg-card { box-shadow: var(--af-shadow); }
.af-app .rounded-2xl { border-radius: 1rem; }
.af-app table { font-variant-numeric: tabular-nums; }
.af-app table th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; }
.af-app table td { padding-block: 1rem; }
.af-app table tbody tr { transition: background-color 160ms ease; }
.af-app input, .af-app textarea, .af-app [role="combobox"] { border-radius: 0.65rem; }
.af-app button { transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.af-app button.bg-primary:hover { box-shadow: 0 4px 15px -6px #7b5cff90; }

.af-sidebar [data-sidebar="sidebar"] {
  background: radial-gradient(ellipse at 0 0, #7b5cff13, transparent 55%), hsl(var(--sidebar-background));
  color: hsl(var(--sidebar-foreground));
}
.af-sidebar [data-sidebar="header"] { height: 80px; padding-inline: 1.125rem; }
.af-sidebar [data-sidebar="group"] { padding: 0.625rem 0.75rem; }
.af-sidebar [data-sidebar="menu"] { gap: 0.25rem; }
.af-sidebar [data-sidebar="menu-button"] {
  min-height: 2.625rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: hsl(var(--sidebar-foreground) / 0.77);
  font-size: 0.8125rem;
  font-weight: 450;
}
.af-sidebar [data-sidebar="menu-button"] > svg { width: 1.125rem; height: 1.125rem; opacity: 0.85; }
.af-sidebar [data-sidebar="menu-button"]:hover { color: white; background: hsl(var(--sidebar-accent)); }
.af-sidebar [data-sidebar="menu-button"][data-active="true"] {
  color: white;
  background: linear-gradient(100deg, #7b5cff37, #2d8bff16);
  border-color: #7b5cff4d;
  box-shadow: inset 3px 0 0 #947aff;
}
.af-sidebar [data-sidebar="menu-sub"] { margin: 0.3rem 0 0.45rem 1.2rem; padding-left: 0.75rem; }
.af-sidebar [data-sidebar="menu-sub-button"] { min-height: 2.25rem; font-size: 0.775rem; color: #adb7d2; }
.af-sidebar [data-sidebar="menu-sub-button"][data-active="true"] { color: #c8bdff; background: #7b5cff24; }
.af-sidebar [data-sidebar="trigger"] {
  border: 1px solid #ffffff14;
  border-radius: 0.625rem;
  background: #ffffff05;
  color: #b7c4df;
}
.af-sidebar [data-sidebar="trigger"]:hover { background: #7b5cff25; color: white; border-color: #7b5cff55; }
[data-collapsible="icon"] .af-sidebar [data-sidebar="header"] { padding-inline: 0.5rem; }
[data-collapsible="icon"] .af-sidebar [data-sidebar="group"] { padding-inline: 0.5rem; }
[data-collapsible="icon"] .af-sidebar [data-sidebar="menu-button"] { width: 2.75rem !important; height: 2.75rem !important; padding: 0.8rem !important; margin-inline: auto; }
.af-sidebar [data-sidebar="footer"] { border-color: #ffffff0d; }
.af-sidebar .bg-sidebar-accent\/40 { border: 1px solid #ffffff0a; background: #ffffff05; }
.af-sidebar .text-sidebar-foreground\/50 { color: #99a7c4; }
.af-sidebar button[data-slot="button"] {
  background: linear-gradient(105deg, #7b5cff23, #2d8bff1a);
  color: #f1eeff;
  border: 1px solid #7b5cff66;
  box-shadow: 0 3px 16px -8px #06d6ff50;
}
.af-sidebar button[data-slot="button"]::before,
.af-sidebar button[data-slot="button"]::after { background-image: linear-gradient(90deg, #7b5cff, #2d8bff, #06d6ff, #00e0b8, #7b5cff); }
.af-mobile-menu { background: radial-gradient(ellipse at 0 0, #7b5cff20, transparent 60%), #0b1026; color: #e3e9fa; }
.af-mobile-menu nav a:hover { background: #ffffff0a; }

.af-header {
  height: 80px;
  background: hsl(var(--card) / 0.93);
  backdrop-filter: blur(20px);
  border-bottom-color: hsl(var(--border) / 0.8);
}
.af-header > div { padding-inline: clamp(1rem, 2.5vw, 2rem); }
.af-header img[alt="ActtaFlow"] { height: 30px; }
.af-header .relative.h-\[26px\] { height: 30px; }
.af-header input[type="search"] { width: clamp(160px, 20vw, 300px); font-size: 0.8125rem; }
.af-header .bg-muted\/90 { border: 1px solid hsl(var(--border) / 0.55); border-radius: 0.75rem; background: hsl(var(--muted) / 0.6); }
.af-header .bg-muted\/90:focus-within { border-color: #7b5cff77; box-shadow: 0 0 0 3px #7b5cff0d; }

.af-welcome {
  position: relative;
  padding-block: 0.625rem 0.75rem;
  margin-block: 0.375rem 1.25rem;
}
.af-welcome h1 { font-size: clamp(1.4rem, 2.15vw, 2rem); line-height: 1.2; }
.af-welcome h1::before {
  display: block;
  margin-bottom: 0.5rem;
  content: "SEU ESPAÇO DE TRABALHO";
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: hsl(var(--primary));
}
.af-notices {
  min-height: 160px;
  border: 1px solid #7b5cff40;
  background: radial-gradient(ellipse at 100% 0, #2d8bff40, transparent 65%), linear-gradient(125deg, #201b49, #101b35);
  box-shadow: 0 8px 28px -16px #7b5cff88;
}
.af-notices::after {
  position: absolute;
  content: "";
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: -100px;
  right: -40px;
  box-shadow: 0 0 75px 30px #06d6ff26;
  animation: af-glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.af-notices button { background: #ffffff18; border: 1px solid #ffffff22; color: white; }
.af-notices button:hover { background: #ffffff28; }

[role="dialog"][data-state="open"], [role="alertdialog"] { border-radius: 1.125rem; box-shadow: 0 24px 80px -20px #0b102670; }
[role="tablist"] { border: 1px solid hsl(var(--border)); padding: 0.25rem; height: auto; border-radius: 0.75rem; }
[role="tab"] { border-radius: 0.5rem; }
[data-radix-popper-content-wrapper] > [role="menu"] { border-radius: 0.75rem; box-shadow: var(--af-shadow); }

.af-auth { background: #f7f8fc; }
.af-auth > div:first-child { background: #f7f8fc; padding: clamp(1.5rem, 4vw, 4rem); }
.af-auth > div:first-child > div:first-child img { height: 38px; }
.af-auth > div:first-child > div:nth-child(2) { padding-block: 3rem; }
.af-auth h1 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); letter-spacing: -0.045em; }
.af-auth form input { min-height: 46px; border-radius: 0.75rem; border-color: #dce1ef; background: white; }
.af-auth form button[type="submit"] { min-height: 46px; border-radius: 0.75rem; box-shadow: 0 8px 24px -12px #7b5cffa0; }
.af-auth-art { margin: 1rem 1rem 1rem 0; border-radius: 1.5rem; background: #0b1026; }
.af-auth-art .carousel-zoom { animation-duration: 18s; }
.af-auth-art .absolute.inset-0 img { object-fit: cover; }
.af-auth-art h1, .af-auth-art h2, .af-auth-art h3, .af-auth-art p { color: white; }
.af-auth-art::after { content: ""; position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, transparent 45%, #0b1026bb); pointer-events: none; }
.af-splash img { width: min(180px, 40vw); filter: drop-shadow(0 0 40px #2d8bff30); animation: af-breathe 1.8s ease-in-out infinite alternate; }

@keyframes af-glow { to { transform: translate(-70px, 75px); opacity: 0.5; } }
@keyframes af-breathe { to { opacity: 0.6; transform: scale(0.72); } }

@media (min-width: 1024px) { .af-app main > .p-3 { padding: 1.75rem 2rem; } }
@media (max-width: 767px) {
  .af-header { height: 64px; }
  .af-header img[alt="ActtaFlow"] { height: 24px; }
  .af-header .relative.h-\[26px\] { height: 24px; }
  .af-app main { scroll-padding-block: 1rem; }
  .af-welcome { margin-top: 0; }
  .af-welcome h1::before { font-size: 0.575rem; }
  .af-welcome button { white-space: normal; }
  .af-auth > div:first-child { min-height: 100svh; }
  [role="dialog"][data-state="open"] { max-height: 92dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
