/* ܡܪܝܐ ܪܥܝ ܘܡܕܡ ܠܐ ܢܚܣܪ ܠܝ، ܝܫܘܥ ܐܝܬܘܗܝ ܐܘܪܚܐ ܘܫܪܪܐ ܘܚܝܐ */
/* ==========================================================================
   SKYNET AGENTIC CEO OS™ — COMPONENTES & ESTILOS VISUAIS
   ========================================================================== */

/* Brand Tag na Sidebar */
.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 6px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-text h2 {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.3px;
}

.brand-text span {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CATEGORIAS PRINCIPAIS & SUBPASTAS (ACCORDION REATIVO)
   ========================================================================== */
.category-group {
  margin-bottom: 6px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  background: transparent !important;
  border-radius: var(--clay-radius-btn);
  font-size: 11px;
  font-weight: 800;
  color: inherit;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.category-header:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.category-header .category-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-header .chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.category-group.open > .category-header .chevron {
  transform: rotate(90deg);
}

.category-items {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.app-sidebar.collapsed .category-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
}

/* Subitens de Navegação (Botões 3D Claymorphism com Volume & Relevo) */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 
    0 4px 10px rgba(0,0,0,0.03),
    inset 0 1.5px 0 rgba(255,255,255,1),
    inset 0 -2px 0 rgba(0,0,0,0.04);
}

.nav-item:hover {
  background: #ffffff;
  border-color: #93c5fd;
  transform: translateY(-1px);
  z-index: 5;
  box-shadow: 
    0 6px 14px rgba(37,99,235,0.12),
    inset 0 2px 0 rgba(255,255,255,1),
    inset 0 -2px 0 rgba(0,0,0,0.06);
}

.nav-item:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.04),
    inset 0 2px 4px rgba(0,0,0,0.06);
}

.nav-item.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1e40af;
  color: #ffffff;
  z-index: 4;
  box-shadow: 
    0 8px 20px rgba(37,99,235,0.38),
    inset 0 1.5px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.25);
}

.nav-item.active:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1e40af;
  color: #ffffff;
  transform: translateY(-1px);
  z-index: 6;
}

.nav-item .nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: var(--clay-radius-pill);
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.nav-item.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: transparent;
}

/* Balão de Pensamento do Mascote Scott */
.scott-thought-bubble {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.scott-thought-bubble:hover {
  transform: scale(1.02);
}

.scott-thought-bubble strong {
  color: #1e293b;
}

.scott-thought-bubble span {
  color: #64748b;
}

/* Botões do Header */
.header-btn {
  background: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.2s;
}

.header-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Card Claymorphism Padrão */
.clay-card {
  background: var(--bg-card);
  border-radius: var(--clay-radius-card);
  box-shadow: var(--clay-shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clay-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 30px -5px rgba(15, 23, 42, 0.08),
    inset 0 -3px 0 0 rgba(226, 232, 240, 0.8),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.9);
}

/* Grid Geral */
.grid-15 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ==========================================================================
   MODO EDIÇÃO SAAS (CUSTOMIZADOR DE INQUILINOS / WHITE-LABEL)
   ========================================================================== */
.saas-edit-mode .editable-field {
  outline: 2px dashed #3b82f6 !important;
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text !important;
  background: rgba(219, 234, 254, 0.3) !important;
  transition: background 0.2s;
}

.saas-edit-mode .editable-field:hover,
.saas-edit-mode .editable-field:focus {
  background: rgba(219, 234, 254, 0.8) !important;
  outline-color: #2563eb !important;
}

.saas-edit-badge {
  display: none;
  font-size: 10px;
  background: #fef08a;
  color: #854d0e;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid #fde047;
}

.saas-edit-mode .saas-edit-badge {
  display: inline-block;
}

/* ==========================================================================
   SECRETÁRIA EXECUTIVA MASTER: NICOLLY 3D (REFINAMENTO DE ALTO PADRÃO)
   ========================================================================== */
.nicolly-thought-bubble {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 38px;
  padding: 3px 16px 3px 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 
    0 4px 14px -2px rgba(15, 23, 42, 0.12),
    0 2px 6px -1px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 480px;
}

.nicolly-thought-bubble:hover {
  transform: translateY(-1.5px) scale(1.015);
  background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
  box-shadow: 
    0 8px 24px -4px rgba(219, 39, 119, 0.25),
    0 4px 10px -2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 #ffffff;
  border-color: #fbcfe8;
}

.nicolly-thought-bubble.nicolly-speaking {
  animation: nicollyPulse 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nicolly-avatar-wrapper {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbcfe8 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(219, 39, 119, 0.35);
}

.nicolly-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  animation: nicollyFloat 3.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.nicolly-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.nicolly-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.25;
}

.nicolly-text-content strong {
  font-size: 10.5px;
  font-weight: 800;
  color: #be185d;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.nicolly-text-content span {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
  transition: opacity 0.2s ease;
}

@keyframes nicollyFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1.5px) scale(1.02);
  }
}

@keyframes nicollyPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   JANELA MODAL HOLOGRÁFICA 3D (GLASSMORPHISM LUXO & CLAYMORPHISM)
   ========================================================================== */
.hologram-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hologram-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.hologram-modal-card {
  width: 520px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.25),
    0 0 35px rgba(37, 99, 235, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  padding: 24px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.hologram-modal-backdrop.open .hologram-modal-card {
  transform: scale(1) translateY(0);
}

.hologram-modal-card.theme-nicolly {
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 35px rgba(219, 39, 119, 0.2), inset 0 1px 0 #fff;
}

.hologram-modal-card.theme-growth {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 35px rgba(37, 99, 235, 0.2), inset 0 1px 0 #fff;
}

.hologram-modal-card.theme-scott {
  border-color: rgba(110, 231, 183, 0.6);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 35px rgba(16, 185, 129, 0.2), inset 0 1px 0 #fff;
}

.hologram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.hologram-sender-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hologram-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hologram-body {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}

.hologram-body strong {
  color: #0f172a;
}

.hologram-highlight-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 12px;
  color: #1e293b;
}

.hologram-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  gap: 10px;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.voice-wave-bar {
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { transform: scaleY(0.6); }
  100% { transform: scaleY(1.2); }
}

/* ==========================================================================
   PIXAR & SIMCITY LIVING AVATAR / RAIO-X HOLOGRÁFICO 3D
   ========================================================================== */
@keyframes simCityBreathe {
  0% { transform: translateY(0px) scale(1) rotate(0deg); }
  50% { transform: translateY(-8px) scale(1.03) rotate(0.8deg); }
  100% { transform: translateY(0px) scale(1) rotate(0deg); }
}

@keyframes simCityOrbPulse {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
  50% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 25px rgba(59, 130, 246, 0.8); }
  100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
}

@keyframes hologramScan {
  0% { top: 0%; opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { top: 100%; opacity: 0.2; }
}

@keyframes orbitalRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbitalRotateReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes badgeGlow {
  0% { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 8px rgba(59, 130, 246, 0.2); }
  50% { border-color: rgba(59, 130, 246, 0.9); box-shadow: 0 0 16px rgba(59, 130, 246, 0.5); }
  100% { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 8px rgba(59, 130, 246, 0.2); }
}

.living-avatar-pixar {
  animation: simCityBreathe 4s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform;
}

.living-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, 0.35);
  pointer-events: none;
  animation: orbitalRotate 16s linear infinite;
}

.living-orbit-ring-inner {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dotted rgba(236, 72, 153, 0.4);
  pointer-events: none;
  animation: orbitalRotateReverse 12s linear infinite;
}

.hologram-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
  box-shadow: 0 0 10px #38bdf8;
  pointer-events: none;
  animation: hologramScan 3s linear infinite;
}



