:root {
  --font-display: "Caprasimo", serif;
  --primary: #6B5CE7;
  --primary-light: #A89BF0;
  --primary-dark: #4A3DB5;
  --bg-main: #F4F4F8;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A2E;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: rgba(107, 92, 231, 0.15);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 12px rgba(107,92,231,0.15);
  --shadow-md: 0 12px 36px rgba(107,92,231,0.22);
  --shadow-lg: 0 28px 72px rgba(107,92,231,0.28);
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
html.dark {
  --bg-main: #0c1324;
  --bg-card: rgba(30, 41, 59, 0.4);
  --text-primary: #dce1fb;
  --text-secondary: #c7c4d7;
  --text-muted: #908fa0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.45);
  --shadow-md: 0 14px 40px rgba(0,0,0,0.55);
  --shadow-lg: 0 32px 80px rgba(0,0,0,0.7);
  --glass: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.06);
}



/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', 'DM Sans', sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.02);
}

/* Transição global para as orbs de pseudo-elementos durante trocas de aba.
   Deliberadamente NÃO transicionamos top/right/bottom/left/transform aqui:
   animar propriedades de layout em elementos do tamanho da viewport força
   reflow por frame e causa a sensação de "travado" ao trocar de guia.
   Apenas background + opacity dão o cross-fade percebido sem esse custo. */
body::before,
body::after {
  transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: opacity;
}

html.dark body {
  background-color: #0c1324;
  color: #dce1fb;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(107, 92, 231, 0.05);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Classes globais de design */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 15px 35px rgba(107, 92, 231, 0.12),
    0 5px 15px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  transition: var(--transition);
}

/* Fundo Fluido e Azulado para o Lab de Estudos */
/* .bg-lab-dark-fluid removido para tirar o fundo azul escuro */

.card:hover {
  box-shadow: 
    0 25px 50px rgba(107, 92, 231, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(107, 92, 231, 0.35), inset 0 0 8px rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 15px 30px rgba(107, 92, 231, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.5);
  background-color: var(--primary-dark);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 1.5px solid rgba(107, 92, 231, 0.25);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 0 8px rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

html.dark .btn-secondary {
  background-color: rgba(30, 41, 59, 0.4);
  color: #c0c1ff;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 0 12px rgba(255, 255, 255, 0.55);
  border-color: var(--primary);
}

html.dark .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.progress-bar-container {
  width: 100%;
  background-color: rgba(107, 92, 231, 0.1);
  border-radius: 50px;
  overflow: hidden;
  height: 8px;
}

html.dark .progress-bar-container {
  background-color: rgba(12, 19, 36, 0.5);
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  width: 0;
  border-radius: 50px;
  transition: width 0.4s ease-out;
}

/* Esferas decorativas */
.orb {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 45px 0 rgba(99, 102, 241, 0.16);
}

html.dark .liquid-glass {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.5);
}

/* Card Amber - Liquid Glass Premium */
.liquid-glass-amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.09) 0%, rgba(217, 119, 6, 0.05) 100%) !important;
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  box-shadow: 
    0 15px 30px -5px rgba(245, 158, 11, 0.04),
    inset 0 0 20px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-amber:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(217, 119, 6, 0.08) 100%) !important;
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(245, 158, 11, 0.42) !important;
  box-shadow: 
    0 20px 40px -5px rgba(245, 158, 11, 0.08),
    inset 0 0 25px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

html.dark .liquid-glass-amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, rgba(217, 119, 6, 0.03) 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.22) !important;
  box-shadow: 
    0 15px 30px -5px rgba(0, 0, 0, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.dark .liquid-glass-amber:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.06) 100%) !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
  box-shadow: 
    0 20px 40px -5px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Animações Flutuantes Lentas para o Fundo Liquid Glass */
@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -30px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-slow-reverse {
  0% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1.05); }
}

.animate-float-slow {
  animation: float-slow 12s ease-in-out infinite;
}

.animate-float-slow-reverse {
  animation: float-slow-reverse 15s ease-in-out infinite;
}

/* Card Urgent - Liquid Glass Premium */
.liquid-glass-urgent {
  --urgent-glow-1: rgba(239, 68, 68, 0.25);
  --urgent-glow-2: rgba(245, 158, 11, 0.15);
  --urgent-inset-glow: rgba(255, 255, 255, 0.5);
  --urgent-inset-border: rgba(255, 255, 255, 0.3);
  --urgent-border-color: rgba(249, 115, 22, 0.4);
  --urgent-border-color-active: rgba(239, 68, 68, 0.6);
  --urgent-glow-1-active: rgba(239, 68, 68, 0.4);
  --urgent-glow-2-active: rgba(245, 158, 11, 0.25);
  --urgent-inset-glow-active: rgba(255, 255, 255, 0.65);
  --urgent-inset-border-active: rgba(255, 255, 255, 0.4);

  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(239, 68, 68, 0.15) 50%, rgba(251, 191, 36, 0.1) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1.5px solid var(--urgent-border-color);
  box-shadow: 
    0 15px 30px -5px var(--urgent-glow-1),
    0 0 15px var(--urgent-glow-2),
    inset 0 0 15px var(--urgent-inset-glow),
    inset 0 0 0 1px var(--urgent-inset-border);
  animation: urgent-breathing 4s infinite alternate ease-in-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-urgent:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--urgent-border-color-active);
  box-shadow: 
    0 20px 45px -5px var(--urgent-glow-1-active),
    0 0 30px var(--urgent-glow-2-active),
    inset 0 0 22px var(--urgent-inset-glow-active),
    inset 0 0 0 1px var(--urgent-inset-border-active);
  animation-play-state: paused;
}

html.dark .liquid-glass-urgent {
  --urgent-glow-1: rgba(239, 68, 68, 0.4);
  --urgent-glow-2: rgba(249, 115, 22, 0.2);
  --urgent-inset-glow: rgba(255, 255, 255, 0.15);
  --urgent-inset-border: rgba(255, 255, 255, 0.1);
  --urgent-border-color: rgba(249, 115, 22, 0.3);
  --urgent-border-color-active: rgba(239, 68, 68, 0.5);
  --urgent-glow-1-active: rgba(239, 68, 68, 0.6);
  --urgent-glow-2-active: rgba(249, 115, 22, 0.35);
  --urgent-inset-glow-active: rgba(255, 255, 255, 0.25);
  --urgent-inset-border-active: rgba(255, 255, 255, 0.15);

  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(249, 115, 22, 0.12) 50%, rgba(251, 146, 60, 0.08) 100%);
}

@keyframes urgent-breathing {
  0% {
    border-color: var(--urgent-border-color);
    box-shadow: 
      0 15px 30px -5px var(--urgent-glow-1),
      0 0 15px var(--urgent-glow-2),
      inset 0 0 15px var(--urgent-inset-glow),
      inset 0 0 0 1px var(--urgent-inset-border);
  }
  100% {
    border-color: var(--urgent-border-color-active);
    box-shadow: 
      0 20px 45px -5px var(--urgent-glow-1-active),
      0 0 30px var(--urgent-glow-2-active),
      inset 0 0 22px var(--urgent-inset-glow-active),
      inset 0 0 0 1px var(--urgent-inset-border-active);
  }
}


.glass-pill {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.1);
}

html.dark .glass-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.45);
}

.neomorph-raised {
  box-shadow: 10px 10px 24px rgba(107, 92, 231, 0.14), -10px -10px 24px rgba(255, 255, 255, 0.95);
}

html.dark .neomorph-raised {
  background: rgba(46, 52, 71, 0.4);
  box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.5), -6px -6px 18px rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.neomorph-inset {
  box-shadow: inset 4px 4px 10px rgba(107, 92, 231, 0.12), inset -4px -4px 10px rgba(255, 255, 255, 0.9);
}

html.dark .neomorph-inset {
  background: rgba(7, 13, 31, 0.5);
  box-shadow: inset 4px 4px 12px rgba(0, 0, 0, 0.65), inset -2px -2px 10px rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Glass sphere */
.glass-sphere {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: 
    inset -10px -10px 25px rgba(0,0,0,0.1), 
    inset 10px 10px 25px rgba(255,255,255,0.6),
    0 20px 40px rgba(0,0,0,0.08);
}

html.dark .glass-sphere {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset -5px -5px 15px rgba(0,0,0,0.4), inset 5px 5px 15px rgba(255,255,255,0.05);
}

/* Gradient blob */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

/* Dark mode specific page styles */
.liquid-card-dashboard {
  background: rgba(30, 41, 59, 0.08);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 30px 70px -15px rgba(99, 102, 241, 0.25),
    0 12px 24px -5px rgba(0, 0, 0, 0.08),
    inset 0 0 50px rgba(255, 255, 255, 0.4);
}

.liquid-card-dashboard h3 {
  color: #1e1b4b; /* Tom de azul marinho profundo para contraste */
}

.liquid-card-dashboard p {
  color: #312e81; /* Indigo escuro para o texto de apoio */
  font-weight: 600;
}

html.dark .liquid-card-dashboard {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

/* Page hidden */
.page-section {
  display: none !important;
}
.page-section.active {
  display: block !important;
  animation: pageFadeSlide 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
#section-social.page-section.active {
  display: grid !important;
  animation: pageFadeSlide 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

@keyframes pageFadeSlide {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Active tab for lab */
.tab-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(107, 92, 231, 0.25);
}

/* Active setting tab */
.setting-tab.active {
  border-color: var(--primary);
  color: var(--primary);
}

/* Chat mode btn */
.mode-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(107, 92, 231, 0.25);
}

/* Lila avatar */
.avatar-lila {
  background: linear-gradient(135deg, #6B5CE7 0%, #2fd9f4 100%);
}

/* Chat container */
.chat-container,
.chat-messages-container {
  height: calc(100vh - 420px);
  min-height: 530px;
}

.liquid-glass-frosted {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.12),
    inset 0 0 50px rgba(255, 255, 255, 0.2);
}

.liquid-glass-button {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border: 1.2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.08),
    inset 0 0 12px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
}



/* Glass variants for tools */
.liquid-glass-tool,
.liquid-glass-chat,
.liquid-glass-social,
.liquid-glass-settings {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 28px 64px -12px rgba(99, 102, 241, 0.18),
    0 10px 24px -4px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

html.dark .liquid-glass-tool,
html.dark .liquid-glass-chat,
html.dark .liquid-glass-social,
html.dark .liquid-glass-settings {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

/* Glass Variants for Metric Cards */
.glass-metric-amber {
  background: rgba(255, 191, 0, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 15px 35px rgba(255, 191, 0, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.glass-metric-primary {
  background: rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 15px 35px rgba(99, 102, 241, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.glass-metric-purple {
  background: rgba(139, 92, 246, 0.22);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 15px 35px rgba(139, 92, 246, 0.22),
    inset 0 0 25px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.glass-metric-red {
  background: rgba(239, 68, 68, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 15px 35px rgba(239, 68, 68, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Efeitos de Hover para os Cards de Métricas (Suavizados) */
.glass-metric-amber,
.glass-metric-primary,
.glass-metric-purple,
.glass-metric-red {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.glass-metric-amber:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: rgba(255, 191, 0, 0.35) !important;
  background: rgba(255, 191, 0, 0.14) !important;
  box-shadow: 
    0 16px 32px rgba(255, 191, 0, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

.glass-metric-primary:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  background: rgba(99, 102, 241, 0.14) !important;
  box-shadow: 
    0 16px 32px rgba(99, 102, 241, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

.glass-metric-purple:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: rgba(139, 92, 246, 0.24) !important;
  box-shadow: 
    0 16px 32px rgba(139, 92, 246, 0.2),
    inset 0 0 25px rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

.glass-metric-red:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.14) !important;
  box-shadow: 
    0 16px 32px rgba(239, 68, 68, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

/* Transições e Animações dos Ícones Internos no Hover */
.glass-metric-amber span.material-symbols-outlined,
.glass-metric-primary span.material-symbols-outlined,
.glass-metric-purple span.material-symbols-outlined,
.glass-metric-red span.material-symbols-outlined {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  display: inline-block;
}

.glass-metric-amber:hover span.material-symbols-outlined,
.glass-metric-primary:hover span.material-symbols-outlined,
.glass-metric-purple:hover span.material-symbols-outlined,
.glass-metric-red:hover span.material-symbols-outlined {
  transform: scale(1.1) rotate(6deg) !important;
}

/* Glass control for flashcards */
.glass-control {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

html.dark .glass-control {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   TOP NAVIGATION — Liquid Glass Floating Pill
   Efeito: vidro premium com mouse-follow glow e hover expand
   ============================================================ */

/* Container fixo no topo central */
/* Bottom Navigation Bar & Indicator */
#bottom-nav {
  position: fixed !important;
  top: 1rem !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 150;
  width: auto !important;
  min-width: 190px;
  max-width: 220px; /* Estado encolhido por padrão */
  transition: min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#bottom-nav:hover {
  min-width: 440px;
  max-width: 520px; /* Estado expandido no hover */
}

#bottom-nav .glass-pill {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.6), 
    inset 0 -4px 12px rgba(0, 0, 0, 0.06), 
    0 25px 50px -12px rgba(99, 102, 241, 0.2);
}

html.dark #bottom-nav .glass-pill {
  background: rgba(15, 23, 42, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.12), 
    inset 0 -4px 12px rgba(0, 0, 0, 0.5), 
    0 20px 45px -10px rgba(0, 0, 0, 0.45);
}

/* Indicador Deslizante Roxo Liquid Glass */
.nav-indicator-active {
  background: linear-gradient(135deg, rgba(107, 92, 231, 0.25) 0%, rgba(124, 58, 237, 0.3) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 9999px !important;
  box-shadow: 
    inset 0 2px 8px rgba(255, 255, 255, 0.6), 
    0 10px 25px -5px rgba(107, 92, 231, 0.25);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark .nav-indicator-active {
  background: linear-gradient(135deg, rgba(165, 180, 252, 0.12) 0%, rgba(196, 181, 253, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    inset 0 2px 6px rgba(255, 255, 255, 0.15), 
    0 8px 20px -4px rgba(0, 0, 0, 0.3);
}

.nav-item {
  position: relative;
  z-index: 10;
  display: flex !important;
  flex-direction: row !important; /* Layout horizontal para texto deslizar para o lado do ícone */
  align-items: center !important;
  justify-content: center !important;
  height: 44px; /* Altura fixa proporcional */
  padding: 0 12px !important;
  gap: 0px;
  transition: color 0.25s ease, padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(55, 65, 81, 0.7);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 9999px !important;
}

.nav-item .material-symbols-outlined {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  transition: transform 0.25s ease;
}

#bottom-nav .nav-item span:not(.material-symbols-outlined) {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.3s ease;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

#bottom-nav .nav-item #nav-badge-lab:not(.hidden) {
  max-width: 10px !important;
  opacity: 1 !important;
  overflow: visible !important;
  display: inline-block !important;
}

#bottom-nav:hover .nav-item {
  gap: 6px;
  padding: 0 16px !important;
}

#bottom-nav:hover .nav-item span:not(.material-symbols-outlined) {
  max-width: 100px;
  opacity: 1;
}

html.dark .nav-item {
  color: rgba(156, 163, 175, 0.8);
}

.nav-item:hover {
  color: #6366f1 !important;
}

html.dark .nav-item:hover {
  color: #a5b4fc !important;
}

.nav-item.active {
  color: #6366f1 !important;
  font-weight: 700;
}

html.dark .nav-item.active {
  color: #a5b4fc !important;
  font-weight: 700;
}

/* Card do Timer Pomodoro Flutuante */
.pomo-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.6), 
    inset 0 -4px 10px rgba(0, 0, 0, 0.03), 
    inset 0 0 15px rgba(255, 255, 255, 0.25),
    0 16px 45px -10px rgba(99, 102, 241, 0.25);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover e interatividade do card flutuante */
#pomo-floating-card.pointer-events-auto {
  cursor: pointer;
}

#pomo-floating-card.pointer-events-auto:hover .pomo-glass-card {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.7), 
    inset 0 -4px 12px rgba(0, 0, 0, 0.02), 
    inset 0 0 22px rgba(255, 255, 255, 0.4),
    0 24px 55px -12px rgba(99, 102, 241, 0.38);
}

/* Variação de cores dependendo do modo ativo */
.pomo-glass-card.pomo-mode-work {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.6), 
    inset 0 -4px 10px rgba(0, 0, 0, 0.03), 
    inset 0 0 15px rgba(99, 102, 241, 0.15),
    0 16px 45px -10px rgba(99, 102, 241, 0.35);
}

.pomo-glass-card.pomo-mode-break {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.6), 
    inset 0 -4px 10px rgba(0, 0, 0, 0.03), 
    inset 0 0 15px rgba(34, 197, 94, 0.15),
    0 16px 45px -10px rgba(34, 197, 94, 0.35);
}

#pomo-floating-card.pointer-events-auto:hover .pomo-glass-card.pomo-mode-work {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.7), 
    inset 0 0 22px rgba(99, 102, 241, 0.25),
    0 24px 55px -12px rgba(99, 102, 241, 0.45);
}

#pomo-floating-card.pointer-events-auto:hover .pomo-glass-card.pomo-mode-break {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.7), 
    inset 0 0 22px rgba(34, 197, 94, 0.25),
    0 24px 55px -12px rgba(34, 197, 94, 0.45);
}

/* Modo escuro para o card flutuante */
html.dark .pomo-glass-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.35) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.15), 
    inset 0 -4px 10px rgba(0, 0, 0, 0.4), 
    inset 0 0 15px rgba(255, 255, 255, 0.05),
    0 16px 45px -8px rgba(0, 0, 0, 0.6);
}

html.dark .pomo-glass-card.pomo-mode-work {
  border-color: rgba(165, 180, 252, 0.25);
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.15), 
    inset 0 0 15px rgba(99, 102, 241, 0.1),
    0 16px 45px -8px rgba(99, 102, 241, 0.45);
}

html.dark .pomo-glass-card.pomo-mode-break {
  border-color: rgba(74, 222, 128, 0.25);
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.15), 
    inset 0 0 15px rgba(34, 197, 94, 0.1),
    0 16px 45px -8px rgba(34, 197, 94, 0.45);
}

/* Animação de pulso líquido de borda quando o timer está ativo (rodando) */
.pomo-glass-card.pomo-active.pomo-mode-work {
  animation: pomoLiquidPulseWork 2.5s infinite alternate ease-in-out;
}

.pomo-glass-card.pomo-active.pomo-mode-break {
  animation: pomoLiquidPulseBreak 2.5s infinite alternate ease-in-out;
}

@keyframes pomoLiquidPulseWork {
  0% {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 
      inset 0 4px 12px rgba(255, 255, 255, 0.6), 
      inset 0 0 15px rgba(99, 102, 241, 0.15),
      0 16px 45px -10px rgba(99, 102, 241, 0.35);
  }
  100% {
    border-color: rgba(99, 102, 241, 0.95);
    box-shadow: 
      inset 0 4px 16px rgba(255, 255, 255, 0.7), 
      inset 0 0 25px rgba(99, 102, 241, 0.35),
      0 20px 50px -5px rgba(99, 102, 241, 0.55);
  }
}

@keyframes pomoLiquidPulseBreak {
  0% {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 
      inset 0 4px 12px rgba(255, 255, 255, 0.6), 
      inset 0 0 15px rgba(34, 197, 94, 0.15),
      0 16px 45px -10px rgba(34, 197, 94, 0.35);
  }
  100% {
    border-color: rgba(34, 197, 94, 0.95);
    box-shadow: 
      inset 0 4px 16px rgba(255, 255, 255, 0.7), 
      inset 0 0 25px rgba(34, 197, 94, 0.35),
      0 20px 50px -5px rgba(34, 197, 94, 0.55);
  }
}

/* Estilos de Arrasto e Picture-in-Picture para o Pomodoro */
#pomo-floating-card {
  cursor: grab;
  transition: opacity 0.5s, transform 0.5s;
}

#pomo-floating-card.pomo-dragging {
  cursor: grabbing;
  transition: none !important;
}

/* Estilo do botão PiP */
#pomo-float-pip:hover {
  color: #6366f1;
}
html.dark #pomo-float-pip:hover {
  color: #a5b4fc;
}

/* Customizações para o card dentro da janela Picture-in-Picture */
.pomo-glass-card.pomo-in-pip {
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  height: 100% !important;
  padding: 10px 16px !important;
  gap: 16px !important;
}

/* Ocultar botões extras no PiP */
.pomo-in-pip #pomo-float-pip {
  display: none !important;
}

/* Centralização flexbox do pomo-glass-card na janela PiP/Pop-up */
.pomo-pip-body {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100vh !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Overlay do Fundo Místico da Lila AI */
#lila-bg-overlay {
  z-index: -9;
  background-color: #080511; /* Preto profundo/místico */
  background-image: 
    radial-gradient(at 15% 15%, rgba(244, 63, 94, 0.45) 0px, transparent 65%), /* Rosa vibrante escuro e aparente */
    radial-gradient(at 80% 20%, rgba(147, 51, 234, 0.42) 0px, transparent 65%), /* Roxo vibrante escuro e aparente */
    radial-gradient(at 80% 80%, rgba(59, 130, 246, 0.45) 0px, transparent 70%), /* Azul vibrante escuro e aparente */
    radial-gradient(at 20% 80%, rgba(107, 92, 231, 0.35) 0px, transparent 60%), /* Roxo-azul escuro */
    radial-gradient(at 50% 50%, rgba(0, 0, 0, 0.65) 0px, transparent 75%); /* Preto central */
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: 200% 200%;
  animation: lilaGradientMotion 15s ease infinite; /* Movimento fluído otimizado */
}

@keyframes lilaGradientMotion {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==================== ESTILOS EXCLUSIVOS LILA AI ==================== */

#section-lila {
  max-width: 48rem !important; /* 768px - largura ideal de leitura e chat, igual à Lovable */
  margin: 0 auto !important;
  flex-direction: column !important;
  height: calc(100vh - 120px) !important;
  min-height: 550px !important;
  justify-content: space-between !important;
}

#section-lila.active {
  display: flex !important;
}

/* Dropdown de Histórico de Conversas (Estilo Suspenso) */
#lila-sidebar-drawer {
  position: fixed !important;
  left: 2rem !important;
  top: 7.75rem !important;
  width: 20rem !important;
  max-height: 24rem !important;
  height: auto !important;
  background: rgba(15, 13, 30, 0.94) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.5rem !important;
  z-index: 50 !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  
  /* Configuração inicial para transição de dropdown */
  opacity: 0 !important;
  transform: translateY(-10px) scaleY(0.9) !important;
  transform-origin: top center !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#lila-sidebar-drawer.open {
  opacity: 1 !important;
  transform: translateY(0) scaleY(1) !important;
  pointer-events: auto !important;
}

/* Gatilho Flutuante da Sidebar Drawer (Hover/Clique Trigger) */
#btn-trigger-sidebar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#btn-trigger-sidebar:hover {
  transform: translateY(-2px) !important; /* Move levemente para cima no hover */
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.25) !important; /* Glow roxo suave */
}
#btn-trigger-sidebar.active #trigger-arrow {
  transform: rotate(180deg) !important;
}

/* Tela de Boas-Vindas */
#lila-welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  padding: 40px 0;
  color: #ffffff;
}

#lila-welcome-title {
  font-size: 2.75rem !important;
  font-weight: 800 !important;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

/* Balões de Chat - Estilo Lovable Moderno */

/* Container de Mensagens do Chat */
.chat-messages-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: calc(100vh - 350px) !important; /* Altura ideal */
}

/* Alinhamento geral das mensagens */
#section-lila .chat-messages-container > div {
  margin-bottom: 0 !important;
}

/* Mensagem do Usuário (Direita) - Caixa Escura Translúcida */
#section-lila .chat-messages-container > div.justify-end > div {
  background: rgba(39, 39, 42, 0.75) !important; /* Cinza escuro da Lovable */
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 1.5rem 1.5rem 0.25rem 1.5rem !important;
  padding: 12px 18px !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  max-width: 80% !important;
}

/* Mensagem da Lila AI (Esquerda) - Balão Translúcido Elegante */
#section-lila .chat-messages-container > div:not(.justify-end) > div:not(.avatar-lila) {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  padding: 14px 20px !important;
  border-radius: 1.5rem 1.5rem 1.5rem 0.25rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 400 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  max-width: 85% !important;
}

/* Estilo do balão de loading da Lila */
#section-lila .chat-messages-container .lila-loading-bubble > div:not(.avatar-lila) {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-radius: 1.5rem 1.5rem 1.5rem 0.25rem !important;
  padding: 12px 18px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Avatar Lila */
#section-lila .avatar-lila {
  background: linear-gradient(135deg, #f43f5e 0%, #9333ea 50%, #3b82f6 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3) !important;
}

/* Caixa de Input Flutuante (Lovable Input Container) */
.lila-input-box-container {
  background: rgba(18, 16, 32, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.45),
    0 5px 15px rgba(0, 0, 0, 0.2) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.lila-input-box-container:focus-within {
  border-color: rgba(168, 85, 247, 0.45) !important; /* Roxo */
  box-shadow: 
    0 0 25px rgba(168, 85, 247, 0.25),
    0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

/* Textarea de Entrada Sem Borda */
.lila-input-box-container textarea#chat-input {
  color: #ffffff !important;
  background-color: transparent !important;
  font-family: inherit;
  line-height: 1.5;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.lila-input-box-container textarea#chat-input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Chips Rápidos */
#section-lila .chip-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#section-lila .chip-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  color: #e9d5ff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.25) !important;
}

/* Seletor de Modo (Fast vs Deep) */
#section-lila .mode-btn {
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

#section-lila .mode-btn.active {
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%) !important; /* Roxo -> Azul */
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25) !important;
}

#section-lila .mode-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.9);
}

/* Sidebar Drawer de Conversas */
#lila-sidebar-drawer {
  max-height: 70vh;
}

#lila-sidebar-drawer.open {
  transform: translateX(0) !important;
}

/* Itens de Conversa Recentes no Drawer */
#recent-conversations > div {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

#recent-conversations > div:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  color: #e9d5ff !important;
}

#recent-conversations > div.border-primary\/40 {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  color: #e9d5ff !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15) !important;
}

/* Estado de Boas-Vindas Centralizado Integrado */
#lila-chat-wrapper.welcome-state {
  justify-content: center !important;
  align-items: center !important;
}

#lila-chat-wrapper.welcome-state #lila-welcome-container {
  flex: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: auto !important;
  margin-bottom: 1.5rem !important;
}

#lila-chat-wrapper.welcome-state #lila-input-wrapper {
  margin-top: 0 !important;
  margin-bottom: auto !important;
  padding-top: 0 !important;
  width: 100% !important;
}

/* Transições Suaves para o Input */
#lila-input-wrapper {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Customização dos Method Cards no Lab de Estudos (Vidro Fosco Colorido) */
.method-card[data-tool="pomodoro"] {
  background: rgba(245, 158, 11, 0.07) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.25) !important;
}
.method-card[data-tool="pomodoro"]:hover {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.25) !important;
}

.method-card[data-tool="feynman"] {
  background: rgba(99, 102, 241, 0.06) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.25) !important;
}
.method-card[data-tool="feynman"]:hover {
  background: rgba(99, 102, 241, 0.14) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.25) !important;
}

.method-card[data-tool="flashcards"] {
  background: rgba(167, 139, 250, 0.07) !important;
  border: 1.5px solid rgba(167, 139, 250, 0.25) !important;
}
.method-card[data-tool="flashcards"]:hover {
  background: rgba(167, 139, 250, 0.14) !important;
  border-color: rgba(167, 139, 250, 0.5) !important;
  box-shadow: 0 15px 30px rgba(167, 139, 250, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.25) !important;
}
.method-card[data-tool="mapas_mentais"] {
  background: rgba(14, 165, 233, 0.06) !important;
  border: 1.5px solid rgba(14, 165, 233, 0.25) !important;
}
.method-card[data-tool="mapas_mentais"]:hover {
  background: rgba(14, 165, 233, 0.14) !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.25) !important;
}

/* Botões de Avaliação do Flashcard (Contornos e Brilhos Coloridos) */
#btn-hard, #btn-medium, #btn-easy {
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease !important;
}
#btn-hard:hover {
  border-color: rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15), inset 0 0 12px rgba(255, 255, 255, 0.2) !important;
}
#btn-medium:hover {
  border-color: rgba(167, 139, 250, 0.45) !important;
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.15), inset 0 0 12px rgba(255, 255, 255, 0.2) !important;
}
#btn-easy:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15), inset 0 0 12px rgba(255, 255, 255, 0.2) !important;
}

/* Fundo Azul Escuro Profundo e Contornos do Lab de Estudos */
/* .bg-lab-gradient removido para tirar o fundo azul escuro do Lab de Estudos */

/* Lila Logo Animada no Bottom Nav */
.lila-logo-nav {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: margin-bottom 0.3s ease, transform 0.3s ease;
  margin-bottom: 0 !important;
}

#bottom-nav:hover .lila-logo-nav {
  margin-bottom: 3px !important;
}

/* O contorno ondulante rotativo */
.lila-logo-contour {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Gradiente linear vibrante: azul, roxo, rosa */
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
  padding: 2px; /* Espessura da fita colorida */
  
  /* Criando a fita/contorno via máscara CSS (miolo transparente) */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  
  /* Animações combinadas */
  animation: lila-logo-spin 8s linear infinite, lila-logo-morph 4s ease-in-out infinite;
}

/* O círculo central cinza estável */
.lila-logo-center {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #94a3b8; /* Cinza escura (slate-400) para nitidez em light e dark mode */
  border-radius: 50%;
  background: transparent;
  z-index: 2;
}

/* Animações da logo */
@keyframes lila-logo-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes lila-logo-morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  25% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
  }
  50% {
    border-radius: 30% 70% 60% 40% / 40% 60% 40% 60%;
  }
  75% {
    border-radius: 55% 45% 48% 52% / 50% 50% 50% 50%;
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
}

/* Estilização dos Balões de Chat da Lila AI */
.chat-messages-container div[class*="animate-fade-in-up"] {
  max-width: 90%;
}

/* Card do Usuário (Roxo Translúcido Premium) */
.user-msg-card {
  background: rgba(147, 51, 234, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(147, 51, 234, 0.4) !important;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.1) !important;
  padding: 14px 20px !important;
  border-radius: 1.5rem 1.5rem 0.25rem 1.5rem !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

/* Garante que o input da Lila AI cresça verticalmente */
.lila-input-box-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: fit-content;
}

#chat-input {
  transition: height 0.1s ease-out;
}

/* Lila Logo no Chat */
/* Estilos para Metas e Cronograma */
.goal-toggle, .activity-toggle {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-toggle:hover, .activity-toggle:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(107, 92, 231, 0.3);
}

.goal-toggle[data-completed="1"] {
  background: var(--primary);
  border-color: var(--primary);
}

.activity-toggle[data-completed="1"] {
  background: #a855f7; /* Purple-500 */
  border-color: #a855f7;
}

#goals-list::-webkit-scrollbar {
  width: 4px;
}

#goals-list::-webkit-scrollbar-thumb {
  background: rgba(107, 92, 231, 0.2);
  border-radius: 10px;
}

#goals-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.neomorph-raised {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neomorph-raised:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 30px rgba(107, 92, 231, 0.18), -10px -10px 24px rgba(255, 255, 255, 0.98);
}

html.dark .neomorph-raised:hover {
  box-shadow: 15px 15px 35px rgba(0, 0, 0, 0.6), -6px -6px 20px rgba(255, 255, 255, 0.04);
}

/* ==================== ESTILOS PREMIUM DO DASHBOARD ==================== */
/* Fundo com tons azulados elegantes e sutilmente mais escuros para maior contraste */
html.light body.body-dashboard-bg {
  background-color: #cbdcf8 !important; /* Azul suave e elegante */
  background-image: none !important;
}

/* Cards com neomorfismo refinado no Dashboard para realçar brilhos e sombreados */
html.light body.body-dashboard-bg .neomorph-raised {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    6px 12px 28px rgba(99, 102, 241, 0.12), 
    -6px -12px 28px rgba(255, 255, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html.light body.body-dashboard-bg .neomorph-raised:hover {
  transform: translateY(-3px);
  box-shadow: 
    10px 18px 36px rgba(99, 102, 241, 0.18), 
    -8px -16px 36px rgba(255, 255, 255, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* Cartão Principal de Destaque com efeito Glassmorphism aprimorado */
html.light body.body-dashboard-bg .liquid-card-dashboard {
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 
    0 30px 60px -15px rgba(99, 102, 241, 0.28),
    0 12px 24px -5px rgba(0, 0, 0, 0.08),
    inset 0 0 50px rgba(255, 255, 255, 0.5) !important;
}

/* Orbs de fundo com brilhos mais visíveis e destacados */
body.body-dashboard-bg .orb {
  filter: blur(100px) !important;
  opacity: 0.6 !important;
}

/* Elementos visuais flutuantes em azul escuro que se movem no background do Dashboard */
html.light body.body-dashboard-bg::before,
html.light body.body-dashboard-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(110px);
  opacity: 0.5;
  transition: opacity 0.8s ease;
}

/* Orb Azul Escuro 1 - Canto Superior Direito */
html.light body.body-dashboard-bg::before {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #1d4ed8 0%, #1e3a8a 100%);
  top: 10%;
  right: -5%;
  animation: dashboardFloatBlue1 24s ease-in-out infinite alternate;
}

/* Orb Azul Escuro 2 - Canto Inferior Esquerdo */
html.light body.body-dashboard-bg::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2563eb 0%, #172554 100%);
  bottom: 10%;
  left: -5%;
  animation: dashboardFloatBlue2 28s ease-in-out infinite alternate;
}

/* Animações fluidas de flutuação e pulsação de escala */
@keyframes dashboardFloatBlue1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-100px, 80px) scale(1.2) rotate(180deg);
  }
  100% {
    transform: translate(50px, -60px) scale(0.85) rotate(360deg);
  }
}

@keyframes dashboardFloatBlue2 {
  0% {
    transform: translate(0, 0) scale(0.9) rotate(0deg);
  }
  50% {
    transform: translate(90px, -70px) scale(1.15) rotate(-180deg);
  }
  100% {
    transform: translate(-40px, 50px) scale(1) rotate(-360deg);
  }
}

/* Customização do modelo liquid glass no Dashboard (sofisticado, transparente e com profundidade) */
html.light body.body-dashboard-bg .liquid-glass {
  background: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(25px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(130%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.12),
    0 10px 20px -8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

/* ==================== ESTILOS PREMIUM DO LAB DE ESTUDOS ==================== */
/* Fundo com tons verdes elegantes e sutis para relaxamento e foco acadêmico */
html.light body.body-lab-bg {
  background-color: #d1ebd9 !important; /* Verde menta suave */
  background-image: none !important;
}

/* Elementos visuais flutuantes em verde escuro que se movem no background do Lab de Estudos */
html.light body.body-lab-bg::before,
html.light body.body-lab-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(110px);
  opacity: 0.5;
  transition: opacity 0.8s ease;
}

/* Orb Verde Escuro 1 - Canto Superior Direito */
html.light body.body-lab-bg::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #15803d 0%, #14532d 100%);
  top: 10%;
  right: -5%;
  animation: labFloatGreen1 26s ease-in-out infinite alternate;
}

/* Orb Verde Escuro 2 - Canto Inferior Esquerdo */
html.light body.body-lab-bg::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #16a34a 0%, #064e3b 100%);
  bottom: 10%;
  left: -5%;
  animation: labFloatGreen2 30s ease-in-out infinite alternate;
}

/* Animações fluidas de flutuação e pulsação de escala em verde */
@keyframes labFloatGreen1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-90px, 70px) scale(1.18) rotate(180deg);
  }
  100% {
    transform: translate(60px, -50px) scale(0.88) rotate(360deg);
  }
}

@keyframes labFloatGreen2 {
  0% {
    transform: translate(0, 0) scale(0.92) rotate(0deg);
  }
  50% {
    transform: translate(85px, -80px) scale(1.16) rotate(-180deg);
  }
  100% {
    transform: translate(-50px, 45px) scale(1) rotate(-360deg);
  }
}

/* Cards e Botões no Lab de Estudos para realçar o contraste e brilho */
html.light body.body-lab-bg .liquid-glass-tool,
html.light body.body-lab-bg .liquid-glass-button {
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 20px 40px rgba(21, 128, 61, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.04),
    inset 0 0 12px rgba(255, 255, 255, 0.3) !important;
}

html.light body.body-lab-bg .liquid-glass-button:hover {
  background: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 
    0 24px 48px rgba(21, 128, 61, 0.16),
    0 10px 20px rgba(0, 0, 0, 0.05),
    inset 0 0 16px rgba(255, 255, 255, 0.4) !important;
}

/* Modificações específicas para os cartões de método */
html.light body.body-lab-bg .method-card {
  background: rgba(255, 255, 255, 0.25) !important; /* Muito mais transparente */
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 15px 35px rgba(21, 128, 61, 0.08),
    inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

html.light body.body-lab-bg .method-card:hover {
  background: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 25px 50px rgba(21, 128, 61, 0.14),
    inset 0 0 25px rgba(255, 255, 255, 0.4) !important;
}

/* ==================== BOTÕES LIQUID GLASS (MÉTODOS/LAB) ==================== */
/* Botões Primários com efeito de vidro líquido esmeralda ultra-transparente e reflexo proeminente */
html.light body.body-lab-bg .btn-primary {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.3) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
  backdrop-filter: blur(16px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(200%) !important;
  border: 1.8px solid rgba(255, 255, 255, 0.9) !important;
  color: #14532d !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    0 12px 24px -4px rgba(16, 185, 129, 0.25), 
    0 4px 10px rgba(0, 0, 0, 0.04), 
    inset 0 2px 5px rgba(255, 255, 255, 0.8), 
    inset 0 -4px 10px rgba(16, 185, 129, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html.light body.body-lab-bg .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.45) 0%, rgba(16, 185, 129, 0.35) 100%) !important;
  border-color: rgba(255, 255, 255, 1) !important;
  box-shadow: 
    0 18px 32px -4px rgba(16, 185, 129, 0.35), 
    0 6px 14px rgba(0, 0, 0, 0.08), 
    inset 0 2px 7px rgba(255, 255, 255, 0.9), 
    inset 0 -4px 12px rgba(16, 185, 129, 0.2) !important;
  color: #064e3b !important;
}

html.light body.body-lab-bg .btn-primary:active {
  transform: translateY(0) scale(0.97) !important;
  box-shadow: 
    0 8px 16px rgba(16, 185, 129, 0.18), 
    inset 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Botões Secundários com efeito translúcido cristalino hiper-limpo e bordas de luz nítidas */
html.light body.body-lab-bg .btn-secondary {
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1.8px solid rgba(255, 255, 255, 0.95) !important;
  color: #15803d !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  box-shadow: 
    0 10px 20px -4px rgba(21, 128, 61, 0.1), 
    0 2px 8px rgba(0, 0, 0, 0.02), 
    inset 0 2px 5px rgba(255, 255, 255, 0.95), 
    inset 0 -3px 8px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html.light body.body-lab-bg .btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(255, 255, 255, 1) !important;
  box-shadow: 
    0 14px 28px -4px rgba(21, 128, 61, 0.18), 
    0 4px 12px rgba(0, 0, 0, 0.04), 
    inset 0 2px 7px rgba(255, 255, 255, 1), 
    inset 0 -3px 8px rgba(255, 255, 255, 0.1) !important;
  color: #166534 !important;
}

html.light body.body-lab-bg .btn-secondary:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: 
    0 6px 16px rgba(21, 128, 61, 0.08), 
    inset 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Botões da Classe Liquid Glass de Ação/Navegação (ex: voltar para métodos) */
html.light body.body-lab-bg .liquid-glass-button {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(20px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
  border: 1.8px solid rgba(255, 255, 255, 0.95) !important;
  color: #15803d !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  box-shadow: 
    0 12px 24px -4px rgba(21, 128, 61, 0.12), 
    0 4px 10px rgba(0, 0, 0, 0.03), 
    inset 0 2px 5px rgba(255, 255, 255, 0.9), 
    inset 0 -3px 8px rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html.light body.body-lab-bg .liquid-glass-button:hover {
  background: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(255, 255, 255, 1) !important;
  box-shadow: 
    0 16px 32px -4px rgba(21, 128, 61, 0.18), 
    0 6px 14px rgba(0, 0, 0, 0.05), 
    inset 0 2px 7px rgba(255, 255, 255, 1) !important;
  color: #166534 !important;
}

/* ==================== ESTILOS PREMIUM DO CALENDÁRIO ==================== */
/* Fundo Roxo Escuro Profundo/Místico com gradientes de alta saturação */
html.light body.body-calendario-bg {
  background-color: #0b071e !important; /* Roxo escuro profundo */
  background-image: none !important;
  color: #f1f5f9 !important; /* Texto claro para contraste perfeito */
}

/* Garante títulos e textos principais claros no background escuro do calendário */
body.body-calendario-bg #calendar-org-title {
  color: #ffffff !important;
}
body.body-calendario-bg #calendar-event-subtitle {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Elementos visuais flutuantes em roxo/fúcsia neon que se movem no background */
html.light body.body-calendario-bg::before,
html.light body.body-calendario-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(120px);
  opacity: 0.6;
  transition: opacity 0.8s ease;
}

/* Orb Violeta Neon 1 - Canto Superior Direito */
html.light body.body-calendario-bg::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, #3b0764 100%);
  top: 8%;
  right: -8%;
  animation: calendarFloatPurple1 24s ease-in-out infinite alternate;
}

/* Orb Fúcsia Neon 2 - Canto Inferior Esquerdo */
html.light body.body-calendario-bg::after {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #db2777 0%, #4a044e 100%);
  bottom: 8%;
  left: -8%;
  animation: calendarFloatPurple2 28s ease-in-out infinite alternate;
}

/* Redefinir as orbs padrão do HTML para tons roxos maiores e mais brilhantes */
body.body-calendario-bg .orb:nth-child(1) {
  background-color: rgba(168, 85, 247, 0.4) !important;
  width: 800px !important;
  height: 800px !important;
  filter: blur(140px) !important;
}
body.body-calendario-bg .orb:nth-child(2) {
  background-color: rgba(236, 72, 153, 0.3) !important;
  width: 900px !important;
  height: 900px !important;
  filter: blur(160px) !important;
}

/* Animações fluidas de flutuação e pulsação de escala em roxo */
@keyframes calendarFloatPurple1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-120px, 90px) scale(1.22) rotate(180deg);
  }
  100% {
    transform: translate(60px, -70px) scale(0.85) rotate(360deg);
  }
}

@keyframes calendarFloatPurple2 {
  0% {
    transform: translate(0, 0) scale(0.88) rotate(0deg);
  }
  50% {
    transform: translate(100px, -80px) scale(1.18) rotate(-180deg);
  }
  100% {
    transform: translate(-50px, 60px) scale(1) rotate(-360deg);
  }
}

/* Animação física e suave para a troca de mês no Calendário */
@keyframes monthChangeTransition {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-month-change {
  animation: monthChangeTransition 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==================== ESTILOS PREMIUM DO CRONOGRAMA ==================== */
/* Fundo vermelho/coral pastel muito sutil e claro de alta sofisticação */
html.light body.body-cronograma-bg {
  background-color: #fbe8e6 !important; /* Salmão/Coral claro sutil */
  background-image: none !important;
}

/* Elementos visuais flutuantes em vermelho/coral mais escuro que se movem no background */
html.light body.body-cronograma-bg::before,
html.light body.body-cronograma-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(110px);
  opacity: 0.45;
  transition: opacity 0.8s ease;
}

/* Orb Vermelho Coral - Canto Superior Direito */
html.light body.body-cronograma-bg::before {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #f87171 0%, #dc2626 100%);
  top: 12%;
  right: -5%;
  animation: cronogramaFloatRed1 24s ease-in-out infinite alternate;
}

/* Orb Rosa Quente - Canto Inferior Esquerdo */
html.light body.body-cronograma-bg::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #fda4af 0%, #e11d48 100%);
  bottom: 12%;
  left: -5%;
  animation: cronogramaFloatRed2 28s ease-in-out infinite alternate;
}

/* Redefinir as orbs padrão do HTML para tons vermelhos claros/coral no Cronograma */
body.body-cronograma-bg .orb:nth-child(1) {
  background-color: rgba(248, 113, 113, 0.25) !important;
  width: 750px !important;
  height: 750px !important;
  filter: blur(120px) !important;
}
body.body-cronograma-bg .orb:nth-child(2) {
  background-color: rgba(251, 113, 133, 0.2) !important;
  width: 800px !important;
  height: 800px !important;
  filter: blur(130px) !important;
}

/* Animações fluidas de flutuação e pulsação de escala em vermelho */
@keyframes cronogramaFloatRed1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-100px, 80px) scale(1.18) rotate(180deg);
  }
  100% {
    transform: translate(50px, -60px) scale(0.88) rotate(360deg);
  }
}

@keyframes cronogramaFloatRed2 {
  0% {
    transform: translate(0, 0) scale(0.9) rotate(0deg);
  }
  50% {
    transform: translate(90px, -70px) scale(1.15) rotate(-180deg);
  }
  100% {
    transform: translate(-40px, 50px) scale(1) rotate(-360deg);
  }
}

/* Glow vermelho nos botões do Cronograma */
/* Estilo liquid glass transparente com sombreado, brilho moderado e profundidade */
body.body-cronograma-bg .liquid-glass-button {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(25px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(120%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.1), 
    inset 0 0 12px rgba(255, 255, 255, 0.05) !important;
}

body.body-cronograma-bg .liquid-glass-button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.35), 
    inset 0 1px 0 rgba(255, 255, 255, 0.15), 
    inset 0 0 16px rgba(255, 255, 255, 0.08) !important;
}

html.light body.body-cronograma-bg .liquid-glass-button {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.08), 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), 
    inset 0 0 16px rgba(255, 255, 255, 0.1) !important;
}

html.light body.body-cronograma-bg .liquid-glass-button:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.12), 
    inset 0 1px 0 rgba(255, 255, 255, 0.35), 
    inset 0 0 20px rgba(255, 255, 255, 0.15) !important;
}

/* ==================== DESTAQUE DE ÍCONES E TRANSPARÊNCIA DO CONTAINER DE ÍCONES ==================== */
/* Deixar o recipiente do ícone w-20/rounded-[2rem] muito mais transparente e refinado (efeito liquid glass extremo) */
.method-card .w-20,
.liquid-glass-button .w-20 {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 6px rgba(0, 0, 0, 0.02) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Reforçar a tonalidade, preenchimento e peso dos ícones (Material Symbols) */
.method-card .material-symbols-outlined,
.liquid-glass-button .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 700 !important; /* Preenchido total e peso 700 para máxima legibilidade */
  transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease !important;
}

/* Estilos específicos de transparência e reforço de cores (com efeito glow sutil) */

/* 1. Pomodoro (Laranja) */
.method-card[data-tool="pomodoro"] .w-20 {
  background-color: rgba(249, 115, 22, 0.05) !important; /* Apenas 5% de opacidade */
  border: 1px solid rgba(249, 115, 22, 0.25) !important;
}
.method-card[data-tool="pomodoro"]:hover .w-20 {
  background-color: rgba(249, 115, 22, 0.12) !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
}
.method-card[data-tool="pomodoro"] .material-symbols-outlined {
  color: #ff6a00 !important; /* Laranja ultra vibrante */
  filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.6)) !important; /* Glow neon */
}

/* 2. Feynman (Azul) */
.method-card[data-tool="feynman"] .w-20 {
  background-color: rgba(59, 130, 246, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
}
.method-card[data-tool="feynman"]:hover .w-20 {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}
.method-card[data-tool="feynman"] .material-symbols-outlined {
  color: #1e70ff !important; /* Azul elétrico vibrante */
  filter: drop-shadow(0 0 10px rgba(30, 112, 255, 0.6)) !important;
}

/* 3. Flashcards (Roxo) */
.method-card[data-tool="flashcards"] .w-20 {
  background-color: rgba(139, 92, 246, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
}
.method-card[data-tool="flashcards"]:hover .w-20 {
  background-color: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
}
.method-card[data-tool="flashcards"] .material-symbols-outlined {
  color: #a855f7 !important; /* Roxo neon */
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6)) !important;
}

/* 4. Mapas Mentais (Sky Blue) */
.method-card[data-tool="mapas_mentais"] .w-20 {
  background-color: rgba(14, 165, 233, 0.05) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
}
.method-card[data-tool="mapas_mentais"]:hover .w-20 {
  background-color: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
}
.method-card[data-tool="mapas_mentais"] .material-symbols-outlined {
  color: #0ea5e9 !important; /* Azul céu neon */
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.6)) !important;
}

/* 5. Calendário Hub no Cronograma (Vermelho) */
#btn-open-calendar-hub .w-20 {
  background-color: rgba(239, 68, 68, 0.05) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}
#btn-open-calendar-hub:hover .w-20 {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}
#btn-open-calendar-hub .material-symbols-outlined {
  color: #ff2255 !important; /* Vermelho vibrante */
  filter: drop-shadow(0 0 10px rgba(255, 34, 85, 0.6)) !important;
}

/* 7. Metas Hub no Cronograma (Roxo) */
#btn-open-metas-hub .w-20 {
  background-color: rgba(168, 85, 247, 0.05) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
}
#btn-open-metas-hub:hover .w-20 {
  background-color: rgba(168, 85, 247, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}
#btn-open-metas-hub .material-symbols-outlined {
  color: #a855f7 !important; /* Roxo vibrante */
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6)) !important;
}

/* ==================== BOTÕES LIQUID GLASS DO CALENDÁRIO ==================== */
/* Estilização para as setas (anterior/próximo), botão voltar e botão trocar */
#cal-prev-month,
#cal-next-month,
#btn-back-from-calendar,
#btn-switch-org-calendar {
  background: rgba(255, 255, 255, 0.05) !important; /* Super transparente */
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.12),
    inset 0 2.5px 5px rgba(255, 255, 255, 0.25),
    inset 0 -2.5px 5px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

#cal-prev-month:hover,
#cal-next-month:hover,
#btn-back-from-calendar:hover,
#btn-switch-org-calendar:hover {
  background: rgba(255, 255, 255, 0.14) !important; /* Mais brilhante no hover */
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 15px 40px rgba(139, 92, 246, 0.2), /* Glow roxo sutil no hover */
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.04) !important;
}

#cal-prev-month:active,
#cal-next-month:active,
#btn-back-from-calendar:active,
#btn-switch-org-calendar:active {
  transform: translateY(0) scale(0.96) !important;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.1),
    inset 0 -1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Cor específica do hover do botão Voltar (Glow Azul) */
#btn-back-from-calendar:hover {
  box-shadow: 
    0 15px 40px rgba(56, 189, 248, 0.2),
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2) !important;
  color: #38bdf8 !important;
}

/* Cor específica do hover do botão Trocar (Glow Azul) */
#btn-switch-org-calendar:hover {
  box-shadow: 
    0 15px 40px rgba(56, 189, 248, 0.2),
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2) !important;
  color: #38bdf8 !important;
}

/* ==================== EVENTOS 3D EM FITA CILÍNDRICA REALISTA ==================== */
/* Design skeuomorphic de botão 3D com volume físico, brilho de luz superior e espessura inferior */
.cal-event-card-3d {
  position: relative !important;
  outline: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 4px solid rgba(0, 0, 0, 0.35) !important; /* Espessura física 3D na base */
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.3), /* Sombra projetada */
    inset 0 4px 6px rgba(255, 255, 255, 0.25), /* Brilho de reflexo interno superior */
    inset 0 -4px 6px rgba(0, 0, 0, 0.2) !important; /* Sombra interna inferior */
  transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  background-clip: padding-box !important;
  transform: translateY(0) !important;
}

/* Apenas botões clicáveis ganham cursor pointer e elevação no hover/active */
button.cal-event-card-3d {
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

button.cal-event-card-3d:hover {
  transform: translateY(-2px) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  border-bottom-width: 5px !important; /* Aumenta ligeiramente a espessura quando se eleva */
  box-shadow: 
    0 14px 28px rgba(0, 0, 0, 0.4),
    inset 0 6px 8px rgba(255, 255, 255, 0.35),
    inset 0 -6px 8px rgba(0, 0, 0, 0.25) !important;
}

button.cal-event-card-3d:active {
  transform: translateY(3px) !important; /* Desloca o botão para baixo ao ser pressionado */
  border-bottom-width: 1px !important; /* Reduz a espessura física simulando compressão */
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1) !important;
}

button.cal-event-card-3d:focus {
  outline: none !important;
}

/* Divs de exibição estáticas (Atividades e Metas da API) não são interativas e usam cursor padrão */
div.cal-event-card-3d {
  cursor: default !important;
}

/* ==================== ESTILOS PREMIUM DOS AJUSTES (CINZA FORTALECIDO) ==================== */
/* Fundo cinza médio elegante de alta sofisticação no Light Mode */
html.light body.body-ajustes-bg {
  background-color: #cbd5e1 !important; /* Cinza médio/Slate-300 para maior presença */
  background-image: none !important;
}

/* Pseudo-elementos flutuantes em tons de cinza mais profundos que se movem no background */
html.light body.body-ajustes-bg::before,
html.light body.body-ajustes-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(110px);
  opacity: 0.65; /* Opacidade aumentada para maior intensidade visual */
  transition: opacity 0.8s ease;
}

/* Orb Cinza Slate Escuro - Canto Superior Direito */
html.light body.body-ajustes-bg::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #64748b 0%, #1e293b 100%);
  top: 15%;
  right: -5%;
  animation: ajustesFloatGrey1 24s ease-in-out infinite alternate;
}

/* Orb Cinza Slate Médio - Canto Inferior Esquerdo */
html.light body.body-ajustes-bg::after {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #94a3b8 0%, #475569 100%);
  bottom: 15%;
  left: -5%;
  animation: ajustesFloatGrey2 28s ease-in-out infinite alternate;
}

/* Redefinir as orbs padrão do HTML para tons cinzas mais escuros nos Ajustes */
body.body-ajustes-bg .orb:nth-child(1) {
  background-color: rgba(100, 116, 139, 0.45) !important;
  width: 750px !important;
  height: 750px !important;
  filter: blur(120px) !important;
}
body.body-ajustes-bg .orb:nth-child(2) {
  background-color: rgba(71, 85, 105, 0.35) !important;
  width: 800px !important;
  height: 800px !important;
  filter: blur(130px) !important;
}

/* Animações fluidas de flutuação e pulsação de escala em cinza */
@keyframes ajustesFloatGrey1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-90px, 70px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(40px, -50px) scale(0.9) rotate(360deg);
  }
}

@keyframes ajustesFloatGrey2 {
  0% {
    transform: translate(0, 0) scale(0.9) rotate(0deg);
  }
  50% {
    transform: translate(80px, -60px) scale(1.12) rotate(-180deg);
  }
  100% {
    transform: translate(-30px, 40px) scale(1) rotate(-360deg);
  }
}

/* ==================== ESTILOS PREMIUM DO PAINEL DE METAS ==================== */
/* Fundo Amarelo Profundo/Dourado com gradientes de alta saturação */
html.light body.body-metas-bg {
  background-color: #faf2c3 !important; /* Amarelo baunilha pastel, mais presente e visível */
  background-image: none !important;
}

body.body-metas-bg {
  background-color: #0c0b05 !important; /* Escuro profundo sutilmente quente */
  background-image: none !important;
  color: #f1f5f9 !important;
}

/* Garante títulos e textos claros no background de metas */
body.body-metas-bg #metas-title-display {
  color: #ffffff !important;
}

/* Elementos visuais flutuantes em amarelo/amber neon que se movem no background */
html.light body.body-metas-bg::before,
html.light body.body-metas-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(120px);
  opacity: 0.45; /* Reforçado para 0.45 para evidenciar o tom de amarelo */
  transition: opacity 0.8s ease;
}

/* Orb Dourado Neon 1 - Canto Superior Direito */
body.body-metas-bg::before {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(120px);
  opacity: 0.55;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #eab308 0%, #713f12 100%) !important;
  top: 8%;
  right: -8%;
  animation: metasFloatYellow1 24s ease-in-out infinite alternate;
}

/* Orb Amber Neon 2 - Canto Inferior Esquerdo */
body.body-metas-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(120px);
  opacity: 0.55;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #f59e0b 0%, #78350f 100%) !important;
  bottom: 8%;
  left: -8%;
  animation: metasFloatYellow2 28s ease-in-out infinite alternate;
}

/* Redefinir as orbs padrão do HTML para tons amarelos/amber no Painel de Metas */
body.body-metas-bg .orb:nth-child(1) {
  background-color: rgba(234, 179, 8, 0.25) !important;
  width: 750px !important;
  height: 750px !important;
  filter: blur(120px) !important;
}
body.body-metas-bg .orb:nth-child(2) {
  background-color: rgba(245, 158, 11, 0.2) !important;
  width: 800px !important;
  height: 800px !important;
  filter: blur(130px) !important;
}

@keyframes metasFloatYellow1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-120px, 90px) scale(1.22) rotate(180deg);
  }
  100% {
    transform: translate(60px, -70px) scale(0.85) rotate(360deg);
  }
}

@keyframes metasFloatYellow2 {
  0% {
    transform: translate(0, 0) scale(0.88) rotate(0deg);
  }
  50% {
    transform: translate(100px, -80px) scale(1.18) rotate(-180deg);
  }
  100% {
    transform: translate(-50px, 60px) scale(1) rotate(-360deg);
  }
}

/* Cards no Painel de Metas com efeito Liquid Glass (transparente, brilho sutil, profundidade e sombreado) */
body.body-metas-bg .neomorph-raised {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(25px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(120%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 20px rgba(255, 255, 255, 0.01) !important;
  color: #ffffff !important;
  padding: 2.2rem !important; /* Aumentado de p-6 para 2.2rem */
}

body.body-metas-bg .neomorph-raised:hover {
  transform: translateY(-3px) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.03) !important;
}

html.light body.body-metas-bg .neomorph-raised {
  background: rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.06), 
    inset 0 1px 0 rgba(255, 255, 255, 0.22), 
    inset 0 0 16px rgba(255, 255, 255, 0.08) !important;
  color: #1c1917 !important;
  padding: 2.2rem !important; /* Aumentado no light mode */
}

html.light body.body-metas-bg .neomorph-raised:hover {
  background: rgba(255, 255, 255, 0.58) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1), 
    inset 0 1px 0 rgba(255, 255, 255, 0.3), 
    inset 0 0 20px rgba(255, 255, 255, 0.12) !important;
}

/* Regras de Contraste e Legibilidade para Metas no Light Mode */
html.light body.body-metas-bg {
  color: #1e1b4b !important;
}

html.light body.body-metas-bg #metas-title-display {
  color: #1e1b4b !important;
}

html.light body.body-metas-bg .text-on-surface-variant {
  color: #312e81 !important;
}

html.light body.body-metas-bg .text-white {
  color: #1e1b4b !important;
}

html.light body.body-metas-bg .text-white\/55 {
  color: rgba(30, 27, 75, 0.72) !important;
}

html.light body.body-metas-bg .text-white\/30 {
  color: rgba(30, 27, 75, 0.48) !important;
}

html.light body.body-metas-bg .text-white\/20 {
  color: rgba(30, 27, 75, 0.35) !important;
}

html.light body.body-metas-bg .text-white\/70 {
  color: rgba(30, 27, 75, 0.85) !important;
}

html.light body.body-metas-bg .text-white\/40 {
  color: rgba(30, 27, 75, 0.55) !important;
}

html.light body.body-metas-bg .bg-white\/5 {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

html.light body.body-metas-bg .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.12) !important;
}

html.light body.body-metas-bg .border-white\/20 {
  border-color: rgba(0, 0, 0, 0.18) !important;
}

html.light body.body-metas-bg .border-white\/30 {
  border-color: rgba(0, 0, 0, 0.28) !important;
}

html.light body.body-metas-bg .bg-black\/10 {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

html.light body.body-metas-bg .bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Inputs de criação */
html.light body.body-metas-bg input,
html.light body.body-metas-bg textarea {
  color: #1e1b4b !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
}

html.light body.body-metas-bg input::placeholder,
html.light body.body-metas-bg textarea::placeholder {
  color: rgba(30, 27, 75, 0.45) !important;
}

/* Botões específicos */
html.light body.body-metas-bg #btn-back-to-cronograma {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e1b4b !important;
}

html.light body.body-metas-bg #btn-back-to-cronograma:hover {
  color: #4f46e5 !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

html.light body.body-metas-bg #btn-switch-org {
  color: #6d28d9 !important;
  border-color: rgba(109, 40, 217, 0.3) !important;
  background: rgba(109, 40, 217, 0.08) !important;
}

html.light body.body-metas-bg #btn-switch-org:hover {
  color: #5b21b6 !important;
  background: rgba(109, 40, 217, 0.15) !important;
}

/* Botões de dia */
html.light body.body-metas-bg .day-btn {
  color: #6d28d9 !important;
  border-color: rgba(109, 40, 217, 0.2) !important;
  background-color: rgba(109, 40, 217, 0.08) !important;
}

html.light body.body-metas-bg .day-btn:hover {
  border-color: rgba(109, 40, 217, 0.4) !important;
  background-color: rgba(109, 40, 217, 0.15) !important;
}

html.light body.body-metas-bg .day-btn.bg-purple-600 {
  background-color: #6d28d9 !important;
  border-color: #6d28d9 !important;
  color: #ffffff !important;
}

/* Badges de horário nos cards de atividades */
html.light body.body-metas-bg .bg-purple-500\/20 {
  background-color: rgba(109, 40, 217, 0.15) !important;
  color: #6d28d9 !important;
}

html.light body.body-metas-bg .bg-pink-500\/20 {
  background-color: rgba(219, 39, 119, 0.15) !important;
  color: #db2777 !important;
}

html.light body.body-metas-bg .bg-sky-500\/20 {
  background-color: rgba(2, 132, 199, 0.15) !important;
  color: #0284c7 !important;
}

html.light body.body-metas-bg .bg-emerald-500\/20 {
  background-color: rgba(5, 150, 105, 0.15) !important;
  color: #059669 !important;
}

html.light body.body-metas-bg .bg-orange-500\/20 {
  background-color: rgba(217, 119, 6, 0.15) !important;
  color: #d97706 !important;
}

/* Cards das Metas e Atividades Pessoais - Cores Pastel Nitidas (Claro) e Neon Sutis (Escuro) */
/* Cards das Metas e Atividades Pessoais - Cores Fortes e Vibrantes (Claro) e Neon Fortes (Escuro) */
body.body-metas-bg #goals-list > div,
body.body-metas-bg #day-activities-list .activity-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.25s ease !important;
  padding: 1.25rem !important; /* Padding aumentado para dar mais volume físico */
  margin-bottom: 0.75rem !important;
}

/* --- TEMA CLARO (LIGHT MODE) --- */
/* Roxo */
html.light body.body-metas-bg #goals-list > div.bg-purple-500\/10,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-purple-500\/10 {
  background-color: rgba(235, 215, 255, 1) !important; /* Roxo muito mais forte */
  border: 2px solid rgba(147, 51, 234, 0.6) !important; /* Borda reforçada */
}
html.light body.body-metas-bg #goals-list > div.bg-purple-500\/10:hover,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-purple-500\/10:hover {
  background-color: rgba(225, 200, 255, 1) !important;
  border-color: rgba(147, 51, 234, 0.8) !important;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.18) !important;
}

/* Rosa */
html.light body.body-metas-bg #goals-list > div.bg-pink-500\/10,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-pink-500\/10 {
  background-color: rgba(253, 220, 240, 1) !important; /* Rosa muito mais forte */
  border: 2px solid rgba(219, 39, 119, 0.6) !important;
}
html.light body.body-metas-bg #goals-list > div.bg-pink-500\/10:hover,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-pink-500\/10:hover {
  background-color: rgba(252, 200, 230, 1) !important;
  border-color: rgba(219, 39, 119, 0.8) !important;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.18) !important;
}

/* Azul */
html.light body.body-metas-bg #goals-list > div.bg-sky-500\/10,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-sky-500\/10 {
  background-color: rgba(217, 240, 255, 1) !important; /* Azul muito mais forte */
  border: 2px solid rgba(2, 132, 199, 0.6) !important;
}
html.light body.body-metas-bg #goals-list > div.bg-sky-500\/10:hover,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-sky-500\/10:hover {
  background-color: rgba(190, 230, 255, 1) !important;
  border-color: rgba(2, 132, 199, 0.8) !important;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.18) !important;
}

/* Verde */
html.light body.body-metas-bg #goals-list > div.bg-emerald-500\/10,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-emerald-500\/10 {
  background-color: rgba(209, 250, 229, 1) !important; /* Verde muito mais forte */
  border: 2px solid rgba(5, 150, 105, 0.6) !important;
}
html.light body.body-metas-bg #goals-list > div.bg-emerald-500\/10:hover,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-emerald-500\/10:hover {
  background-color: rgba(180, 245, 215, 1) !important;
  border-color: rgba(5, 150, 105, 0.8) !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.18) !important;
}

/* Laranja */
html.light body.body-metas-bg #goals-list > div.bg-orange-500\/10,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-orange-500\/10 {
  background-color: rgba(254, 230, 210, 1) !important; /* Laranja muito mais forte */
  border: 2px solid rgba(217, 119, 6, 0.6) !important;
}
html.light body.body-metas-bg #goals-list > div.bg-orange-500\/10:hover,
html.light body.body-metas-bg #day-activities-list .activity-card.bg-orange-500\/10:hover {
  background-color: rgba(253, 215, 180, 1) !important;
  border-color: rgba(217, 119, 6, 0.8) !important;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.18) !important;
}

/* --- TEMA ESCURO (DARK MODE) --- */
/* Roxo */
html.dark body.body-metas-bg #goals-list > div.bg-purple-500\/10,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-purple-500\/10 {
  background-color: rgba(147, 51, 234, 0.25) !important; /* Roxo escuro neon */
  border: 2px solid rgba(168, 85, 247, 0.75) !important;
}
html.dark body.body-metas-bg #goals-list > div.bg-purple-500\/10:hover,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-purple-500\/10:hover {
  background-color: rgba(147, 51, 234, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.95) !important;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.3) !important;
}

/* Rosa */
html.dark body.body-metas-bg #goals-list > div.bg-pink-500\/10,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-pink-500\/10 {
  background-color: rgba(219, 39, 119, 0.25) !important;
  border: 2px solid rgba(244, 63, 94, 0.75) !important;
}
html.dark body.body-metas-bg #goals-list > div.bg-pink-500\/10:hover,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-pink-500\/10:hover {
  background-color: rgba(219, 39, 119, 0.35) !important;
  border-color: rgba(244, 63, 94, 0.95) !important;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.3) !important;
}

/* Azul */
html.dark body.body-metas-bg #goals-list > div.bg-sky-500\/10,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-sky-500\/10 {
  background-color: rgba(2, 132, 199, 0.25) !important;
  border: 2px solid rgba(56, 189, 248, 0.75) !important;
}
html.dark body.body-metas-bg #goals-list > div.bg-sky-500\/10:hover,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-sky-500\/10:hover {
  background-color: rgba(2, 132, 199, 0.35) !important;
  border-color: rgba(56, 189, 248, 0.95) !important;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.3) !important;
}

/* Verde */
html.dark body.body-metas-bg #goals-list > div.bg-emerald-500\/10,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-emerald-500\/10 {
  background-color: rgba(5, 150, 105, 0.25) !important;
  border: 2px solid rgba(52, 211, 153, 0.75) !important;
}
html.dark body.body-metas-bg #goals-list > div.bg-emerald-500\/10:hover,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-emerald-500\/10:hover {
  background-color: rgba(5, 150, 105, 0.35) !important;
  border-color: rgba(52, 211, 153, 0.95) !important;
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.3) !important;
}

/* Laranja */
html.dark body.body-metas-bg #goals-list > div.bg-orange-500\/10,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-orange-500\/10 {
  background-color: rgba(217, 119, 6, 0.25) !important;
  border: 2px solid rgba(251, 146, 60, 0.75) !important;
}
html.dark body.body-metas-bg #goals-list > div.bg-orange-500\/10:hover,
html.dark body.body-metas-bg #day-activities-list .activity-card.bg-orange-500\/10:hover {
  background-color: rgba(217, 119, 6, 0.35) !important;
  border-color: rgba(251, 146, 60, 0.95) !important;
  box-shadow: 0 10px 28px rgba(251, 146, 60, 0.3) !important;
}

/* --- LEGENDA E CONTRASTE DOS TEXTOS DOS CARDS --- */
/* Tema Claro - Textos Escuros e Nítidos */
html.light body.body-metas-bg #goals-list h4,
html.light body.body-metas-bg #day-activities-list h4 {
  color: #1e1b4b !important;
}
html.light body.body-metas-bg #goals-list p,
html.light body.body-metas-bg #day-activities-list p {
  color: #475569 !important;
}

/* Tema Escuro - Textos Claros e Nítidos */
html.dark body.body-metas-bg #goals-list h4,
html.dark body.body-metas-bg #day-activities-list h4 {
  color: #ffffff !important;
}
html.dark body.body-metas-bg #goals-list p,
html.dark body.body-metas-bg #day-activities-list p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Checkboxes inativos e ativos nos cards */
/* Tema Claro */
html.light body.body-metas-bg .goal-toggle,
html.light body.body-metas-bg .activity-toggle {
  border-color: rgba(30, 27, 75, 0.35) !important;
  color: #1e1b4b !important;
}
html.light body.body-metas-bg .goal-toggle.bg-white,
html.light body.body-metas-bg .activity-toggle.bg-white {
  background-color: #6d28d9 !important;
  border-color: #6d28d9 !important;
  color: #ffffff !important;
}

/* Tema Escuro */
html.dark body.body-metas-bg .goal-toggle,
html.dark body.body-metas-bg .activity-toggle {
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}
html.dark body.body-metas-bg .goal-toggle.bg-white,
html.dark body.body-metas-bg .activity-toggle.bg-white {
  background-color: #a78bfa !important;
  border-color: #a78bfa !important;
  color: #0f0d1e !important;
}

/* Botões de Excluir (Lixeiras) */
html.light body.body-metas-bg .goal-delete-btn,
html.light body.body-metas-bg .activity-delete-btn {
  color: rgba(30, 27, 75, 0.4) !important;
}
html.light body.body-metas-bg .goal-delete-btn:hover,
html.light body.body-metas-bg .activity-delete-btn:hover {
  color: #ef4444 !important;
}

html.dark body.body-metas-bg .goal-delete-btn,
html.dark body.body-metas-bg .activity-delete-btn {
  color: rgba(255, 255, 255, 0.4) !important;
}
html.dark body.body-metas-bg .goal-delete-btn:hover,
html.dark body.body-metas-bg .activity-delete-btn:hover {
  color: #fca5a5 !important;
}

/* ==================== SISTEMA DE DECKS DE FLASHCARDS ==================== */
/* Cards de Baralhos (Decks) */
.deck-card {
  position: relative;
  background: var(--deck-gradient, linear-gradient(135deg, #5B21B6 0%, #7C3AED 60%, #6D28D9 100%)) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 380px !important; /* Aumenta a altura vertical */
  box-shadow: 
    0 8px 32px rgba(91,33,182,0.45),
    inset 0 0 24px rgba(255, 255, 255, 0.1) !important;
}

html.dark .deck-card {
  background: var(--deck-gradient, linear-gradient(135deg, #5B21B6 0%, #7C3AED 60%, #6D28D9 100%)) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 32px rgba(91, 33, 182, 0.45) !important;
}

.deck-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 40px rgba(91,33,182,0.35),
    0 8px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Indicador de Assinatura Cromática no topo do Deck */
.deck-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--deck-gradient, linear-gradient(135deg, #5B21B6 0%, #7C3AED 60%, #6D28D9 100%));
}

/* Cores e Gradientes dos Decks */
.deck-grad-orange-rose { --deck-gradient: linear-gradient(135deg, #f97316 0%, #f43f5e 100%); }
.deck-grad-blue-cyan { --deck-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%); }
.deck-grad-indigo-purple { --deck-gradient: linear-gradient(135deg, #5B21B6 0%, #7C3AED 60%, #6D28D9 100%); }
.deck-grad-emerald-teal { --deck-gradient: linear-gradient(135deg, #10b981 0%, #0d9488 100%); }
.deck-grad-violet-fuchsia { --deck-gradient: linear-gradient(135deg, #5B21B6 0%, #7C3AED 60%, #6D28D9 100%); }
.deck-grad-amber-orange { --deck-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.deck-grad-pink-red { --deck-gradient: linear-gradient(135deg, #ec4899 0%, #ef4444 100%); }
.deck-grad-slate-violet { --deck-gradient: linear-gradient(135deg, #475569 0%, #5b21b6 100%); }

/* Ícone de Deck circular */
.deck-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Seletor de Ícones no Editor */
.deck-icon-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.deck-icon-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: scale(1.05);
}

.deck-icon-item.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(107, 92, 231, 0.45);
}

/* Seletor de Cores no Editor */
.deck-color-item {
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.deck-color-item:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.deck-color-item.active {
  transform: scale(1.05);
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Card item na lista do Editor (card "papel" branco com contornos evidentes) */
.editor-card-item {
  display: block;
  background: #ffffff;
  border: 1.5px solid #E2E8F0; /* slate-200 — borda visivel e definida */
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.editor-card-item:hover {
  background: #ffffff;
  border-color: #C7D2FE; /* indigo-200 — realce sutil no hover */
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

/* Custom Scrollbar para listas */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* LaTeX format styles */
.katex {
  font-size: 1.1em;
}

/* Densidade da Interface Customizada */
body.density-compact .setting-panel {
  padding: 1.5rem !important;
  gap: 1rem !important;
}
body.density-compact input, 
body.density-compact select,
body.density-compact button:not(.setting-tab) {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
body.density-comfortable .setting-panel {
  padding: 3rem !important;
  gap: 2.5rem !important;
}
body.density-comfortable input, 
body.density-comfortable button:not(.setting-tab) {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* ==================== ESTILIZAÇÃO PREMIUM DE MARKDOWN E CÓDIGO NO CHAT ==================== */
.code-block-wrapper {
  background: #181628 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  margin: 14px 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  font-family: inherit !important;
  text-align: left !important;
}

.code-block-header {
  background: #110f1d !important;
  padding: 10px 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}

.code-block-wrapper pre {
  margin: 0 !important;
  padding: 16px !important;
  overflow-x: auto !important;
  background: transparent !important;
}

.code-block-wrapper code {
  font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace !important;
  font-size: 13.5px !important;
  color: #e2e8f0 !important;
  background: transparent !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  display: block !important;
  white-space: pre !important;
}

.code-inline {
  background: rgba(168, 85, 247, 0.15) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  font-family: Consolas, Monaco, monospace !important;
  font-size: 0.9em !important;
  color: #f472b6 !important;
}

.chat-h1, .chat-h2, .chat-h3 {
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 16px 0 8px 0 !important;
  font-family: 'Space Grotesk', sans-serif !important;
}
.chat-h1 { font-size: 1.5rem !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; padding-bottom: 6px !important; }
.chat-h2 { font-size: 1.3rem !important; }
.chat-h3 { font-size: 1.15rem !important; }

#section-lila .chat-messages-container ul {
  list-style-type: disc !important;
  margin-left: 24px !important;
  margin-bottom: 14px !important;
  padding-left: 0 !important;
}

#section-lila .chat-messages-container li {
  margin-bottom: 6px !important;
  line-height: 1.5 !important;
}

/* ==================== SUPORTE ADAPTADO AO LIGHT MODE (html.light) ==================== */
html.light #section-lila .chat-messages-container > div:not(.justify-end) > div:not(.avatar-lila) {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
  color: #1e293b !important;
}

html.light .user-msg-card {
  background: rgba(147, 51, 234, 0.08) !important;
  border: 1px solid rgba(147, 51, 234, 0.25) !important;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.05) !important;
  color: #581c87 !important;
}

html.light .lila-input-box-container {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.06),
    0 5px 15px rgba(0, 0, 0, 0.04) !important;
}

html.light .lila-input-box-container:focus-within {
  border-color: rgba(147, 51, 234, 0.4) !important;
  box-shadow: 
    0 0 20px rgba(147, 51, 234, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

html.light .lila-input-box-container textarea#chat-input {
  color: #0f172a !important;
}

html.light .lila-input-box-container textarea#chat-input::placeholder {
  color: rgba(15, 23, 42, 0.4) !important;
}

html.light .lila-input-box-container button:not(#btn-send) {
  color: rgba(15, 23, 42, 0.5) !important;
}

html.light .lila-input-box-container button:not(#btn-send):hover {
  color: #7c3aed !important;
}

html.light .code-block-wrapper {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

html.light .code-block-header {
  background: #f1f5f9 !important;
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
  color: #64748b !important;
}

html.light .copy-code-btn {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

html.light .copy-code-btn:hover {
  background: rgba(147, 51, 234, 0.08) !important;
  color: #7c3aed !important;
  border-color: rgba(147, 51, 234, 0.25) !important;
}

html.light .code-block-wrapper code {
  color: #334155 !important;
}

html.light .code-inline {
  background: rgba(147, 51, 234, 0.08) !important;
  border-color: rgba(147, 51, 234, 0.15) !important;
  color: #7c3aed !important;
}

html.light .chat-h1, html.light .chat-h2, html.light .chat-h3 {
  color: #0f172a !important;
}

html.light .chat-h1 {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html.light #section-lila .chip-btn {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

html.light #section-lila .chip-btn:hover {
  background: rgba(147, 51, 234, 0.05) !important;
  border-color: rgba(147, 51, 234, 0.3) !important;
  color: #7c3aed !important;
  box-shadow: 0 6px 14px rgba(147, 51, 234, 0.12) !important;
}

/* ==================== ESTILOS PARA MODELOS DE COMPARTILHAMENTO DE DESEMPENHO ==================== */

/* Modelo 1 - Rose Glassmorphism (Variações de Cor) */
.model1-rose {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.45) 0%, rgba(255, 228, 225, 0.3) 50%, rgba(253, 244, 245, 0.2) 100%) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.75) !important;
}
.model1-aurora {
  background: linear-gradient(135deg, rgba(165, 243, 252, 0.45) 0%, rgba(196, 181, 253, 0.3) 50%, rgba(224, 242, 254, 0.2) 100%) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.75) !important;
}
.model1-sunset {
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.45) 0%, rgba(253, 164, 175, 0.3) 50%, rgba(254, 243, 199, 0.2) 100%) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.75) !important;
}

/* Modelo 2 - Spotify Wrapped Dark (Variações de Cor) */
.model2-purple {
  background: #0f0f14 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.08) !important;
}
.model2-green {
  background: #09090b !important;
  border: 1.5px solid rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.08) !important;
}
.model2-orange {
  background: #0c0a09 !important;
  border: 1.5px solid rgba(249, 115, 22, 0.2) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(249, 115, 22, 0.08) !important;
}

/* Esferas Volumétricas do Wrapped */
.wrapped-bubble {
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset -6px -6px 18px rgba(0, 0, 0, 0.6), inset 6px 6px 18px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.wrapped-bubble.glow-active {
  animation: bubble-glow-pulse 3s infinite alternate ease-in-out;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

@keyframes bubble-glow-pulse {
  0% {
    box-shadow: inset -6px -6px 18px rgba(0, 0, 0, 0.6), inset 6px 6px 18px rgba(255, 255, 255, 0.1), 0 0 15px rgba(139, 92, 246, 0.15);
  }
  100% {
    box-shadow: inset -6px -6px 18px rgba(0, 0, 0, 0.6), inset 6px 6px 18px rgba(255, 255, 255, 0.2), 0 0 35px rgba(139, 92, 246, 0.45);
  }
}

/* Hover Suave e Brilho para o Card de Desempenho de Hoje */
#btn-pomo-desempenho-dash {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#btn-pomo-desempenho-dash:hover {
  transform: translateY(-4px) scale(1.008) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.35) 0%, rgba(255, 228, 225, 0.22) 100%) !important;
  box-shadow: 
    0 16px 36px rgba(244, 63, 94, 0.1),
    inset 0 0 25px rgba(255, 255, 255, 0.65) !important;
}

/* ==================== ESTILOS DO PLANEJADOR DIÁRIO (SRS) ==================== */

/* Botão principal de abertura (Liquid Glass Emerald/Teal adaptado para Liquid Glass Premium) */
.btn-planejador-diario {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  padding: 14px 24px;
  border-radius: 1.25rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.25);
}

.btn-planejador-diario:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.75) !important;
  background: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 
    0 18px 35px rgba(0, 0, 0, 0.22),
    inset 0 0 25px rgba(255, 255, 255, 0.45);
}

.btn-planejador-diario:active {
  transform: translateY(0) scale(0.98);
}

.btn-planejador-icon {
  font-size: 1.25rem;
}

.btn-planejador-texto {
  letter-spacing: -0.01em;
}

.btn-planejador-seta {
  transition: transform 0.3s ease;
}

.btn-planejador-diario:hover .btn-planejador-seta {
  transform: translateX(4px);
}

/* Estado ativo/concluído do botão principal (Liquid Glass Green/Emerald) */
.btn-planejador-diario.concluido {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
  box-shadow: 
    0 12px 30px rgba(16, 185, 129, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.25) !important;
}

.btn-planejador-diario.concluido:hover {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: rgba(16, 185, 129, 0.75) !important;
}

/* Modal Overlay com desfoque e escurecimento decorativo (Liquid Glass Blobs) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.65);
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(20, 184, 166, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-overlay.hidden {
  display: none !important;
}


/* Container do Modal (Liquid Glass Premium - Apple Design WWDC 25) */
.modal-planejador-container {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 27, 75, 0.82) 100%) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 2.25rem !important;
  padding: 28px !important;
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 25px rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Efeito decorativo interno do modal */
.modal-planejador-container::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.modal-planejador-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
}

#modal-planejador-titulo {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.5rem !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.modal-secao-titulo {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.btn-fechar-glass {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fechar-glass:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

.modal-etapa {
  position: relative;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Transições das etapas */
.modal-etapa.hidden {
  display: none !important;
}

.modal-etapa.ativa {
  display: block;
  animation: slideInStage 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Inputs no padrão Liquid Glass (vidro denso, blur menor) */
.input-liquid-glass {
  background: rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

html.dark .input-liquid-glass {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.input-liquid-glass::placeholder {
  color: rgba(15, 23, 42, 0.45) !important;
}

html.dark .input-liquid-glass::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.input-liquid-glass:focus {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 12px rgba(107, 92, 231, 0.15) !important;
}

html.dark .input-liquid-glass:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 
    0 0 12px rgba(255, 255, 255, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Seletores de Tempo e Prioridade */
.seletor-tempo-wrapper label,
.seletor-prioridade-wrapper label {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.05em !important;
}
html.dark .seletor-tempo-wrapper label,
html.dark .seletor-prioridade-wrapper label {
  color: rgba(255, 255, 255, 0.85) !important;
}

.btn-tempo, .btn-prioridade {
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
  font-weight: 700 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
html.dark .btn-tempo,
html.dark .btn-prioridade {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.btn-tempo:hover, .btn-prioridade:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  transform: translateY(-1.5px);
}
html.dark .btn-tempo:hover,
html.dark .btn-prioridade:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-tempo.ativa {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 24px rgba(107, 92, 231, 0.25) !important;
  transform: translateY(-1px) !important;
}
html.dark .btn-tempo.ativa {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22) !important;
}

.btn-prioridade.ativa[data-nivel="1"] {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #059669 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15) !important;
}
html.dark .btn-prioridade.ativa[data-nivel="1"] {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.85) !important;
  color: #34d399 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

.btn-prioridade.ativa[data-nivel="2"] {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #f59e0b !important;
  color: #d97706 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15) !important;
}
html.dark .btn-prioridade.ativa[data-nivel="2"] {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.85) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

.btn-prioridade.ativa[data-nivel="3"] {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15) !important;
}
html.dark .btn-prioridade.ativa[data-nivel="3"] {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.85) !important;
  color: #f87171 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

/* Botão Adicionar Matéria (Vidro com borda brilhante) */
.btn-adicionar {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

.btn-adicionar:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-adicionar:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Sugestões de Matérias (Autocomplete) */
.dropdown-sugestoes {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  scrollbar-width: thin;
}

.dropdown-sugestoes::-webkit-scrollbar {
  width: 4px;
}

.dropdown-sugestoes::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sugestao-item {
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sugestao-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Itens da lista de matérias adicionadas */
.materia-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 1.25rem !important;
  transition: all 0.25s ease !important;
}

.materia-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px);
}

.materia-item span {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.btn-remover-materia {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.btn-remover-materia:hover {
  color: #ef4444;
  transform: scale(1.15);
}

/* Resumo do tempo total */
.resumo-tempo {
  background: rgba(20, 184, 166, 0.12) !important;
  border: 1.5px solid rgba(20, 184, 166, 0.4) !important;
  border-radius: 1.25rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}

#tempo-total-display {
  color: #2dd4bf !important;
}

/* Cronograma e blocos de estudo */
.cronograma-item {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1.5rem !important;
  padding: 16px !important;
  transition: all 0.3s;
}

.cronograma-item:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Blocos de Estudo/Descanso */
.blocos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.bloco-estudo, .bloco-descanso {
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bloco-estudo {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #2dd4bf;
}

.bloco-descanso {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Seção de Revisões Agendadas */
.revisao-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.tag-revisao {
  padding: 2.5px 10px;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tag-revisao-r1 { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.45); }
.tag-revisao-r2 { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.45); }
.tag-revisao-r3 { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.45); }
.tag-revisao-rn { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.45); }

/* Seção de Revisões Agendadas Card Container */
.proximas-revisoes-section {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 1.5rem !important;
}

/* Botões Sólidos (CTA - Teal/Green Vibrante) */
.btn-primario, #btn-avancar-cronograma, #btn-salvar-plano, #btn-fechar-confirmacao {
  background: linear-gradient(135deg, #14b8a6 0%, #059669 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: 
    0 10px 25px rgba(20, 184, 166, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.btn-primario:hover:not(:disabled),
#btn-avancar-cronograma:hover:not(:disabled),
#btn-salvar-plano:hover:not(:disabled),
#btn-fechar-confirmacao:hover {
  transform: translateY(-3px) scale(1.01) !important;
  background: linear-gradient(135deg, #2dd4bf 0%, #059669 100%) !important;
  box-shadow: 
    0 15px 30px rgba(20, 184, 166, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.btn-primario:disabled,
#btn-avancar-cronograma:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25) 0%, rgba(5, 150, 105, 0.25) 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Animações Auxiliares */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInStage {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbars para o modal */
.lista-materias-container::-webkit-scrollbar,
#cronograma-hoje-container::-webkit-scrollbar {
  width: 5px;
}

.lista-materias-container::-webkit-scrollbar-thumb,
#cronograma-hoje-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.lista-materias-container::-webkit-scrollbar-thumb:hover,
#cronograma-hoje-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Modal de Alarme Pomodoro Liquid Glass */
#pomo-alarm-modal {
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
}

#pomo-alarm-modal > div {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    inset 0 8px 32px 0 rgba(255, 255, 255, 0.45),
    0 30px 80px rgba(0, 0, 0, 0.12) !important;
  border-radius: 3rem !important;
}

html.dark #pomo-alarm-modal > div {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.55) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    inset 0 8px 32px 0 rgba(255, 255, 255, 0.08),
    0 30px 85px rgba(0, 0, 0, 0.55) !important;
}

/* Correção de Contraste e Profundidade para inputs de Flashcards e formulários do painel */
.liquid-glass-tool input:not([type="button"]):not([type="submit"]):not(#deck-ia-prompt),
.liquid-glass-tool select,
.liquid-glass-tool textarea,
#deck-name-input,
#deck-category-select,
#deck-manual-front,
#deck-manual-back,
#deck-search-input {
  color: #0f172a !important; /* Cor escura slate-900 para excelente contraste */
  background: rgba(255, 255, 255, 0.75) !important; /* Vidro claro denso e legível */
  border: 1.5px solid rgba(99, 102, 241, 0.35) !important; /* Borda levemente destacada em roxo */
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.08), /* Profundidade de cava */
    0 4px 12px -2px rgba(99, 102, 241, 0.08), /* Sombra externa suave */
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Foco nos inputs no tema claro */
.liquid-glass-tool input:not([type="button"]):not([type="submit"]):not(#deck-ia-prompt):focus,
.liquid-glass-tool select:focus,
.liquid-glass-tool textarea:focus,
#deck-name-input:focus,
#deck-category-select:focus,
#deck-manual-front:focus,
#deck-manual-back:focus,
#deck-search-input:focus {
  background: #ffffff !important;
  border-color: #6366f1 !important; /* Borda roxo forte */
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    0 0 16px rgba(99, 102, 241, 0.28), /* Glow de foco */
    0 8px 24px -6px rgba(99, 102, 241, 0.18) !important;
}

.liquid-glass-tool input:not([type="button"]):not([type="submit"]):not(#deck-ia-prompt)::placeholder,
.liquid-glass-tool textarea::placeholder,
#deck-name-input::placeholder,
#deck-manual-front::placeholder,
#deck-manual-back::placeholder,
#deck-search-input::placeholder {
  color: rgba(15, 23, 42, 0.5) !important; /* Placeholder cinza escuro no tema claro */
}

/* No tema escuro, forçar a cor branca, fundo escuro e profundidade acentuada */
html.dark .liquid-glass-tool input:not([type="button"]):not([type="submit"]):not(#deck-ia-prompt),
html.dark .liquid-glass-tool select,
html.dark .liquid-glass-tool textarea,
html.dark #deck-name-input,
html.dark #deck-category-select,
html.dark #deck-manual-front,
html.dark #deck-manual-back,
html.dark #deck-search-input {
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.6) !important; /* Fundo escuro de vidro */
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.45), /* Profundidade escura de cava */
    0 4px 18px rgba(0, 0, 0, 0.3), /* Sombra externa em modo escuro */
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Foco nos inputs no tema escuro */
html.dark .liquid-glass-tool input:not([type="button"]):not([type="submit"]):not(#deck-ia-prompt):focus,
html.dark .liquid-glass-tool select:focus,
html.dark .liquid-glass-tool textarea:focus,
html.dark #deck-name-input:focus,
html.dark #deck-category-select:focus,
html.dark #deck-manual-front:focus,
html.dark #deck-manual-back:focus,
html.dark #deck-search-input:focus {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(165, 180, 252, 0.45) !important; /* Borda roxo brilhante */
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(99, 102, 241, 0.4), /* Brilho neon de foco */
    0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html.dark .liquid-glass-tool input:not([type="button"]):not([type="submit"]):not(#deck-ia-prompt)::placeholder,
html.dark .liquid-glass-tool textarea::placeholder,
html.dark #deck-name-input::placeholder,
html.dark #deck-manual-front::placeholder,
html.dark #deck-manual-back::placeholder,
html.dark #deck-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Opções do select de Categoria */
.liquid-glass-tool select option,
#deck-category-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html.dark .liquid-glass-tool select option,
html.dark #deck-category-select option {
  background-color: #0f172a !important; /* bg-slate-900 */
  color: #ffffff !important;
}

/* Card Gênis IA Integrado Escuro e com Alto Contraste */
#deck-ia-panel {
  background: linear-gradient(135deg, #19143a 0%, #290838 50%, #0c0226 100%) !important; /* Roxo/Indigo escuro opaco e profundo */
  border: 1.5px solid rgba(139, 92, 246, 0.45) !important; /* Borda violeta mais visível */
  box-shadow: 
    0 20px 40px -10px rgba(99, 102, 241, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

#deck-ia-panel h3 {
  color: #ffffff !important; /* Título em branco de alto contraste */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#deck-ia-panel p {
  color: #c7d2fe !important; /* Texto de suporte em azul/indigo claro e legível */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Adaptar o input de prompt da IA */
#deck-ia-prompt {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important; /* Texto digitado em branco para contraste com o fundo escuro do input */
}

#deck-ia-prompt::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

#deck-ia-prompt:focus {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3) !important;
}

/* Adaptar o botão de gerar */
#btn-generate-ia-deck {
  background: #ffffff !important;
  color: #19143a !important; /* Roxo escuro */
}

/* ============================================================
   POMO FOCUS & SPACED REPETITION GLOW GLASS ALERTS
   ============================================================ */

/* Transição suave do body para o modo Foco do Pomodoro */
body {
  transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), background-image 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

body.body-pomo-focus {
  background-color: #0c1324 !important;
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%) !important;
}

/* Alterar cores das orbes decorativas de fundo para azul escuro no modo Foco */
body.body-pomo-focus .orb {
  background-color: rgba(59, 130, 246, 0.1) !important;
  filter: blur(120px) !important;
}

/* Alerta de Revisão Espaçada Pendente - Glow Glass */
#spaced-repetition-dashboard-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(220, 38, 38, 0.08) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 3px double rgba(239, 68, 68, 0.6) !important;
  box-shadow: 
    0 15px 35px rgba(239, 68, 68, 0.22),
    0 0 20px rgba(239, 68, 68, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#spaced-repetition-dashboard-alert:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: rgba(239, 68, 68, 0.8) !important;
  box-shadow: 
    0 20px 45px rgba(239, 68, 68, 0.35),
    0 0 30px rgba(239, 68, 68, 0.25),
    inset 0 0 22px rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

html.dark #spaced-repetition-dashboard-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(220, 38, 38, 0.12) 100%) !important;
  border: 3px double rgba(239, 68, 68, 0.75) !important;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(239, 68, 68, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
}

/* Classes estáticas de cores para nós do Mapa Mental */
.node-color-sky {
  background-color: rgba(14, 165, 233, 0.8) !important;
  border-color: rgba(14, 165, 233, 0.95) !important;
  color: #ffffff !important;
}
.node-color-sky:hover {
  background-color: rgba(14, 165, 233, 0.9) !important;
}
.node-color-sky.selected {
  border-color: #ffffff !important;
  background-color: rgba(14, 165, 233, 1.0) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.6) !important;
}

.node-color-purple {
  background-color: rgba(99, 102, 241, 0.8) !important;
  border-color: rgba(99, 102, 241, 0.95) !important;
  color: #ffffff !important;
}
.node-color-purple:hover {
  background-color: rgba(99, 102, 241, 0.9) !important;
}
.node-color-purple.selected {
  border-color: #ffffff !important;
  background-color: rgba(99, 102, 241, 1.0) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6) !important;
}

.node-color-emerald {
  background-color: rgba(16, 185, 129, 0.8) !important;
  border-color: rgba(16, 185, 129, 0.95) !important;
  color: #ffffff !important;
}
.node-color-emerald:hover {
  background-color: rgba(16, 185, 129, 0.9) !important;
}
.node-color-emerald.selected {
  border-color: #ffffff !important;
  background-color: rgba(16, 185, 129, 1.0) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
}

.node-color-rose {
  background-color: rgba(244, 63, 94, 0.8) !important;
  border-color: rgba(244, 63, 94, 0.95) !important;
  color: #ffffff !important;
}
.node-color-rose:hover {
  background-color: rgba(244, 63, 94, 0.9) !important;
}
.node-color-rose.selected {
  border-color: #ffffff !important;
  background-color: rgba(244, 63, 94, 1.0) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.6) !important;
}

.node-color-amber {
  background-color: rgba(245, 158, 11, 0.8) !important;
  border-color: rgba(245, 158, 11, 0.95) !important;
  color: #ffffff !important;
}
.node-color-amber:hover {
  background-color: rgba(245, 158, 11, 0.9) !important;
}
.node-color-amber.selected {
  border-color: #ffffff !important;
  background-color: rgba(245, 158, 11, 1.0) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6) !important;
}

.node-color-red {
  background-color: rgba(239, 68, 68, 0.8) !important;
  border-color: rgba(239, 68, 68, 0.95) !important;
  color: #ffffff !important;
}
.node-color-red:hover {
  background-color: rgba(239, 68, 68, 0.9) !important;
}
.node-color-red.selected {
  border-color: #ffffff !important;
  background-color: rgba(239, 68, 68, 1.0) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
}

/* --- Liquid Glass Modal Premium --- */
.liquid-glass-modal {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-top-color: rgba(255, 255, 255, 0.75) !important;
  border-left-color: rgba(255, 255, 255, 0.6) !important;
  border-radius: 2.25rem !important;
  box-shadow: 
    0 4px 24px -1px rgba(0, 0, 0, 0.04),
    0 25px 50px -12px rgba(0, 0, 0, 0.1),
    0 40px 80px -15px rgba(107, 92, 231, 0.08),
    inset 0 0 20px rgba(255, 255, 255, 0.45) !important;
}

html.dark .liquid-glass-modal {
  background: rgba(15, 23, 42, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  border-left-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 4px 24px -1px rgba(0, 0, 0, 0.2),
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 40px 80px -15px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.06) !important;
}

/* Animações dos Modais */
@keyframes modalOverlayIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes modalOverlayOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.95);
    opacity: 0;
  }
}

.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Classe de animação de entrada */
.modal-overlay:not(.hidden) .modal-planejador-container,
#modal-event-editor:not(.hidden) > div,
#modal-metas-hub:not(.hidden) > div,
#modal-calendar-hub:not(.hidden) > div {
  animation: modalOverlayIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* Classe de fechamento */
.modal-overlay.closing .modal-planejador-container,
#modal-event-editor.closing > div,
#modal-metas-hub.closing > div,
#modal-calendar-hub.closing > div {
  animation: modalOverlayOut 0.28s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

.modal-overlay.closing,
#modal-event-editor.closing,
#modal-metas-hub.closing,
#modal-calendar-hub.closing {
  opacity: 0 !important;
  transition: opacity 0.28s ease !important;
  pointer-events: none !important;
}

/* --- Cores Ativas das Configurações --- */
.setting-tab {
  color: #64748b;
  transition: color 0.2s ease !important;
}
html.dark .setting-tab {
  color: #94a3b8;
}
.setting-tab.active {
  color: #0284c7 !important;
}
html.dark .setting-tab.active {
  color: #38bdf8 !important;
}

/* Estilos para os Tipos de Nós Semânticos (Fase 1) */
.node-type-conceito_central {
  font-weight: 800 !important;
  border-width: 2.5px !important;
  border-style: solid !important;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.45) !important;
}

.node-type-definicao {
  border-style: solid !important;
  border-width: 1.5px !important;
  border-color: rgba(14, 165, 233, 0.7) !important;
}

.node-type-exemplo {
  font-style: italic !important;
  border-style: dashed !important;
  border-width: 1px !important;
  opacity: 0.9;
}

.node-type-formula {
  font-family: monospace !important;
  font-size: 10px !important;
  letter-spacing: -0.2px !important;
}

.node-type-atencao {
  border-style: double !important;
  border-width: 3px !important;
  animation: pulse-border 2s infinite !important;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.9); box-shadow: 0 0 5px rgba(239, 68, 68, 0.4); }
  50% { border-color: rgba(239, 68, 68, 0.3); box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }
}

/* Badges flutuantes nos nós */
.node-doubt-badge, .node-flashcard-badge {
  pointer-events: none !important;
  z-index: 20 !important;
}

.node-btn {
  overflow: visible !important; /* Permitir exibição dos badges absolutos fora do botão */
}

/* Efeito de contorno animado de formigas (Ant Trail) */
.node-ant-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.ant-trail-rect {
  stroke: var(--node-theme-color, #ffffff) !important;
  stroke-width: 2px;
  stroke-dasharray: 6, 4;
  animation: node-ant-trail 0.8s linear infinite;
}

@keyframes node-ant-trail {
  from {
    stroke-dashoffset: 10;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Customização Avançada de Tópicos - Schooli Premium */
/* Fontes */
.font-node-sans {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.font-node-serif {
  font-family: 'Instrument Serif', serif !important;
}
.font-node-mono {
  font-family: 'Space Grotesk', monospace !important;
}
.font-node-display {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-style: italic !important;
}

/* Tamanhos */
.size-node-small {
  font-size: 10px !important;
  padding: 4px 8px !important;
}
.size-node-medium {
  font-size: 11px !important;
  padding: 6px 12px !important;
}
.size-node-large {
  font-size: 13px !important;
  padding: 8px 16px !important;
  font-weight: 800 !important;
}

/* Contornos */
.border-node-solid {
  border-style: solid !important;
  border-width: 1.5px !important;
}
.border-node-dashed {
  border-style: dashed !important;
  border-width: 1.5px !important;
}
.border-node-double {
  border-style: double !important;
  border-width: 3.5px !important;
}
.border-node-none {
  border-style: none !important;
  border-width: 0 !important;
}

/* Estilos Visuais */
.style-node-standard {
  opacity: 1; /* Mantém a opacidade e sombreamento normais */
}
.style-node-glow {
  box-shadow: 0 0 15px var(--node-theme-color, rgba(99, 102, 241, 0.4)) !important;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5) !important;
}
.style-node-glass {
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.style-node-minimal {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
}

/* Correção de Overflow para Mapas Infinitos */
#mindmap-svg {
  overflow: visible !important;
}
#mindmap-canvas {
  overflow: visible !important;
}

/* ============================================================
   MAPA MENTAL — MENU DE CRIAÇÃO, IMAGEM, DESENHO E RESIZE
   ============================================================ */

/* --- Menu Contextual de Criação de Nó --- */
.node-creation-menu {
  position: absolute;
  z-index: 200;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 15px rgba(99, 102, 241, 0.15);
  min-width: 180px;
  animation: menuPopIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: top left;
}

@keyframes menuPopIn {
  from { opacity: 0; transform: scale(0.85) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.node-creation-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
}

.node-creation-menu .menu-item:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
}

.node-creation-menu .menu-item .menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.node-creation-menu .menu-item .menu-icon.text-icon {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}
.node-creation-menu .menu-item .menu-icon.image-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.node-creation-menu .menu-item .menu-icon.draw-icon {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

.node-creation-menu .menu-item .menu-label {
  display: flex;
  flex-direction: column;
}
.node-creation-menu .menu-item .menu-label small {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}

/* --- Modal de Recorte de Imagem --- */
.modal-image-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.modal-image-crop-container {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.image-crop-header h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.image-crop-canvas-area {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  padding: 24px;
  overflow: hidden;
  min-height: 300px;
  max-height: 55vh;
}

.image-crop-canvas-area canvas {
  max-width: 100%;
  max-height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  cursor: crosshair;
}

.image-crop-dimensions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.image-crop-dimensions label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.image-crop-dimensions input[type="range"] {
  flex: 1;
  accent-color: #6366f1;
  height: 4px;
}

.image-crop-dimensions .dim-value {
  color: #818cf8;
  font-size: 11px;
  font-weight: 800;
  min-width: 50px;
  text-align: right;
}

.image-crop-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Modal de Desenho Livre --- */
.modal-drawing-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}

.modal-drawing-container {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  width: 92%;
  max-width: 900px;
  height: 80vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.drawing-header h3 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.drawing-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.drawing-toolbar .tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.drawing-toolbar .tool-group:last-child {
  border-right: none;
}

.drawing-toolbar .draw-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.drawing-toolbar .draw-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.drawing-toolbar .draw-tool-btn.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #818cf8;
}

.drawing-toolbar input[type="range"] {
  width: 80px;
  accent-color: #6366f1;
  height: 3px;
}

.drawing-toolbar input[type="color"] {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}
.drawing-toolbar input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.drawing-toolbar input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.drawing-toolbar .stroke-preview {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.drawing-canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  padding: 16px;
  overflow: hidden;
}

.drawing-canvas-area canvas {
  background: #ffffff;
  border-radius: 8px;
  cursor: crosshair;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  touch-action: none;
}

.drawing-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* --- Text Tool Overlay para o Drawing --- */
.drawing-text-overlay {
  position: absolute;
  z-index: 10;
  background: transparent;
  border: 2px dashed rgba(99, 102, 241, 0.6);
  border-radius: 4px;
  padding: 4px 8px;
  color: #000000;
  font-size: 16px;
  outline: none;
  min-width: 60px;
  min-height: 24px;
  cursor: text;
}

/* --- Nós tipo imagem/desenho no Canvas --- */
.node-btn.node-image-type,
.node-btn.node-drawing-type {
  padding: 4px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.node-btn.node-image-type img,
.node-btn.node-drawing-type img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
}

/* --- Handles de Redimensionamento --- */
.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #6366f1;
  border: 2px solid #ffffff;
  border-radius: 50%;
  z-index: 150;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: all;
}
.resize-handle:hover {
  transform: scale(1.3);
  background: #818cf8;
}
.resize-handle.dragging {
  transform: scale(1.5);
  background: #a5b4fc;
}
.resize-handle.handle-tl { cursor: nw-resize; }
.resize-handle.handle-t  { cursor: n-resize; }
.resize-handle.handle-tr { cursor: ne-resize; }
.resize-handle.handle-r  { cursor: e-resize; }
.resize-handle.handle-br { cursor: se-resize; }
.resize-handle.handle-b  { cursor: s-resize; }
.resize-handle.handle-bl { cursor: sw-resize; }
.resize-handle.handle-l  { cursor: w-resize; }

/* Contorno de seleção para resize */
.resize-outline {
  position: absolute;
  border: 1.5px dashed rgba(99, 102, 241, 0.7);
  border-radius: 12px;
  z-index: 140;
  pointer-events: none;
}

/* Botão de Redimensionar na Paleta */
.btn-resize-element {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-resize-element:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}
.btn-resize-element.active {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.6);
  color: #a5b4fc;
}

/* Botões de ação genéricos dos modais escuros */
.modal-btn-cancel {
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-btn-primary {
  padding: 8px 22px;
  border-radius: 10px;
  background: #6366f1;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.modal-btn-primary:hover {
  background: #818cf8;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.modal-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Animação Premium para o Logotipo de Imagem da Lila AI (Transparente) */
@keyframes lilaLogoPulseAndSpin {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.2));
  }
  50% {
    transform: rotate(180deg) scale(1.06);
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.45)) drop-shadow(0 0 4px rgba(99, 102, 241, 0.25));
  }
  100% {
    transform: rotate(360deg) scale(1);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.2));
  }
}

img.lila-logo-animated {
  display: inline-block;
  vertical-align: middle;
  animation: lilaLogoPulseAndSpin 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
  transition: filter 0.4s ease, transform 0.4s ease;
  will-change: transform, filter;
}

img.lila-logo-animated:hover {
  animation-play-state: paused !important;
  transform: scale(1.15) rotate(15deg) !important;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.65)) drop-shadow(0 0 8px rgba(99, 102, 241, 0.4)) !important;
}

/* ============================================================
   MELHORIAS DE FLASHCARDS (TELA DE NOVO BARALHO)
   ============================================================ */

/* [1] Botão Voltar - Liquid Glass */
.btn-back-liquid-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 50px;
  padding: 10px 20px;
  color: #14532D !important;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-back-liquid-glass:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
  filter: brightness(1.1);
  color: #166534 !important;
}

.btn-back-liquid-glass:hover span:last-child {
  text-decoration: underline !important;
}

.btn-back-liquid-glass:active {
  transform: translateY(1px);
}

/* Estilos adicionais para boxes de estatísticas */
.stat-box-fc {
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.stat-box-fc:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(91, 33, 182, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

/* --- LOTE 4: ESTILOS SCHOOLI FLASHCARDS --- */
#schooli-flashcards-title {
  letter-spacing: -0.03em !important;
}

/* Hover no Botão Novo Baralho */
#btn-open-create-deck {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
#btn-open-create-deck:hover {
  filter: brightness(1.08) !important;
}

/* Hover e Estados do Toggle e Indicador Escuro */
#deck-tabs-indicator {
  background-color: #1F2937 !important;
}

.toggle-item {
  transition: all 0.25s ease !important;
}

/* Estado inativo hover */
.toggle-item:not(.active):hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #1F2937 !important;
}

/* Estado ativo hover/normal */
.toggle-item.active {
  color: #FFFFFF !important;
}

.toggle-item.active:hover {
  color: #FFFFFF !important;
}

/* ============================================================
   LOTE 5: MELHORIAS ALTO CONTRASTE E REMOÇÃO DE LIQUID GLASS
   ============================================================ */

/* Containers Principais de Calendário — REVERTIDO para o tema escuro original.
   O override branco (LOTE 5) foi removido; os containers voltam a usar o
   design escuro definido pelas classes Tailwind no HTML. */
.card-calendario-container,
.card-calendario-events-container {
  background: rgba(21, 18, 46, 0.6) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Títulos claros (tema escuro) */
.card-calendario-container h2,
.card-calendario-container h3,
.card-calendario-events-container h3 {
  color: #ffffff !important;
}

/* Textos de corpo e metadados claros (tema escuro) */
.card-calendario-container p,
.card-calendario-events-container p,
#calendar-event-subtitle {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Hubs de Metas e Calendários em Design Dark de Alto Contraste */
#modal-metas-hub .liquid-glass-modal,
#modal-calendar-hub .liquid-glass-modal {
  background: #0f0d1e !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top-color: rgba(255, 255, 255, 0.22) !important;
  border-left-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 2.25rem !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

#modal-metas-hub .liquid-glass-modal h2,
#modal-metas-hub .liquid-glass-modal h3,
#modal-calendar-hub .liquid-glass-modal h3,
#modal-calendar-hub .liquid-glass-modal h2 {
  color: #ffffff !important;
}

#modal-metas-hub .liquid-glass-modal p,
#modal-calendar-hub .liquid-glass-modal p {
  color: rgba(255, 255, 255, 0.6) !important;
}

#modal-calendar-hub .cal-org-item,
#modal-metas-hub .org-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 0.75rem !important;
  transition: all 0.2s ease-in-out !important;
}

#modal-calendar-hub .cal-org-item:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
}

#modal-metas-hub .org-item:hover {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}

#modal-calendar-hub .liquid-glass-modal button,
#modal-metas-hub .liquid-glass-modal button {
  color: #ffffff !important;
}

/* Textos do Calendário — REVERTIDO: mantém o texto claro do tema escuro
   original (os overrides escuros do LOTE 5 foram removidos para restaurar
   o layout anterior). As classes .text-white* do Tailwind voltam a valer. */

/* Células de Dia do Calendário —
   sem override: cada célula usa as classes escuras aplicadas pelo JS
   (bg-[#15122e]/60, destaque sky para o dia atual, etc.). */

/* Cards de Eventos no Calendário —
   sem override: cada card usa sua cor vibrante via style inline
   (background-color roxo/rosa/azul/verde/laranja) definido no JS. */

/* Itens de Histórico nas Modais (Organizações / Calendários) */
.org-item,
.cal-org-item {
  background: #F3F4F6 !important;
  border: 1px solid #E5E7EB !important;
  color: #1F2937 !important;
  transition: all 0.2s ease !important;
}
.org-item,
.cal-org-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.org-item:hover {
  background: rgba(168, 85, 247, 0.08) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15) !important;
}

.cal-org-item:hover {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15) !important;
}

.org-item .text-white,
.cal-org-item .text-white {
  color: #ffffff !important;
}

.org-item:hover .text-white {
  color: #d8b4fe !important;
}

.cal-org-item:hover .text-white {
  color: #bae6fd !important;
}

.org-item .text-white\/30,
.cal-org-item .text-white\/30 {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Botões 'CRIAR ORGANIZAÇÃO' e 'CRIAR NOVO CALENDÁRIO' nas Modais */
#btn-hub-create-goal {
  background: rgba(168, 85, 247, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  box-shadow: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-cal-create-org {
  background: rgba(14, 165, 233, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  box-shadow: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-hub-create-goal:hover {
  background: rgba(168, 85, 247, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.2) !important;
  transform: translateY(-1px) !important;
}

#btn-cal-create-org:hover {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(14, 165, 233, 0.45) !important;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.2) !important;
  transform: translateY(-1px) !important;
}

#btn-hub-create-goal .text-slate-900,
#btn-hub-create-goal .text-white,
#btn-cal-create-org .text-slate-900,
#btn-cal-create-org .text-white {
  color: #ffffff !important;
}

#btn-hub-create-goal span:last-child {
  color: rgba(192, 132, 252, 0.85) !important;
}

#btn-cal-create-org span:last-child {
  color: rgba(56, 189, 248, 0.85) !important;
}

/* Botão de Fechar (✕) */
#btn-close-metas-hub,
#btn-close-calendar-hub {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease !important;
}

#btn-close-metas-hub:hover,
#btn-close-calendar-hub:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

#btn-close-metas-hub span,
#btn-close-calendar-hub span {
  color: #ffffff !important;
}

/* ============================================================
   ESTILOS DO TYPEWRITER E FONTES
   ============================================================ */
.typewriter-title {
  font-family: 'Caprasimo', cursive !important;
  color: #7C3AED !important;
  font-size: 3.25rem !important;
  letter-spacing: -0.02em !important;
  display: inline-block !important;
  vertical-align: middle;
}

.typewriter-cursor {
  display: none !important;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ============================================================
   ESTILOS DOS CARDS DE REVISÃO (CRONOGRAMA DO SRS)
   ============================================================ */
.revision-card {
  width: 110px !important;
  height: 110px !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  cursor: pointer !important;
  text-align: center !important;
  padding: 8px !important;
  user-select: none;
}

.revision-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Estados temporais dos cards de revisão */
.revision-card.pendente-hoje {
  background: #FEE2E2 !important;
  border: 2px solid #EF4444 !important;
  color: #991B1B !important;
  animation: srsPulse 2s infinite ease-in-out !important;
}

.revision-card.futuro-proximo {
  background: #FEF3C7 !important;
  border: 1px solid #F59E0B !important;
  color: #92400E !important;
}

.revision-card.futuro-distante {
  background: #F3F4F6 !important;
  border: 1px solid #D1D5DB !important;
  color: #6B7280 !important;
}

.revision-card.concluido {
  background: #D1FAE5 !important;
  border: 1px solid #10B981 !important;
  color: #065F46 !important;
}

@keyframes srsPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

/* Efeito Liquid Glass Premium para o Botão Novo Baralho */
.btn-liquid-glass-premium {
  background: rgba(255, 255, 255, 0.38) !important; /* Mais branco translúcido, imitando vidro espesso */
  backdrop-filter: blur(28px) saturate(220%) !important; /* Mais blur e saturação */
  -webkit-backdrop-filter: blur(28px) saturate(220%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-top: 2.5px solid rgba(255, 255, 255, 0.8) !important; /* Brilho de topo extremamente forte */
  border-left: 2px solid rgba(255, 255, 255, 0.65) !important; /* Brilho lateral esquerdo */
  box-shadow: 
    inset 0 2px 2px 0 rgba(255, 255, 255, 0.85), /* Reflexo interno superior super forte */
    inset 0 -10px 20px -6px rgba(0, 0, 0, 0.15), /* Profundidade de sombra interna inferior */
    inset 0 16px 22px -8px rgba(255, 255, 255, 0.75), /* Volume luminoso interno superior */
    0 18px 36px -8px rgba(0, 0, 0, 0.42), /* Sombra externa pesada projetada */
    0 6px 16px -4px rgba(16, 185, 129, 0.25) !important; /* Glow verde esmeralda sutil, combinando com o texto */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  color: #022c22 !important; /* Força o verde escuro no botão */
  font-weight: 900 !important;
}

.btn-liquid-glass-premium:hover {
  background: rgba(255, 255, 255, 0.48) !important;
  box-shadow: 
    inset 0 2px 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -12px 24px -6px rgba(0, 0, 0, 0.2),
    inset 0 20px 28px -8px rgba(255, 255, 255, 0.85),
    0 28px 48px -8px rgba(0, 0, 0, 0.48),
    0 10px 24px -2px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-3px) scale(1.02);
}

/* Forçar a cor verde escuro para qualquer filho (ícones ou texto) do botão */
.btn-liquid-glass-premium *,
.btn-liquid-glass-premium span {
  color: #022c22 !important;
}

/* Novo design do botão do ciclo avançado de Pomodoro */
.btn-pomo-advanced-glass {
  background: rgba(220, 252, 231, 0.45) !important; /* Fundo esverdeado claro e translúcido */
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border: 1.5px solid rgba(134, 239, 172, 0.5) !important; /* Borda verde clara */
  border-top: 2px solid rgba(255, 255, 255, 0.8) !important; /* Brilho superior */
  border-left: 2px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 12px;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 10px 14px -8px rgba(255, 255, 255, 0.5),
    0 8px 16px -4px rgba(0, 0, 0, 0.15), /* Sombreado */
    0 4px 10px -2px rgba(34, 197, 94, 0.2) !important; /* Glow verde suave */
  color: #022c22 !important; /* Letras em verde escuro */
  font-weight: 800 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-pomo-advanced-glass:hover {
  background: rgba(220, 252, 231, 0.6) !important;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 12px 16px -6px rgba(255, 255, 255, 0.6),
    0 12px 20px -4px rgba(0, 0, 0, 0.2),
    0 6px 14px -2px rgba(34, 197, 94, 0.3) !important;
  transform: translateY(-1px);
}

/* Forçar cor verde escuro no ícone e texto de btn-pomo-advanced-glass */
.btn-pomo-advanced-glass *,
.btn-pomo-advanced-glass span {
  color: #022c22 !important;
}

/* Modal Feynman - Liquid Glass Premium */
.liquid-glass-modal {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 30px rgba(99, 102, 241, 0.1) !important;
  transition: all 0.3s ease !important;
}

html.dark .liquid-glass-modal {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 45px rgba(139, 92, 246, 0.25) !important;
}

/* Animações de Entrada e Saída do Modal Feynman */
.animate-scale-in {
  animation: scale-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-out {
  animation: scale-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scale-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scale-out {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Alças de Redimensionamento dos Nós nos Mapas Mentais */
.node-resize-handle {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  z-index: 35;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.node-resize-handle:hover {
  transform: scale(1.3);
}

/* Retângulo de Guias (Navegação) Adaptado ao Feynman */
.feynman-nav-guides {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(18, 18, 38, 0.8) !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  border-radius: 0.75rem;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15), inset 0 0 10px rgba(124, 58, 237, 0.05);
}

.feynman-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.feynman-nav-btn:hover {
  color: #a78bfa;
  background-color: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}

.feynman-nav-btn.active {
  color: #a78bfa;
  background-color: rgba(124, 58, 237, 0.25) !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

/* ============================================================
   FLASHCARD STUDY MODE — LIQUID GLASS 2.0
   Cartões de estudo (prática de deck + revisão SRS)
   ============================================================ */

/* Palco do cartão: altura explícita (corrige colapso do h-full)
   + perspectiva 3D + tilt interativo via variáveis --fc-rx / --fc-ry */
.fc-stage {
  width: 100%;
  max-width: 620px;
  height: clamp(420px, 58vh, 540px);
  perspective: 1800px;
  margin-left: auto;
  margin-right: auto;
  transform-style: preserve-3d;
}

.fc-stage .card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.32, 0.72, 0.22, 1.12);
  transform: rotateX(var(--fc-rx, 0deg)) rotateY(var(--fc-ry, 0deg));
  will-change: transform;
  transform-style: preserve-3d !important;
}

.fc-stage .card-inner.is-flipped {
  transform: rotateX(var(--fc-rx, 0deg)) rotateY(calc(180deg + var(--fc-ry, 0deg)));
  transform-style: preserve-3d !important;
}

/* ---------- Face de vidro liquido ---------- */
.fc-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.28) 45%, rgba(255, 255, 255, 0.45) 100%);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 40px 80px -20px rgba(99, 102, 241, 0.28),
    0 16px 32px -8px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.4s ease;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.fc-stage .card-back {
  transform: rotateY(180deg) !important;
}

.fc-stage:hover .fc-face {
  box-shadow:
    0 55px 100px -20px rgba(99, 102, 241, 0.38),
    0 20px 40px -8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

html.dark .fc-face {
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(30, 41, 59, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 60px -20px rgba(124, 58, 237, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

html.dark .fc-stage:hover .fc-face {
  box-shadow:
    0 55px 110px -20px rgba(0, 0, 0, 0.7),
    0 0 80px -16px rgba(124, 58, 237, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Anel de borda em gradiente (desenhado por cima da borda de vidro) */
.fc-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(167, 139, 250, 0.45) 30%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(96, 165, 250, 0.4) 80%,
    rgba(255, 255, 255, 0.8) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}

/* ---------- Aurora: bolhas liquidas animadas ---------- */
.fc-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.fc-aurora span {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  opacity: 0.5;
}

html.dark .fc-aurora span {
  opacity: 0.55;
  mix-blend-mode: plus-lighter;
}

.fc-aurora span:nth-child(1) {
  width: 55%;
  aspect-ratio: 1;
  left: -15%;
  top: -20%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.8), transparent 70%);
  animation: fc-blob-a 11s ease-in-out infinite alternate;
}

.fc-aurora span:nth-child(2) {
  width: 65%;
  aspect-ratio: 1;
  right: -20%;
  bottom: -25%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.7), transparent 70%);
  animation: fc-blob-b 14s ease-in-out infinite alternate;
}

.fc-aurora span:nth-child(3) {
  width: 40%;
  aspect-ratio: 1;
  left: 35%;
  top: 45%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.5), transparent 70%);
  animation: fc-blob-c 17s ease-in-out infinite alternate;
}

/* Variante teal (revisao SRS) */
.fc-face-teal .fc-aurora span:nth-child(1) { background: radial-gradient(circle, rgba(45, 212, 191, 0.75), transparent 70%); }
.fc-face-teal .fc-aurora span:nth-child(2) { background: radial-gradient(circle, rgba(52, 211, 153, 0.65), transparent 70%); }
.fc-face-teal .fc-aurora span:nth-child(3) { background: radial-gradient(circle, rgba(96, 165, 250, 0.45), transparent 70%); }
.fc-face-teal::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(45, 212, 191, 0.5) 30%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(52, 211, 153, 0.45) 80%,
    rgba(255, 255, 255, 0.8) 100%);
}

/* Variante resposta (verso) */
.fc-face-answer .fc-aurora span:nth-child(1) { background: radial-gradient(circle, rgba(52, 211, 153, 0.75), transparent 70%); }
.fc-face-answer .fc-aurora span:nth-child(2) { background: radial-gradient(circle, rgba(167, 139, 250, 0.6), transparent 70%); }
.fc-face-answer .fc-aurora span:nth-child(3) { background: radial-gradient(circle, rgba(250, 204, 21, 0.35), transparent 70%); }
.fc-face-answer::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(52, 211, 153, 0.5) 30%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(167, 139, 250, 0.45) 80%,
    rgba(255, 255, 255, 0.8) 100%);
}

@keyframes fc-blob-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30%, 20%) scale(1.25); }
  100% { transform: translate(10%, 45%) scale(0.9); }
}
@keyframes fc-blob-b {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-25%, -18%) scale(1.15) rotate(40deg); }
  100% { transform: translate(-40%, 8%) scale(0.95) rotate(-25deg); }
}
@keyframes fc-blob-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30%, -40%) scale(1.4); }
}

/* ---------- Brilho especular que segue o ponteiro ---------- */
.fc-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    480px circle at var(--fc-gx, 50%) var(--fc-gy, 30%),
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.12) 30%,
    transparent 60%
  );
  mix-blend-mode: overlay;
}

.fc-stage:hover .fc-glare { opacity: 1; }

html.dark .fc-glare {
  background: radial-gradient(
    480px circle at var(--fc-gx, 50%) var(--fc-gy, 30%),
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 30%,
    transparent 60%
  );
  mix-blend-mode: screen;
}

/* Faixa de luz que varre o cartao no flip */
.fc-shine {
  position: absolute;
  inset: -60%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.35) 52%,
    transparent 60%);
  transform: translateX(-120%) rotate(8deg);
  opacity: 0;
}

.card-inner.is-flipped .card-back .fc-shine,
.card-inner:not(.is-flipped) .card-front .fc-shine {
  animation: fc-shine-sweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.25s 1;
}

@keyframes fc-shine-sweep {
  0%   { transform: translateX(-120%) rotate(8deg); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(120%) rotate(8deg); opacity: 0; }
}

/* ---------- Estrutura interna do cartao ---------- */
.fc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 1.75rem 0;
  position: relative;
  z-index: 10;
}

.fc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  color: #6d28d9;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html.dark .fc-chip {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 4px 14px -4px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fc-chip-teal { color: #0f766e; border-color: rgba(20, 184, 166, 0.3); box-shadow: 0 4px 12px -4px rgba(20, 184, 166, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
html.dark .fc-chip-teal { color: #5eead4; background: rgba(20, 184, 166, 0.14); border-color: rgba(45, 212, 191, 0.3); }

.fc-chip-answer { color: #047857; border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
html.dark .fc-chip-answer { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); border-color: rgba(52, 211, 153, 0.3); }

.fc-side-label {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(15, 23, 42, 0.4);
}
html.dark .fc-side-label { color: rgba(255, 255, 255, 0.35); }

/* Conteudo central rolavel (perguntas/respostas longas nao cortam mais) */
.fc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1rem 2.25rem;
  overflow-y: auto;
  position: relative;
  z-index: 10;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
}

.fc-content::-webkit-scrollbar { width: 5px; }
.fc-content::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.3); border-radius: 99px; }

.fc-question-text {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  font-weight: 800;
  color: #0f172a;
  overflow-wrap: anywhere;
}
html.dark .fc-question-text { color: #f8fafc; }

.fc-answer-text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  font-weight: 600;
  color: #1e293b;
  overflow-wrap: anywhere;
}
html.dark .fc-answer-text { color: #e2e8f0; }

/* Icone flutuante central */
.fc-icon-orb {
  width: 4.25rem;
  height: 4.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 28px -8px rgba(124, 58, 237, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  animation: fc-orb-float 5s ease-in-out infinite;
}

html.dark .fc-icon-orb {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.28), rgba(30, 41, 59, 0.6));
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.fc-icon-orb .material-symbols-outlined {
  font-size: 2.1rem;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fc-icon-orb-teal .material-symbols-outlined { background: linear-gradient(135deg, #0d9488, #10b981); -webkit-background-clip: text; background-clip: text; }
html.dark .fc-icon-orb-teal { background: linear-gradient(145deg, rgba(20, 184, 166, 0.25), rgba(30, 41, 59, 0.6)); border-color: rgba(45, 212, 191, 0.3); box-shadow: 0 12px 32px -8px rgba(20, 184, 166, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15); }

@keyframes fc-orb-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(3deg); }
}

/* Rodape com dica de interacao */
.fc-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.75rem 1.4rem;
  position: relative;
  z-index: 10;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(15, 23, 42, 0.38);
  transition: color 0.3s ease;
}

html.dark .fc-hint { color: rgba(255, 255, 255, 0.32); }
.fc-stage:hover .fc-hint { color: rgba(124, 58, 237, 0.75); }
html.dark .fc-stage:hover .fc-hint { color: rgba(196, 181, 253, 0.85); }

.fc-hint .material-symbols-outlined {
  font-size: 1rem;
  animation: fc-hint-pulse 2s ease-in-out infinite;
}

@keyframes fc-hint-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.25); opacity: 1; }
}

/* Icone gigante decorativo de fundo */
.fc-bg-icon {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  font-size: 280px !important;
  color: rgba(124, 58, 237, 0.06);
  transform: rotate(15deg);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
html.dark .fc-bg-icon { color: rgba(167, 139, 250, 0.05); }

/* ---------- Barra de botoes de qualidade ---------- */
.fc-quality-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 20px 45px -12px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

html.dark .fc-quality-bar {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fc-quality-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 6.5rem;
  height: 5.75rem;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  color: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

html.dark .fc-quality-btn { color: rgba(255, 255, 255, 0.5); }

.fc-quality-btn .material-symbols-outlined {
  font-size: 1.9rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fc-quality-btn:hover .material-symbols-outlined { transform: scale(1.25) rotate(-6deg); }
.fc-quality-btn:active { transform: scale(0.92); }

.fc-quality-btn .fc-q-label {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fc-quality-btn .fc-q-sub {
  font-size: 0.55rem;
  font-weight: 600;
  opacity: 0.6;
}

.fc-quality-btn:hover { transform: translateY(-4px); }

.fc-q-red:hover    { color: #e11d48; background: rgba(244, 63, 94, 0.1);  border-color: rgba(244, 63, 94, 0.3);  box-shadow: 0 12px 28px -8px rgba(244, 63, 94, 0.45); }
.fc-q-amber:hover  { color: #d97706; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 12px 28px -8px rgba(245, 158, 11, 0.45); }
.fc-q-teal:hover   { color: #0d9488; background: rgba(20, 184, 166, 0.1); border-color: rgba(20, 184, 166, 0.3); box-shadow: 0 12px 28px -8px rgba(20, 184, 166, 0.45); }
.fc-q-green:hover  { color: #059669; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 12px 28px -8px rgba(16, 185, 129, 0.45); }

/* Responsivo */
@media (max-width: 640px) {
  .fc-stage { height: clamp(380px, 60vh, 480px); }
  .fc-content { padding: 0.75rem 1.4rem; }
  .fc-quality-btn { width: 5.25rem; height: 5rem; }
}

/* ---------- Botão explícito de flip (Virar card) ---------- */
.fc-flip-controls {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.fc-flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: rgba(30, 27, 75, 0.85);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 12px 28px -12px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background 0.25s ease;
}

html.dark .fc-flip-btn {
  background:
    linear-gradient(140deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.55) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.92);
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fc-flip-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px -12px rgba(124, 58, 237, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html.dark .fc-flip-btn:hover {
  box-shadow:
    0 18px 34px -12px rgba(124, 58, 237, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.fc-flip-btn:active { transform: translateY(0) scale(0.97); }

.fc-flip-btn .material-symbols-outlined {
  font-size: 1.1rem;
  color: #7c3aed;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.dark .fc-flip-btn .material-symbols-outlined { color: #c4b5fd; }
.fc-flip-btn:hover .material-symbols-outlined { transform: rotate(180deg); }

.fc-flip-kbd {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #6d28d9;
  letter-spacing: 0.05em;
}
html.dark .fc-flip-kbd {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

/* ---------- Resumo de desempenho da sessão ---------- */
.fc-summary-wrap {
  width: 100%;
  max-width: 720px;
  margin: 1.5rem auto 0;
  padding: 2.25rem 2rem 2rem;
  border-radius: 2.5rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.55) 100%);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 45px 90px -22px rgba(99, 102, 241, 0.32),
    0 18px 36px -10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html.dark .fc-summary-wrap {
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.78) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(30, 41, 59, 0.7) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 45px 90px -22px rgba(0, 0, 0, 0.65),
    0 0 60px -20px rgba(124, 58, 237, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Aurora decorativa sutil no fundo do resumo */
.fc-summary-wrap::before {
  content: '';
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(circle at 20% 10%, rgba(167, 139, 250, 0.35), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(52, 211, 153, 0.28), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(96, 165, 250, 0.25), transparent 55%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}

.fc-summary-header { text-align: center; margin-bottom: 1.75rem; }

.fc-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #6d28d9;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.fc-summary-badge .material-symbols-outlined { font-size: 0.95rem; }
html.dark .fc-summary-badge {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.32);
  color: #c4b5fd;
}

.fc-summary-title {
  font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
html.dark .fc-summary-title { color: rgba(255, 255, 255, 0.95); }

.fc-summary-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.55);
  margin-top: 0.5rem;
}
html.dark .fc-summary-subtitle { color: rgba(255, 255, 255, 0.6); }

/* Hero: ring + métricas */
.fc-summary-hero {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.fc-summary-score {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 220px;
}

.fc-summary-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.fc-summary-ring-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 10;
}
html.dark .fc-summary-ring-track { stroke: rgba(148, 163, 184, 0.18); }

.fc-summary-ring-progress {
  fill: none;
  stroke: url(#fcSummaryGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7;         /* 2π·52 */
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.35));
}

.fc-summary-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
}

.fc-summary-score-value {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #60a5fa 55%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.02em;
}

.fc-summary-score-label {
  font-size: 0.55rem;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.5);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
html.dark .fc-summary-score-label { color: rgba(255, 255, 255, 0.55); }

.fc-summary-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fc-summary-metric {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
html.dark .fc-summary-metric {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fc-summary-metric .material-symbols-outlined {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(96, 165, 250, 0.2));
  color: #7c3aed;
  font-size: 1.15rem;
  flex-shrink: 0;
}
html.dark .fc-summary-metric .material-symbols-outlined {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(96, 165, 250, 0.25));
  color: #c4b5fd;
}

.fc-summary-metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.1;
}
html.dark .fc-summary-metric-value { color: rgba(255, 255, 255, 0.95); }

.fc-summary-metric-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.1rem;
}
html.dark .fc-summary-metric-label { color: rgba(255, 255, 255, 0.55); }

/* Breakdown por qualidade */
.fc-summary-breakdown {
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}
html.dark .fc-summary-breakdown {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.fc-summary-breakdown-title {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 1rem;
}
html.dark .fc-summary-breakdown-title { color: rgba(255, 255, 255, 0.65); }

.fc-quality-row { margin-bottom: 0.9rem; }
.fc-quality-row:last-child { margin-bottom: 0; }

.fc-quality-row-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.fc-quality-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.fc-quality-row-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.85);
  flex: 1;
}
html.dark .fc-quality-row-label { color: rgba(255, 255, 255, 0.85); }

.fc-quality-row-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.75);
}
html.dark .fc-quality-row-count { color: rgba(255, 255, 255, 0.8); }

.fc-quality-bar-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}
html.dark .fc-quality-bar-track { background: rgba(148, 163, 184, 0.18); }

.fc-quality-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-quality-row[data-tone="green"] .fc-quality-dot { background: linear-gradient(135deg, #34d399, #10b981); }
.fc-quality-row[data-tone="green"] .fc-quality-bar-fill { background: linear-gradient(90deg, #34d399, #10b981); box-shadow: 0 0 12px rgba(16, 185, 129, 0.45); }

.fc-quality-row[data-tone="amber"] .fc-quality-dot { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.fc-quality-row[data-tone="amber"] .fc-quality-bar-fill { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 0 12px rgba(245, 158, 11, 0.45); }

.fc-quality-row[data-tone="red"] .fc-quality-dot { background: linear-gradient(135deg, #fb7185, #ef4444); }
.fc-quality-row[data-tone="red"] .fc-quality-bar-fill { background: linear-gradient(90deg, #fb7185, #ef4444); box-shadow: 0 0 12px rgba(244, 63, 94, 0.4); }

/* Ações do resumo */
.fc-summary-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fc-summary-btn {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.25rem;
  border-radius: 1.15rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background 0.25s ease;
}
.fc-summary-btn:active { transform: scale(0.97); }
.fc-summary-btn .material-symbols-outlined { font-size: 1.05rem; }

.fc-summary-btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: rgba(30, 27, 75, 0.85);
  border-color: rgba(255, 255, 255, 0.65);
}
.fc-summary-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(99, 102, 241, 0.3);
}
html.dark .fc-summary-btn-ghost {
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark .fc-summary-btn-ghost:hover { background: rgba(15, 23, 42, 0.75); }

.fc-summary-btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #3b82f6 100%);
  color: #fff;
  box-shadow:
    0 18px 40px -14px rgba(124, 58, 237, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.fc-summary-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px -14px rgba(124, 58, 237, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Responsivo */
@media (max-width: 640px) {
  .fc-summary-wrap { padding: 1.75rem 1.25rem 1.5rem; border-radius: 2rem; }
  .fc-summary-hero { grid-template-columns: 1fr; text-align: center; }
  .fc-summary-score { margin: 0 auto; max-width: 180px; }
  .fc-summary-metric { padding: 0.7rem 0.85rem; }
  .fc-summary-btn { min-width: unset; width: 100%; }
}

/* Acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
  .fc-aurora span, .fc-icon-orb, .fc-hint .material-symbols-outlined, .fc-shine { animation: none !important; }
  .fc-stage .card-inner { transition: transform 0.4s ease; }
  .fc-summary-ring-progress, .fc-quality-bar-fill { transition: none !important; }
}

/* Customização do Menu de Navegação quando a Técnica Feynman está ativa */
body.feynman-active #bottom-nav .glass-pill {
  border-color: rgba(30, 112, 255, 0.45) !important;
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.6), 
    inset 0 -4px 12px rgba(0, 0, 0, 0.06), 
    0 25px 50px -12px rgba(30, 112, 255, 0.25) !important;
}

html.dark body.feynman-active #bottom-nav .glass-pill {
  border-color: rgba(30, 112, 255, 0.3) !important;
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.12), 
    inset 0 -4px 12px rgba(0, 0, 0, 0.5), 
    0 20px 45px -10px rgba(30, 112, 255, 0.35) !important;
}

body.feynman-active .nav-indicator-active {
  background: linear-gradient(135deg, rgba(30, 112, 255, 0.25) 0%, rgba(6, 182, 212, 0.3) 100%) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 
    inset 0 2px 8px rgba(255, 255, 255, 0.6), 
    0 10px 25px -5px rgba(30, 112, 255, 0.35) !important;
}

html.dark body.feynman-active .nav-indicator-active {
  background: linear-gradient(135deg, rgba(30, 112, 255, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    inset 0 2px 6px rgba(255, 255, 255, 0.15), 
    0 8px 20px -4px rgba(30, 112, 255, 0.4) !important;
}

body.feynman-active #bottom-nav .nav-item.active {
  color: #1e70ff !important;
}

body.feynman-active #bottom-nav .nav-item.active .material-symbols-outlined {
  color: #1e70ff !important;
  filter: drop-shadow(0 0 8px rgba(30, 112, 255, 0.6)) !important;
}

/* Customização do Menu de Navegação quando o Mapa Mental está ativo */
body.mindmap-active #bottom-nav .glass-pill {
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.6), 
    inset 0 -4px 12px rgba(0, 0, 0, 0.06), 
    0 25px 50px -12px rgba(124, 58, 237, 0.25) !important;
}

html.dark body.mindmap-active #bottom-nav .glass-pill {
  border-color: rgba(124, 58, 237, 0.3) !important;
  box-shadow: 
    inset 0 4px 16px rgba(255, 255, 255, 0.12), 
    inset 0 -4px 12px rgba(0, 0, 0, 0.5), 
    0 20px 45px -10px rgba(124, 58, 237, 0.35) !important;
}

body.mindmap-active .nav-indicator-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(236, 72, 153, 0.3) 100%) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 
    inset 0 2px 8px rgba(255, 255, 255, 0.6), 
    0 10px 25px -5px rgba(124, 58, 237, 0.35) !important;
}

html.dark body.mindmap-active .nav-indicator-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    inset 0 2px 6px rgba(255, 255, 255, 0.15), 
    0 8px 20px -4px rgba(124, 58, 237, 0.4) !important;
}

body.mindmap-active #bottom-nav .nav-item.active {
  color: #7c3aed !important;
}

body.mindmap-active #bottom-nav .nav-item.active .material-symbols-outlined {
  color: #7c3aed !important;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6)) !important;
}


