/*
 * ╔═══════════════════════════════════════════════════════════╗
 * ║              O H U B . C S S  —  v1.0.0                  ║
 * ║         Framework CSS do OfficeHub SaaS                   ║
 * ║  Inspirado em W3.CSS · Design System Dark · Outfit Font   ║
 * ╚═══════════════════════════════════════════════════════════╝
 *
 * USO:
 *   <link rel="stylesheet" href="ohub.css">
 *   <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
 *
 * ÍNDICE:
 *   1.  Tokens / CSS Variables
 *   2.  Reset & Base
 *   3.  Tipografia
 *   4.  Utilitários de Layout (Grid, Flex, Spacing)
 *   5.  Utilitários de Cor & Texto
 *   6.  Componentes — Layout (Sidebar, Topbar, Main)
 *   7.  Componentes — Painel / Card
 *   8.  Componentes — Botões
 *   9.  Componentes — Formulários
 *   10. Componentes — Tabela
 *   11. Componentes — Tabs
 *   12. Componentes — Modal
 *   13. Componentes — Toast / Alertas
 *   14. Componentes — Badge / Pill
 *   15. Componentes — Stat Card
 *   16. Componentes — Avatar & Picker
 *   17. Componentes — Drag & Drop
 *   18. Componentes — Popover
 *   19. Componentes — Skeleton / Loading
 *   20. Componentes — Dropdown
 *   21. Componentes — Progress
 *   22. Componentes — Toggle / Switch
 *   23. Componentes — Tooltip
 *   24. Componentes — Breadcrumb
 *   25. Componentes — Empty State
 *   26. Animações & Keyframes
 *   27. Scrollbar Customizada
 *   28. Responsivo
 */


/* ============================================================
   1. TOKENS — CSS VARIABLES
   ============================================================ */
:root {
  /* Superfícies */
  --oh-bg:        #0d0f1a;
  --oh-surface:   #141728;
  --oh-surface2:  #1c2035;
  --oh-surface3:  #232840;
  --oh-surface4:  #2a3050;

  /* Bordas */
  --oh-border:    rgba(255, 255, 255, 0.07);
  --oh-border2:   rgba(255, 255, 255, 0.12);

  /* Cores de destaque */
  --oh-accent:    #6c63ff;
  --oh-accent2:   #ff6b9d;
  --oh-accent3:   #00d4aa;
  --oh-accent4:   #ffb347;
  --oh-accent5:   #4fc3f7;

  /* Texto */
  --oh-text:      #e8eaf6;
  --oh-text2:     #8b90b8;
  --oh-text3:     #5a5f80;
  --oh-text-inv:  #0d0f1a;

  /* Semânticas */
  --oh-success:   #00d4aa;
  --oh-danger:    #ff6b6b;
  --oh-warning:   #ffb347;
  --oh-info:      #4fc3f7;

  /* Raios */
  --oh-radius-xs: 6px;
  --oh-radius-sm: 10px;
  --oh-radius:    16px;
  --oh-radius-lg: 20px;
  --oh-radius-xl: 28px;
  --oh-radius-full: 9999px;

  /* Sombras */
  --oh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --oh-shadow:    0 8px 32px rgba(0, 0, 0, 0.4);
  --oh-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --oh-glow:      0 0 30px rgba(108, 99, 255, 0.3);
  --oh-glow2:     0 0 30px rgba(255, 107, 157, 0.25);
  --oh-glow3:     0 0 30px rgba(0, 212, 170, 0.25);

  /* Tipografia */
  --oh-font:      'Outfit', system-ui, sans-serif;
  --oh-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Espaçamentos base */
  --oh-space-1:  4px;
  --oh-space-2:  8px;
  --oh-space-3:  12px;
  --oh-space-4:  16px;
  --oh-space-5:  20px;
  --oh-space-6:  24px;
  --oh-space-7:  28px;
  --oh-space-8:  32px;
  --oh-space-10: 40px;
  --oh-space-12: 48px;
  --oh-space-16: 64px;

  /* Layout */
  --oh-sidebar-w:        72px;
  --oh-sidebar-w-open:   220px;
  --oh-topbar-h:         64px;
  --oh-content-padding:  28px 32px;
  --oh-transition:        0.2s ease;
  --oh-transition-slow:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--oh-font);
  background: var(--oh-bg);
  color: var(--oh-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient glow de fundo */
body.oh-ambient::before {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,.08) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
  animation: oh-drift 8s ease-in-out infinite alternate;
  z-index: 0;
}
body.oh-ambient::after {
  content: '';
  position: fixed;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,157,.06) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
  animation: oh-drift 10s ease-in-out infinite alternate-reverse;
  z-index: 0;
}

a { color: var(--oh-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

hr {
  border: none;
  border-top: 1px solid var(--oh-border);
  margin: var(--oh-space-5) 0;
}

img { max-width: 100%; display: block; }

code, pre {
  font-family: var(--oh-font-mono);
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-xs);
}
code { padding: 2px 6px; font-size: 13px; }
pre  { padding: 16px; font-size: 13px; overflow-x: auto; border-radius: var(--oh-radius-sm); }


/* ============================================================
   3. TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { line-height: 1.65; color: var(--oh-text2); }

.oh-text-xs    { font-size: 11px; }
.oh-text-sm    { font-size: 13px; }
.oh-text-base  { font-size: 14px; }
.oh-text-md    { font-size: 15px; }
.oh-text-lg    { font-size: 18px; }
.oh-text-xl    { font-size: 22px; }
.oh-text-2xl   { font-size: 26px; }
.oh-text-3xl   { font-size: 32px; }

.oh-font-light    { font-weight: 300; }
.oh-font-normal   { font-weight: 400; }
.oh-font-medium   { font-weight: 500; }
.oh-font-semibold { font-weight: 600; }
.oh-font-bold     { font-weight: 700; }
.oh-font-extrabold{ font-weight: 800; }

.oh-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-uppercase { text-transform: uppercase; letter-spacing: 0.5px; }
.oh-italic   { font-style: italic; }
.oh-mono     { font-family: var(--oh-font-mono); }

.oh-gradient-text {
  background: linear-gradient(90deg, var(--oh-accent), var(--oh-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   4. UTILITÁRIOS — LAYOUT (Grid, Flex, Spacing)
   ============================================================ */

/* Flex */
.oh-flex         { display: flex; }
.oh-flex-col     { display: flex; flex-direction: column; }
.oh-flex-wrap    { flex-wrap: wrap; }
.oh-flex-1       { flex: 1; }
.oh-flex-shrink-0{ flex-shrink: 0; }
.oh-items-start  { align-items: flex-start; }
.oh-items-center { align-items: center; }
.oh-items-end    { align-items: flex-end; }
.oh-justify-start{ justify-content: flex-start; }
.oh-justify-center{ justify-content: center; }
.oh-justify-end  { justify-content: flex-end; }
.oh-justify-between{ justify-content: space-between; }

/* Gap */
.oh-gap-1  { gap: var(--oh-space-1); }
.oh-gap-2  { gap: var(--oh-space-2); }
.oh-gap-3  { gap: var(--oh-space-3); }
.oh-gap-4  { gap: var(--oh-space-4); }
.oh-gap-5  { gap: var(--oh-space-5); }
.oh-gap-6  { gap: var(--oh-space-6); }
.oh-gap-8  { gap: var(--oh-space-8); }

/* Grid */
.oh-grid   { display: grid; }
.oh-grid-1 { grid-template-columns: repeat(1, 1fr); }
.oh-grid-2 { grid-template-columns: repeat(2, 1fr); }
.oh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.oh-grid-4 { grid-template-columns: repeat(4, 1fr); }
.oh-grid-5 { grid-template-columns: repeat(5, 1fr); }
.oh-grid-sidebar { grid-template-columns: 340px 1fr; }

/* Spacing — Padding */
.oh-p-0  { padding: 0; }
.oh-p-1  { padding: var(--oh-space-1); }
.oh-p-2  { padding: var(--oh-space-2); }
.oh-p-3  { padding: var(--oh-space-3); }
.oh-p-4  { padding: var(--oh-space-4); }
.oh-p-5  { padding: var(--oh-space-5); }
.oh-p-6  { padding: var(--oh-space-6); }
.oh-p-8  { padding: var(--oh-space-8); }
.oh-px-4 { padding-left: var(--oh-space-4); padding-right: var(--oh-space-4); }
.oh-px-5 { padding-left: var(--oh-space-5); padding-right: var(--oh-space-5); }
.oh-px-6 { padding-left: var(--oh-space-6); padding-right: var(--oh-space-6); }
.oh-px-8 { padding-left: var(--oh-space-8); padding-right: var(--oh-space-8); }
.oh-py-3 { padding-top: var(--oh-space-3); padding-bottom: var(--oh-space-3); }
.oh-py-4 { padding-top: var(--oh-space-4); padding-bottom: var(--oh-space-4); }
.oh-py-5 { padding-top: var(--oh-space-5); padding-bottom: var(--oh-space-5); }

/* Spacing — Margin */
.oh-m-0   { margin: 0; }
.oh-mb-2  { margin-bottom: var(--oh-space-2); }
.oh-mb-3  { margin-bottom: var(--oh-space-3); }
.oh-mb-4  { margin-bottom: var(--oh-space-4); }
.oh-mb-5  { margin-bottom: var(--oh-space-5); }
.oh-mb-6  { margin-bottom: var(--oh-space-6); }
.oh-mb-7  { margin-bottom: var(--oh-space-7); }
.oh-mt-2  { margin-top: var(--oh-space-2); }
.oh-mt-4  { margin-top: var(--oh-space-4); }
.oh-mt-5  { margin-top: var(--oh-space-5); }
.oh-ml-auto{ margin-left: auto; }

/* Larguras */
.oh-w-full  { width: 100%; }
.oh-w-auto  { width: auto; }
.oh-h-full  { height: 100%; }
.oh-min-h-screen { min-height: 100vh; }

/* Position */
.oh-relative { position: relative; }
.oh-absolute { position: absolute; }
.oh-fixed    { position: fixed; }
.oh-sticky   { position: sticky; top: 0; }
.oh-inset-0  { inset: 0; }
.oh-z-10  { z-index: 10; }
.oh-z-50  { z-index: 50; }
.oh-z-100 { z-index: 100; }
.oh-z-max { z-index: 9999; }

/* Display */
.oh-hidden   { display: none; }
.oh-block    { display: block; }
.oh-inline   { display: inline; }
.oh-inline-flex { display: inline-flex; }

/* Overflow */
.oh-overflow-hidden { overflow: hidden; }
.oh-overflow-x-auto { overflow-x: auto; }

/* Texto alinhamento */
.oh-text-left   { text-align: left; }
.oh-text-center { text-align: center; }
.oh-text-right  { text-align: right; }

/* Cursor */
.oh-cursor-pointer { cursor: pointer; }
.oh-cursor-grab    { cursor: grab; }
.oh-select-none    { user-select: none; }

/* Pointer events */
.oh-pointer-none { pointer-events: none; }


/* ============================================================
   5. UTILITÁRIOS — COR & TEXTO
   ============================================================ */
.oh-text-primary  { color: var(--oh-text); }
.oh-text-secondary{ color: var(--oh-text2); }
.oh-text-muted    { color: var(--oh-text3); }
.oh-text-accent   { color: var(--oh-accent); }
.oh-text-accent2  { color: var(--oh-accent2); }
.oh-text-accent3  { color: var(--oh-accent3); }
.oh-text-success  { color: var(--oh-success); }
.oh-text-danger   { color: var(--oh-danger); }
.oh-text-warning  { color: var(--oh-warning); }
.oh-text-info     { color: var(--oh-info); }

.oh-bg-base     { background: var(--oh-bg); }
.oh-bg-surface  { background: var(--oh-surface); }
.oh-bg-surface2 { background: var(--oh-surface2); }
.oh-bg-surface3 { background: var(--oh-surface3); }
.oh-bg-accent   { background: var(--oh-accent); }

/* Bordas utilitárias */
.oh-border       { border: 1px solid var(--oh-border); }
.oh-border-top   { border-top: 1px solid var(--oh-border); }
.oh-border-bottom{ border-bottom: 1px solid var(--oh-border); }

/* Border-radius */
.oh-rounded-xs  { border-radius: var(--oh-radius-xs); }
.oh-rounded-sm  { border-radius: var(--oh-radius-sm); }
.oh-rounded     { border-radius: var(--oh-radius); }
.oh-rounded-lg  { border-radius: var(--oh-radius-lg); }
.oh-rounded-xl  { border-radius: var(--oh-radius-xl); }
.oh-rounded-full{ border-radius: var(--oh-radius-full); }

/* Sombras */
.oh-shadow-sm { box-shadow: var(--oh-shadow-sm); }
.oh-shadow    { box-shadow: var(--oh-shadow); }
.oh-shadow-lg { box-shadow: var(--oh-shadow-lg); }
.oh-glow      { box-shadow: var(--oh-glow); }

/* Opacidade */
.oh-opacity-50 { opacity: 0.5; }
.oh-opacity-70 { opacity: 0.7; }


/* ============================================================
   6. COMPONENTES — LAYOUT (Sidebar, Topbar, Main)
   ============================================================ */

/* ----- Sidebar ----- */
.oh-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--oh-sidebar-w);
  background: var(--oh-surface);
  border-right: 1px solid var(--oh-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  z-index: 100;
  transition: width var(--oh-transition-slow);
  overflow: hidden;
}
.oh-sidebar:hover,
.oh-sidebar.oh-open {
  width: var(--oh-sidebar-w-open);
}

.oh-sidebar-logo {
  display: flex;
  align-items: center;
  padding: 0 14px;
  margin-bottom: 32px;
  width: 100%;
}
.oh-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--oh-accent), var(--oh-accent2));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--oh-glow);
}
.oh-logo-text {
  font-size: 15px; font-weight: 700;
  white-space: nowrap;
  margin-left: 12px;
  opacity: 0;
  transition: opacity var(--oh-transition);
  background: linear-gradient(90deg, var(--oh-accent), var(--oh-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.oh-sidebar:hover .oh-logo-text,
.oh-sidebar.oh-open .oh-logo-text { opacity: 1; }

.oh-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--oh-transition);
  position: relative;
  text-decoration: none;
  color: var(--oh-text2);
  border: none;
  background: none;
  font-family: var(--oh-font);
}
.oh-nav-item:hover { background: var(--oh-surface2); color: var(--oh-text); }
.oh-nav-item.oh-active { background: var(--oh-surface2); color: var(--oh-accent); }
.oh-nav-item.oh-active::after {
  content: '';
  position: absolute;
  right: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--oh-accent);
  border-radius: 3px 0 0 3px;
}
.oh-nav-icon {
  font-size: 20px;
  min-width: 44px;
  text-align: center;
}
.oh-nav-label {
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--oh-transition);
}
.oh-sidebar:hover .oh-nav-label,
.oh-sidebar.oh-open .oh-nav-label { opacity: 1; }

.oh-nav-spacer { flex: 1; }
.oh-nav-divider {
  width: calc(100% - 28px);
  height: 1px;
  background: var(--oh-border);
  margin: 8px 14px;
}

/* Status indicator na sidebar */
.oh-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: auto;
  margin-right: 4px;
  flex-shrink: 0;
}
.oh-status-dot.online  { background: var(--oh-success); box-shadow: 0 0 6px var(--oh-success); }
.oh-status-dot.offline { background: var(--oh-danger); }

/* ----- Main ----- */
.oh-main {
  margin-left: var(--oh-sidebar-w);
  min-height: 100vh;
}

/* ----- Topbar ----- */
.oh-topbar {
  height: var(--oh-topbar-h);
  background: var(--oh-surface);
  border-bottom: 1px solid var(--oh-border);
  display: flex;
  align-items: center;
  padding: 0 var(--oh-space-8);
  gap: var(--oh-space-4);
  position: sticky;
  top: 0;
  z-index: 90;
}
.oh-topbar-title {
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}
.oh-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ----- Content ----- */
.oh-content { padding: var(--oh-content-padding); }


/* ============================================================
   7. COMPONENTES — PAINEL / CARD
   ============================================================ */
.oh-panel {
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  overflow: hidden;
  transition: transform var(--oh-transition), box-shadow var(--oh-transition);
}
.oh-panel:hover { }
.oh-panel.oh-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--oh-shadow);
}

.oh-panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--oh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oh-panel-title {
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.oh-panel-body  { padding: 20px; }
.oh-panel-footer{
  padding: 14px 20px;
  border-top: 1px solid var(--oh-border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}

/* Variante sem overflow */
.oh-panel.oh-panel-open { overflow: visible; }

/* Card simples (sem header) */
.oh-card {
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  padding: 20px;
  transition: transform var(--oh-transition), box-shadow var(--oh-transition);
}
.oh-card.oh-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--oh-shadow);
}

/* Card com borda colorida lateral */
.oh-card-accent-left {
  border-left: 4px solid var(--oh-accent);
}
.oh-card-accent-left.oh-pink   { border-left-color: var(--oh-accent2); }
.oh-card-accent-left.oh-green  { border-left-color: var(--oh-accent3); }
.oh-card-accent-left.oh-orange { border-left-color: var(--oh-accent4); }
.oh-card-accent-left.oh-blue   { border-left-color: var(--oh-accent5); }


/* ============================================================
   8. COMPONENTES — BOTÕES
   ============================================================ */
.oh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--oh-radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--oh-font);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--oh-transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.oh-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Variantes */
.oh-btn-primary {
  background: linear-gradient(135deg, var(--oh-accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}
.oh-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.55);
}

.oh-btn-secondary {
  background: var(--oh-surface2);
  color: var(--oh-text);
  border: 1px solid var(--oh-border);
}
.oh-btn-secondary:hover { background: var(--oh-surface3); }

.oh-btn-ghost {
  background: transparent;
  color: var(--oh-text2);
  border: 1px solid transparent;
}
.oh-btn-ghost:hover { background: var(--oh-surface2); color: var(--oh-text); border-color: var(--oh-border); }

.oh-btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--oh-danger);
  border: 1px solid rgba(255, 107, 107, 0.2);
}
.oh-btn-danger:hover { background: rgba(255, 107, 107, 0.25); }

.oh-btn-success {
  background: rgba(0, 212, 170, 0.15);
  color: var(--oh-success);
  border: 1px solid rgba(0, 212, 170, 0.2);
}
.oh-btn-success:hover { background: rgba(0, 212, 170, 0.25); }

.oh-btn-warning {
  background: rgba(255, 179, 71, 0.15);
  color: var(--oh-warning);
  border: 1px solid rgba(255, 179, 71, 0.2);
}
.oh-btn-warning:hover { background: rgba(255, 179, 71, 0.25); }

.oh-btn-accent2 {
  background: linear-gradient(135deg, var(--oh-accent2), #ff4080);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
}
.oh-btn-accent2:hover { transform: translateY(-1px); }

/* Tamanhos */
.oh-btn-xs { padding: 4px 10px; font-size: 11px; border-radius: var(--oh-radius-xs); }
.oh-btn-sm { padding: 6px 14px; font-size: 13px; }
.oh-btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--oh-radius); }
.oh-btn-xl { padding: 18px 36px; font-size: 18px; border-radius: var(--oh-radius); }
.oh-btn-full { width: 100%; }

/* Botão ícone redondo */
.oh-btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.oh-btn-icon.oh-btn-sm { width: 28px; height: 28px; font-size: 13px; border-radius: var(--oh-radius-xs); }
.oh-btn-icon.oh-btn-lg { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
.oh-btn-icon.oh-rounded-full { border-radius: 50%; }

/* Grupo de botões */
.oh-btn-group {
  display: inline-flex;
  background: var(--oh-surface2);
  border-radius: var(--oh-radius-sm);
  padding: 4px;
  gap: 2px;
}
.oh-btn-group .oh-btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 7px;
  background: transparent;
  color: var(--oh-text2);
  border: none;
  box-shadow: none;
}
.oh-btn-group .oh-btn:hover { background: var(--oh-surface3); color: var(--oh-text); transform: none; }
.oh-btn-group .oh-btn.oh-active { background: var(--oh-surface); color: var(--oh-text); box-shadow: var(--oh-shadow-sm); }


/* ============================================================
   9. COMPONENTES — FORMULÁRIOS
   ============================================================ */
.oh-form-group { margin-bottom: 16px; }

.oh-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--oh-text2);
  margin-bottom: 6px;
}
.oh-label.oh-required::after {
  content: ' *';
  color: var(--oh-danger);
}

.oh-input,
.oh-select,
.oh-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-sm);
  color: var(--oh-text);
  font-family: var(--oh-font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--oh-transition), box-shadow var(--oh-transition);
  line-height: 1.5;
}
.oh-input:focus,
.oh-select:focus,
.oh-textarea:focus {
  border-color: var(--oh-accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.oh-input::placeholder,
.oh-textarea::placeholder { color: var(--oh-text3); }
.oh-select { cursor: pointer; }
.oh-textarea { resize: vertical; min-height: 90px; }

/* Estados */
.oh-input.oh-error,
.oh-select.oh-error { border-color: var(--oh-danger); box-shadow: 0 0 0 3px rgba(255,107,107,.15); }
.oh-input.oh-success,
.oh-select.oh-success { border-color: var(--oh-success); box-shadow: 0 0 0 3px rgba(0,212,170,.15); }
.oh-input:disabled { opacity: 0.5; cursor: not-allowed; }

.oh-form-error   { font-size: 12px; color: var(--oh-danger); margin-top: 4px; }
.oh-form-help    { font-size: 12px; color: var(--oh-text3); margin-top: 4px; }
.oh-form-success { font-size: 12px; color: var(--oh-success); margin-top: 4px; }

/* Input com ícone */
.oh-input-wrap { position: relative; }
.oh-input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--oh-text3);
  font-size: 14px;
  pointer-events: none;
}
.oh-input-wrap .oh-input { padding-left: 36px; }
.oh-input-icon-right { left: auto; right: 12px; }
.oh-input-wrap.oh-icon-right .oh-input { padding-left: 14px; padding-right: 36px; }

/* Checkbox & Radio */
.oh-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-sm);
  cursor: pointer;
  transition: background var(--oh-transition);
}
.oh-check-item:hover { background: var(--oh-surface3); }
.oh-check-item input[type="checkbox"],
.oh-check-item input[type="radio"] {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: var(--oh-accent);
  flex-shrink: 0;
}
.oh-check-item label { cursor: pointer; font-size: 14px; line-height: 1; }
.oh-check-item.oh-checked { border-color: rgba(108,99,255,.35); background: rgba(108,99,255,.08); }
.oh-check-item.oh-done label { text-decoration: line-through; color: var(--oh-text3); }

/* Toggle Switch */
.oh-toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.oh-toggle input { opacity: 0; width: 0; height: 0; }
.oh-toggle-slider {
  position: absolute; cursor: pointer;
  inset: 0;
  background: var(--oh-surface3);
  border: 1px solid var(--oh-border2);
  border-radius: 12px;
  transition: all var(--oh-transition);
}
.oh-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; bottom: 2px;
  background: var(--oh-text2);
  border-radius: 50%;
  transition: all var(--oh-transition);
}
.oh-toggle input:checked + .oh-toggle-slider {
  background: rgba(108,99,255,.3);
  border-color: var(--oh-accent);
}
.oh-toggle input:checked + .oh-toggle-slider::before {
  transform: translateX(20px);
  background: var(--oh-accent);
  box-shadow: 0 0 8px rgba(108,99,255,.6);
}


/* ============================================================
   10. COMPONENTES — TABELA
   ============================================================ */
.oh-table { width: 100%; border-collapse: collapse; }
.oh-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  color: var(--oh-text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--oh-border);
}
.oh-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--oh-border);
  font-size: 14px;
  color: var(--oh-text);
}
.oh-table tr:last-child td { border-bottom: none; }
.oh-table tbody tr { transition: background var(--oh-transition); }
.oh-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* Avatar cell */
.oh-table-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.oh-table-avatar-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}


/* ============================================================
   11. COMPONENTES — TABS
   ============================================================ */
.oh-tabs {
  display: flex;
  gap: 2px;
  background: var(--oh-surface2);
  border-radius: var(--oh-radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}
.oh-tab {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--oh-text2);
  cursor: pointer;
  font-family: var(--oh-font);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--oh-transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.oh-tab:hover { color: var(--oh-text); }
.oh-tab.oh-active {
  background: var(--oh-surface);
  color: var(--oh-text);
  box-shadow: var(--oh-shadow-sm);
}

/* Tabs linha inferior */
.oh-tabs-line {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--oh-border);
  margin-bottom: 20px;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.oh-tabs-line .oh-tab {
  flex: unset;
  padding: 10px 20px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.oh-tabs-line .oh-tab.oh-active {
  color: var(--oh-accent);
  border-bottom-color: var(--oh-accent);
  background: transparent;
  box-shadow: none;
}

/* Tab content panel */
.oh-tab-pane { display: none; }
.oh-tab-pane.oh-active { display: block; }


/* ============================================================
   12. COMPONENTES — MODAL
   ============================================================ */
.oh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--oh-transition);
  padding: 20px;
}
.oh-modal-overlay.oh-open {
  opacity: 1;
  pointer-events: all;
}
.oh-modal {
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-lg);
  width: 480px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--oh-shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--oh-transition-slow);
}
.oh-modal-overlay.oh-open .oh-modal { transform: none; }

.oh-modal-sm .oh-modal { width: 360px; }
.oh-modal-lg .oh-modal { width: 640px; }
.oh-modal-xl .oh-modal { width: 800px; }
.oh-modal-full .oh-modal { width: 95vw; height: 90vh; }

.oh-modal-header {
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oh-modal-title { font-size: 18px; font-weight: 700; }
.oh-modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--oh-surface2);
  border: none;
  color: var(--oh-text2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background var(--oh-transition);
  flex-shrink: 0;
}
.oh-modal-close:hover { background: var(--oh-surface3); color: var(--oh-text); }
.oh-modal-body   { padding: 20px 24px 24px; }
.oh-modal-footer {
  padding: 0 24px 24px;
  display: flex; gap: 10px; justify-content: flex-end;
}


/* ============================================================
   13. COMPONENTES — TOAST / ALERTAS
   ============================================================ */
.oh-toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oh-toast {
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--oh-shadow);
  animation: oh-slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.oh-toast.oh-success { border-left: 3px solid var(--oh-success); }
.oh-toast.oh-error   { border-left: 3px solid var(--oh-danger); }
.oh-toast.oh-warning { border-left: 3px solid var(--oh-warning); }
.oh-toast.oh-info    { border-left: 3px solid var(--oh-accent); }
.oh-toast-icon { font-size: 20px; flex-shrink: 0; }
.oh-toast-msg  { font-size: 14px; flex: 1; }
.oh-toast-close { cursor: pointer; color: var(--oh-text3); font-size: 16px; background: none; border: none; color: var(--oh-text2); }

/* Alertas inline */
.oh-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--oh-radius-sm);
  border: 1px solid;
  font-size: 14px;
}
.oh-alert.oh-success { background: rgba(0,212,170,.1);  border-color: rgba(0,212,170,.2);  color: var(--oh-success); }
.oh-alert.oh-error   { background: rgba(255,107,107,.1);border-color: rgba(255,107,107,.2); color: var(--oh-danger); }
.oh-alert.oh-warning { background: rgba(255,179,71,.1); border-color: rgba(255,179,71,.2);  color: var(--oh-warning); }
.oh-alert.oh-info    { background: rgba(108,99,255,.1); border-color: rgba(108,99,255,.2);  color: var(--oh-accent); }
.oh-alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }


/* ============================================================
   14. COMPONENTES — BADGE / PILL
   ============================================================ */
.oh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--oh-radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.oh-badge-default { background: var(--oh-surface2); color: var(--oh-text2); border: 1px solid var(--oh-border); }
.oh-badge-accent  { background: rgba(108,99,255,.15); color: var(--oh-accent); }
.oh-badge-pink    { background: rgba(255,107,157,.15); color: var(--oh-accent2); }
.oh-badge-green   { background: rgba(0,212,170,.15);  color: var(--oh-success); }
.oh-badge-orange  { background: rgba(255,179,71,.15); color: var(--oh-warning); }
.oh-badge-blue    { background: rgba(79,195,247,.15); color: var(--oh-accent5); }
.oh-badge-red     { background: rgba(255,107,107,.15);color: var(--oh-danger); }

.oh-badge-sm { padding: 2px 8px; font-size: 10px; }
.oh-badge-lg { padding: 5px 14px; font-size: 13px; }

/* Dot indicator */
.oh-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--oh-text3);
}
.oh-dot.oh-online  { background: var(--oh-success); box-shadow: 0 0 6px rgba(0,212,170,.6); }
.oh-dot.oh-busy    { background: var(--oh-warning); }
.oh-dot.oh-offline { background: var(--oh-text3); }
.oh-dot.oh-danger  { background: var(--oh-danger); }


/* ============================================================
   15. COMPONENTES — STAT CARD
   ============================================================ */
.oh-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.oh-stat-card {
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--oh-transition), box-shadow var(--oh-transition);
}
.oh-stat-card:hover { transform: translateY(-2px); box-shadow: var(--oh-shadow); }

.oh-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.oh-stat-icon.oh-purple { background: rgba(108,99,255,.15); }
.oh-stat-icon.oh-pink   { background: rgba(255,107,157,.15); }
.oh-stat-icon.oh-green  { background: rgba(0,212,170,.15); }
.oh-stat-icon.oh-orange { background: rgba(255,179,71,.15); }
.oh-stat-icon.oh-blue   { background: rgba(79,195,247,.15); }
.oh-stat-icon.oh-red    { background: rgba(255,107,107,.15); }

.oh-stat-info h3 { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.oh-stat-info p  { font-size: 13px; color: var(--oh-text2); }
.oh-stat-info small { font-size: 11px; color: var(--oh-text3); }

.oh-stat-trend {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}
.oh-stat-trend.oh-up   { color: var(--oh-success); }
.oh-stat-trend.oh-down { color: var(--oh-danger); }


/* ============================================================
   16. COMPONENTES — AVATAR & PICKERS
   ============================================================ */

/* Avatar display */
.oh-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--oh-shadow-sm);
  border: 2px solid rgba(255,255,255,.1);
}
.oh-avatar-xs  { width: 28px; height: 28px; font-size: 14px; }
.oh-avatar-sm  { width: 36px; height: 36px; font-size: 18px; }
.oh-avatar-md  { width: 48px; height: 48px; font-size: 22px; }
.oh-avatar-lg  { width: 60px; height: 60px; font-size: 28px; }
.oh-avatar-xl  { width: 80px; height: 80px; font-size: 36px; }
.oh-avatar-sq  { border-radius: 12px; }

/* Avatar com status */
.oh-avatar-wrap { position: relative; display: inline-flex; }
.oh-avatar-wrap .oh-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border: 2px solid var(--oh-bg);
}

/* Avatar picker grid */
.oh-avatar-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.oh-avatar-option {
  width: 48px; height: 48px;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--oh-surface2);
  border: 2px solid transparent;
  transition: all var(--oh-transition);
}
.oh-avatar-option:hover { border-color: var(--oh-accent); transform: scale(1.1); }
.oh-avatar-option.oh-selected {
  border-color: var(--oh-accent);
  background: rgba(108,99,255,.2);
  box-shadow: 0 0 12px rgba(108,99,255,.3);
}

/* Color picker */
.oh-color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.oh-color-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform var(--oh-transition), border-color var(--oh-transition);
}
.oh-color-dot:hover { transform: scale(1.2); }
.oh-color-dot.oh-selected { border-color: #fff; transform: scale(1.1); }

/* Icon picker */
.oh-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.oh-icon-option {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--oh-surface2);
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all var(--oh-transition);
}
.oh-icon-option:hover { border-color: var(--oh-accent); }
.oh-icon-option.oh-selected {
  border-color: var(--oh-accent);
  background: rgba(108,99,255,.15);
}


/* ============================================================
   17. COMPONENTES — DRAG & DROP
   ============================================================ */

/* Pool de itens não alocados */
.oh-pool {
  background: var(--oh-surface);
  border: 2px dashed var(--oh-border);
  border-radius: var(--oh-radius);
  padding: 16px;
  margin-bottom: 20px;
}
.oh-pool-header {
  font-size: 13px;
  color: var(--oh-text2);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}

/* Drop zone genérica */
.oh-drop-zone {
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  border-radius: var(--oh-radius-sm);
  padding: 4px;
  transition: background var(--oh-transition);
}
.oh-drop-zone.oh-empty::after {
  content: attr(data-empty);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oh-text3);
  font-size: 13px;
  pointer-events: none;
}
.oh-drop-zone.oh-drag-active {
  background: rgba(108, 99, 255, 0.07);
  border: 1px dashed rgba(108, 99, 255, 0.4);
  border-radius: var(--oh-radius-sm);
}

/* Person / item draggable */
.oh-person-wrap { position: relative; }
.oh-person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: grab;
  user-select: none;
  transition: transform var(--oh-transition);
  width: 76px;
}
.oh-person-card:hover    { transform: translateY(-3px); }
.oh-person-card:active   { cursor: grabbing; }
.oh-person-card.oh-dragging { opacity: 0.4; transform: scale(0.9); }

.oh-person-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--oh-shadow);
  border: 3px solid rgba(255,255,255,.1);
  font-size: 28px;
}
.oh-person-name {
  font-size: 11px; font-weight: 600;
  text-align: center;
  max-width: 76px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oh-person-role {
  font-size: 10px;
  color: var(--oh-text3);
  text-align: center;
  max-width: 76px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Kanban / Dept card */
.oh-dept-card {
  background: var(--oh-surface);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  overflow: hidden;
  transition: box-shadow var(--oh-transition);
}
.oh-dept-card.oh-drag-over {
  border-color: var(--oh-accent);
  box-shadow: 0 0 0 2px rgba(108,99,255,.3), var(--oh-shadow);
}
.oh-dept-header {
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.oh-dept-color-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.oh-dept-name  { font-size: 15px; font-weight: 700; flex: 1; }
.oh-dept-count {
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-full);
  padding: 3px 12px;
  font-size: 12px;
  color: var(--oh-text2);
  font-weight: 600;
}
.oh-dept-actions {
  display: flex; gap: 6px;
  opacity: 0;
  transition: opacity var(--oh-transition);
}
.oh-dept-header:hover .oh-dept-actions { opacity: 1; }
.oh-dept-drop-zone {
  min-height: 100px;
  padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--oh-border);
  position: relative;
  transition: background var(--oh-transition);
}
.oh-dept-drop-zone.oh-empty::after {
  content: 'Arraste colaboradores aqui';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--oh-text3);
  font-size: 13px;
  pointer-events: none;
}
.oh-dept-drop-zone.oh-drag-active { background: rgba(108,99,255,.05); }


/* ============================================================
   18. COMPONENTES — POPOVER
   ============================================================ */
.oh-popover {
  position: absolute;
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: 12px;
  padding: 12px;
  width: 190px;
  box-shadow: var(--oh-shadow-lg);
  z-index: 200;
  font-size: 12px;
  display: none;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}
.oh-popover.oh-top    { bottom: calc(100% + 8px); top: auto; }
.oh-popover.oh-bottom { top: calc(100% + 8px); bottom: auto; }
.oh-popover.oh-left   { right: calc(100% + 8px); left: auto; transform: none; top: 0; bottom: auto; }
.oh-popover.oh-right  { left: calc(100% + 8px); right: auto; transform: none; top: 0; bottom: auto; }
.oh-person-wrap:hover .oh-popover,
.oh-popover-trigger:hover .oh-popover { display: block; }

.oh-popover-row {
  display: flex; gap: 6px;
  color: var(--oh-text2);
  margin-bottom: 4px; overflow: hidden;
}
.oh-popover-row span:first-child { color: var(--oh-text3); min-width: 50px; flex-shrink: 0; }
.oh-popover-row span:last-child  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-popover-actions { display: flex; gap: 6px; margin-top: 10px; }
.oh-popover-btn {
  flex: 1; padding: 5px; border: none;
  border-radius: 6px; cursor: pointer;
  font-size: 11px; font-family: var(--oh-font); font-weight: 600;
  transition: opacity var(--oh-transition);
}
.oh-popover-btn:hover { opacity: 0.8; }
.oh-popover-btn.oh-edit { background: rgba(108,99,255,.2); color: var(--oh-accent); }
.oh-popover-btn.oh-del  { background: rgba(255,107,107,.15); color: var(--oh-danger); }


/* ============================================================
   19. COMPONENTES — SKELETON / LOADING
   ============================================================ */
.oh-skeleton {
  background: linear-gradient(90deg, var(--oh-surface2) 25%, var(--oh-surface3) 50%, var(--oh-surface2) 75%);
  background-size: 200% 100%;
  animation: oh-shimmer 1.5s infinite;
  border-radius: 8px;
}
.oh-skeleton-text  { height: 14px; width: 100%; margin-bottom: 8px; }
.oh-skeleton-title { height: 22px; width: 60%; margin-bottom: 12px; }
.oh-skeleton-avatar{ width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.oh-skeleton-btn   { height: 40px; width: 120px; border-radius: var(--oh-radius-sm); }
.oh-skeleton-card  { height: 80px; border-radius: var(--oh-radius); }

/* Spinner */
.oh-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: oh-spin 0.6s linear infinite;
  flex-shrink: 0;
}
.oh-spinner-sm { width: 12px; height: 12px; }
.oh-spinner-lg { width: 24px; height: 24px; border-width: 3px; }
.oh-spinner-xl { width: 40px; height: 40px; border-width: 3px; }
.oh-spinner.oh-accent { border-color: rgba(108,99,255,.2); border-top-color: var(--oh-accent); }

/* Overlay de loading */
.oh-loading-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,15,26,.8);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 10;
}


/* ============================================================
   20. COMPONENTES — DROPDOWN
   ============================================================ */
.oh-dropdown { position: relative; display: inline-block; }
.oh-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-sm);
  box-shadow: var(--oh-shadow-lg);
  z-index: 300;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--oh-transition);
}
.oh-dropdown-menu.oh-right { left: auto; right: 0; }
.oh-dropdown.oh-open .oh-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.oh-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--oh-text);
  cursor: pointer;
  transition: background var(--oh-transition);
  border: none; background: none; width: 100%; font-family: var(--oh-font);
}
.oh-dropdown-item:hover { background: var(--oh-surface3); }
.oh-dropdown-item.oh-danger { color: var(--oh-danger); }
.oh-dropdown-item.oh-danger:hover { background: rgba(255,107,107,.1); }
.oh-dropdown-divider { height: 1px; background: var(--oh-border); margin: 4px 0; }
.oh-dropdown-label {
  padding: 8px 14px 4px;
  font-size: 11px; font-weight: 600;
  color: var(--oh-text3); text-transform: uppercase; letter-spacing: .5px;
}


/* ============================================================
   21. COMPONENTES — PROGRESS
   ============================================================ */
.oh-progress {
  height: 6px;
  background: var(--oh-surface3);
  border-radius: var(--oh-radius-full);
  overflow: hidden;
}
.oh-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--oh-accent), #8b5cf6);
  border-radius: var(--oh-radius-full);
  transition: width 0.5s ease;
}
.oh-progress-bar.oh-green  { background: linear-gradient(90deg, var(--oh-success), #00a884); }
.oh-progress-bar.oh-orange { background: linear-gradient(90deg, var(--oh-warning), #e8960e); }
.oh-progress-bar.oh-red    { background: linear-gradient(90deg, var(--oh-danger), #e03c3c); }

.oh-progress-md { height: 8px; }
.oh-progress-lg { height: 12px; }

/* Progress com label */
.oh-progress-wrap { margin-bottom: 14px; }
.oh-progress-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.oh-progress-label  { font-weight: 500; }
.oh-progress-value  { color: var(--oh-text2); }


/* ============================================================
   22. COMPONENTES — TOOLTIP
   ============================================================ */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--oh-surface3);
  color: var(--oh-text);
  border: 1px solid var(--oh-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--oh-transition);
  z-index: 9999;
  box-shadow: var(--oh-shadow);
}
[data-tooltip]:hover::after { opacity: 1; }
[data-tooltip-bottom]::after { top: calc(100% + 6px); bottom: auto; }


/* ============================================================
   23. COMPONENTES — BREADCRUMB
   ============================================================ */
.oh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--oh-text3);
  flex-wrap: wrap;
}
.oh-breadcrumb a { color: var(--oh-text2); text-decoration: none; }
.oh-breadcrumb a:hover { color: var(--oh-text); }
.oh-breadcrumb-sep { color: var(--oh-text3); }
.oh-breadcrumb-current { color: var(--oh-text); font-weight: 500; }


/* ============================================================
   24. COMPONENTES — EMPTY STATE
   ============================================================ */
.oh-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--oh-text3);
}
.oh-empty-icon  { font-size: 64px; margin-bottom: 16px; opacity: 0.8; }
.oh-empty-title { font-size: 16px; font-weight: 600; color: var(--oh-text2); margin-bottom: 8px; }
.oh-empty-desc  { font-size: 13px; max-width: 320px; line-height: 1.6; }
.oh-empty-action{ margin-top: 20px; }


/* ============================================================
   25. COMPONENTES — DIVIDER / SECTION HEADER
   ============================================================ */
.oh-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--oh-text3);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.oh-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--oh-border);
}

/* Chip / Tag */
.oh-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--oh-surface2);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius-full);
  font-size: 13px;
  color: var(--oh-text2);
  cursor: pointer;
  transition: all var(--oh-transition);
}
.oh-chip:hover    { background: var(--oh-surface3); color: var(--oh-text); border-color: var(--oh-border2); }
.oh-chip.oh-active{ background: rgba(108,99,255,.15); color: var(--oh-accent); border-color: rgba(108,99,255,.3); }
.oh-chip-close    { font-size: 12px; cursor: pointer; opacity: 0.6; }
.oh-chip-close:hover { opacity: 1; }


/* ============================================================
   26. ANIMAÇÕES & KEYFRAMES
   ============================================================ */
@keyframes oh-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 30px); }
}

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

@keyframes oh-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes oh-slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes oh-slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes oh-fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

@keyframes oh-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes oh-pop {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  70%  { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

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

@keyframes oh-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Classes de animação */
.oh-anim-pop    { animation: oh-pop 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.oh-anim-fadeIn { animation: oh-fadeIn 0.3s ease; }
.oh-anim-pulse  { animation: oh-pulse 2s ease-in-out infinite; }
.oh-anim-bounce { animation: oh-bounce 1s ease-in-out infinite; }
.oh-anim-fadeOut{ animation: oh-fadeOut 0.3s forwards; }

/* Transições */
.oh-transition { transition: all var(--oh-transition); }
.oh-transition-slow { transition: all var(--oh-transition-slow); }


/* ============================================================
   27. SCROLLBAR CUSTOMIZADA
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--oh-surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--oh-surface4); }


/* ============================================================
   28. RESPONSIVO
   ============================================================ */
@media (max-width: 1200px) {
  .oh-stat-grid     { grid-template-columns: repeat(2, 1fr); }
  .oh-grid-4        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .oh-grid-sidebar  { grid-template-columns: 1fr; }
  .oh-grid-3        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .oh-stat-grid     { grid-template-columns: 1fr 1fr; }
  .oh-grid-2, .oh-grid-3, .oh-grid-4 { grid-template-columns: 1fr; }
  .oh-content       { padding: 16px; }
  .oh-topbar        { padding: 0 16px; }
  .oh-sidebar       { width: var(--oh-sidebar-w); }
  .oh-main          { margin-left: var(--oh-sidebar-w); }
  .oh-hide-mobile   { display: none; }
}

@media (max-width: 480px) {
  .oh-stat-grid     { grid-template-columns: 1fr; }
  .oh-modal         { border-radius: var(--oh-radius); }
  .oh-toast         { min-width: unset; width: calc(100vw - 32px); }
}

/* Print */
@media print {
  .oh-sidebar, .oh-topbar, .oh-toast-container { display: none; }
  .oh-main { margin-left: 0; }
}
