/* ==========================================================================
   ARTRO 2.0: CYBER-WORKSPACE ULTRA-MINIMALIST & CINEMATIC THEME
   Inspired by: Apple Pro, OpenAI / ChatGPT GPT-6 Astra, Lando Norris & Tao Tajima
   Activated globally via: body.ui-theme-2
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL CANVAS, DEEP TEXTURE & ORGANIC MOVING PURPLE AURORAS
   -------------------------------------------------------------------------- */
body.ui-theme-2 {
  --brand: #a855f7;
  --brand-hover: #c084fc;
  --brand-light: rgba(168, 85, 247, 0.14);
  --brand-cyan: #38bdf8;
  --bg-main: #030305;
  --bg-surface: rgba(255, 255, 255, 0.015);
  --bg-surface-elevated: rgba(255, 255, 255, 0.035);
  --bg-surface-subtle: rgba(255, 255, 255, 0.015);
  --border-color: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(96, 61, 220, 0.35);
  --text-main: #f8fafc;
  --text-secondary: rgba(255, 255, 255, 0.45);
  --text-muted: rgba(255, 255, 255, 0.25);
  --dock-bg: rgba(10, 10, 15, 0.65);

  background-color: #030305 !important;
  background: #030305 !important;
  position: relative;
  overflow-x: hidden !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
  color: var(--text-main) !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh !important;
}

/* --------------------------------------------------------------------------
   NOVO MOTOR DE NEBULOSAS ANIMADAS DO ARTRO 2.0 (#artro-nebula-bg)
   -------------------------------------------------------------------------- */
/* O contêiner de nebulosas sobe para a camada 1 */
#artro-nebula-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent !important; /* Deixe o fundo transparente para ver o body */
  z-index: 1 !important; /* Sobe para ficar acima do fundo do body */
  pointer-events: none;
  overflow: hidden;
}

/* Força as auroras a ganharem brilho real na camada 1 */
#artro-nebula-bg::before,
#artro-nebula-bg::after {
  content: "";
  position: absolute;
  width: 80vw;
  height: 80vh;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25; /* Aumentado para 25% para garantir o brilho em telas escuras */
  pointer-events: none;
}

#artro-nebula-bg::before {
  background: radial-gradient(circle, #603DDC 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: nebulaOrbit1 45s infinite alternate ease-in-out;
}

#artro-nebula-bg::after {
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
  animation: nebulaOrbit2 55s infinite alternate ease-in-out;
}

@keyframes nebulaOrbit1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30vw, 20vh) scale(1.3); }
}

@keyframes nebulaOrbit2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25vw, -25vh) scale(1.2); }
}

/* O CONTEÚDO REAL DO SITE SOBE PARA A CAMADA 2 (Fica acima das nebulosas) */
#app,
.app-layout,
main,
.main-content,
.view-container,
.view-wrapper,
.app-container {
  position: relative;
  z-index: 2 !important; /* Garante que os cards e textos fiquem NA FRENTE da nebulosa */
}

/* Mantém as estrelas piscando misturadas na atmosfera */
#astra-particles-container,
.astra-star,
.astra-particle {
  z-index: 1 !important;
}

/* Remoção de fundos sólidos para permitir a passagem total das nebulosas */
body.ui-theme-2 .app-layout,
body.ui-theme-2 .app-container,
body.ui-theme-2 .main-content,
body.ui-theme-2 .view-container,
body.ui-theme-2 .view-wrapper,
body.ui-theme-2 .dashboard-content,
body.ui-theme-2 .content-main,
body.ui-theme-2 .content-side,
body.ui-theme-2 .stats-grid,
body.ui-theme-2 section {
  background: transparent !important;
  background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   ASTRA PARTICLES CANVAS CONTAINER
   -------------------------------------------------------------------------- */
#astra-particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1 !important;
  overflow: hidden;
}

.astra-star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(168, 85, 247, 0.6);
  animation: starFloat 12s cubic-bezier(0.4, 0, 0.2, 1) infinite, starTwinkle 4s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% {
    opacity: 0.12;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.3);
  }
  100% {
    opacity: 0.2;
    transform: scale(0.9);
  }
}

@keyframes starFloat {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-24px) translateX(8px);
  }
  100% {
    transform: translateY(0px) translateX(0px);
  }
}

/* --------------------------------------------------------------------------
   2. RETRACTABLE FLOATING DOCK SIDEBAR (OPENAI / CHATGPT STYLE)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  body.ui-theme-2 .sidebar,
  body.ui-theme-2 #sidebar {
    position: fixed !important;
    left: 20px !important;
    top: 20px !important;
    bottom: 20px !important;
    width: 70px !important;
    height: calc(100vh - 40px) !important;
    margin: 0 !important;
    padding: 18px 10px !important;
    background: var(--dock-bg) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    z-index: 1000 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  body.ui-theme-2 .sidebar::-webkit-scrollbar,
  body.ui-theme-2 #sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }

  /* Expanded State on Hover & when shortcuts hover dropdown is active */
  body.ui-theme-2 .sidebar:hover,
  body.ui-theme-2 #sidebar:hover,
  body.ui-theme-2 .sidebar:has(#shortcuts-hover-panel:hover),
  body.ui-theme-2 #sidebar:has(#shortcuts-hover-panel:hover),
  body.ui-theme-2 .sidebar:has(.sidebar-shortcut-wrapper:hover),
  body.ui-theme-2 #sidebar:has(.sidebar-shortcut-wrapper:hover),
  body.ui-theme-2 .sidebar.sidebar-force-expanded,
  body.ui-theme-2 #sidebar.sidebar-force-expanded {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 240px !important;
    background: rgba(14, 14, 22, 0.94) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(96, 61, 220, 0.2) !important;
  }

  /* Sidebar Header & Brand Logo */
  body.ui-theme-2 .sidebar-header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0 16px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
  }

  body.ui-theme-2 .sidebar-header .logo-area {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 5px !important;
  }

  body.ui-theme-2 .sidebar-header img {
    min-width: 26px !important;
    max-width: 38px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
    flex-shrink: 0 !important;
  }

  body.ui-theme-2 #closeSidebarBtn {
    display: none !important;
  }

  /* Menu Layout */
  body.ui-theme-2 .sidebar-menu {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
  }

  body.ui-theme-2 .sidebar-menu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }

  /* Navigation Items */
  body.ui-theme-2 .sidebar-item {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    padding: 0 15px !important;
    gap: 14px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    text-decoration: none !important;
  }

  body.ui-theme-2 .sidebar-item i,
  body.ui-theme-2 .sidebar-item svg {
    min-width: 20px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Label Text: Hidden when compact, Smooth fade-in on hover */
  body.ui-theme-2 .sidebar-item > span,
  body.ui-theme-2 .btn-atalho > span,
  body.ui-theme-2 .btn-sessao > span {
    opacity: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    transform: translateX(-6px) !important;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
  }

  body.ui-theme-2 .sidebar:hover .sidebar-item > span,
  body.ui-theme-2 #sidebar:hover .sidebar-item > span,
  body.ui-theme-2 .sidebar:hover .btn-atalho > span,
  body.ui-theme-2 #sidebar:hover .btn-atalho > span,
  body.ui-theme-2 .sidebar:hover .btn-sessao > span,
  body.ui-theme-2 #sidebar:hover .btn-sessao > span,
  body.ui-theme-2 .sidebar:has(#shortcuts-hover-panel:hover) .sidebar-item > span,
  body.ui-theme-2 #sidebar:has(#shortcuts-hover-panel:hover) .sidebar-item > span,
  body.ui-theme-2 .sidebar:has(#shortcuts-hover-panel:hover) .btn-atalho > span,
  body.ui-theme-2 #sidebar:has(#shortcuts-hover-panel:hover) .btn-atalho > span,
  body.ui-theme-2 .sidebar:has(.sidebar-shortcut-wrapper:hover) .sidebar-item > span,
  body.ui-theme-2 #sidebar:has(.sidebar-shortcut-wrapper:hover) .sidebar-item > span,
  body.ui-theme-2 .sidebar.sidebar-force-expanded .sidebar-item > span,
  body.ui-theme-2 #sidebar.sidebar-force-expanded .sidebar-item > span,
  body.ui-theme-2 .sidebar.sidebar-force-expanded .btn-atalho > span,
  body.ui-theme-2 #sidebar.sidebar-force-expanded .btn-atalho > span {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  /* Hover & Active States with Subtle Neon Glow */
  body.ui-theme-2 .sidebar-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.25) !important;
  }

  body.ui-theme-2 .sidebar-item:hover i,
  body.ui-theme-2 .sidebar-item:hover svg {
    transform: scale(1.1) !important;
    color: #ffffff !important;
  }

  body.ui-theme-2 .sidebar-item.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.25), rgba(56, 189, 248, 0.12)) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35) !important;
  }

  body.ui-theme-2 .sidebar-item.active i,
  body.ui-theme-2 .sidebar-item.active svg {
    color: var(--brand-cyan) !important;
  }

  /* Admin Dropdown Panel */
  body.ui-theme-2 .painel-dropdown {
    width: 100% !important;
    overflow: visible !important;
  }

  body.ui-theme-2 .painel-dropdown .sidebar-item i[data-lucide="chevron-down"] {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
  }

  body.ui-theme-2 .sidebar:hover .painel-dropdown .sidebar-item i[data-lucide="chevron-down"],
  body.ui-theme-2 #sidebar:hover .painel-dropdown .sidebar-item i[data-lucide="chevron-down"],
  body.ui-theme-2 .sidebar.sidebar-force-expanded .painel-dropdown .sidebar-item i[data-lucide="chevron-down"] {
    opacity: 1 !important;
  }

  /* Layout ordering in Sidebar: menu -> shortcuts -> footer */
  body.ui-theme-2 .sidebar-menu {
    order: 1 !important;
  }
  body.ui-theme-2 .btn-atalho,
  body.ui-theme-2 #quickAddBtn {
    order: 2 !important;
  }
  body.ui-theme-2 .quick-shortcuts-sidebar-list,
  body.ui-theme-2 #quickShortcutsList,
  body.ui-theme-2 #shortcuts-container,
  body.ui-theme-2 #custom-links {
    order: 3 !important;
  }
  body.ui-theme-2 .sidebar-footer {
    order: 4 !important;
    margin-top: auto !important;
  }

  /* ------------------------------------------------------------- */
  /* SANFONAS VERTICAIS POR CLIQUE (ATALHOS E PAINEL)              */
  /* ------------------------------------------------------------- */

  .shortcuts-dropdown-wrapper,
  body.ui-theme-2 .shortcuts-dropdown-wrapper,
  .painel-dropdown,
  body.ui-theme-2 .painel-dropdown {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ocultar conteúdo da sanfona quando a barra lateral inteira estiver minimizada */
  body.ui-theme-2 .sidebar:not(:hover):not(.sidebar-force-expanded) .shortcuts-dropdown-content,
  body.ui-theme-2 #sidebar:not(:hover):not(.sidebar-force-expanded) .shortcuts-dropdown-content,
  body.ui-theme-2 .sidebar:not(:hover):not(.sidebar-force-expanded) .painel-dropdown-content,
  body.ui-theme-2 #sidebar:not(:hover):not(.sidebar-force-expanded) .painel-dropdown-content {
    display: none !important;
  }

  /* Exibir sanfona expandida apenas se tiver a classe .open (CLIQUE) E a barra lateral estiver expandida */
  body.ui-theme-2 .sidebar:hover .shortcuts-dropdown-wrapper.open .shortcuts-dropdown-content,
  body.ui-theme-2 #sidebar:hover .shortcuts-dropdown-wrapper.open .shortcuts-dropdown-content,
  body.ui-theme-2 .sidebar-force-expanded .shortcuts-dropdown-wrapper.open .shortcuts-dropdown-content,
  body.ui-theme-2 .sidebar:hover .painel-dropdown.open .painel-dropdown-content,
  body.ui-theme-2 #sidebar:hover .painel-dropdown.open .painel-dropdown-content,
  body.ui-theme-2 .sidebar-force-expanded .painel-dropdown.open .painel-dropdown-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding-left: 10px !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
  }

  /* Botões retangulares modernos e finos (34px-38px) */
  body.ui-theme-2 .shortcut-item-btn,
  .shortcut-item-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  body.ui-theme-2 .shortcut-item-btn:hover,
  .shortcut-item-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.15) !important;
  }

  .shortcut-left,
  body.ui-theme-2 .shortcut-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .shortcut-left img,
  body.ui-theme-2 .shortcut-left img {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }

  .shortcut-left span,
  body.ui-theme-2 .shortcut-left span {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
  }

  .btn-delete-shortcut,
  .btn-del-shortcut,
  body.ui-theme-2 .btn-delete-shortcut,
  body.ui-theme-2 .btn-del-shortcut {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: rgba(239, 68, 68, 0.7) !important;
    cursor: pointer !important;
    padding: 3px !important;
    border-radius: 6px !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
  }

  .btn-delete-shortcut:hover,
  .btn-del-shortcut:hover,
  body.ui-theme-2 .btn-delete-shortcut:hover,
  body.ui-theme-2 .btn-del-shortcut:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
  }

  body.ui-theme-2 .btn-delete-shortcut:hover,
  .btn-delete-shortcut:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
  }

  body.ui-theme-2 .btn-del-shortcut i,
  body.ui-theme-2 .btn-del-shortcut svg,
  body.ui-theme-2 .shortcut-delete-btn i,
  body.ui-theme-2 .shortcut-delete-btn svg,
  body.ui-theme-2 .shortcut-item button i,
  body.ui-theme-2 .shortcut-item button svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
  }

  #sidebar div[id*="shortcut"] button:hover,
  #sidebar div[class*="shortcut"] button:hover,
  body.ui-theme-2 #sidebar div[id*="shortcut"] button:hover,
  body.ui-theme-2 #sidebar div[class*="shortcut"] button:hover,
  body.ui-theme-2 .btn-del-shortcut:hover,
  body.ui-theme-2 .shortcut-delete-btn:hover,
  body.ui-theme-2 .delete-shortcut-btn:hover,
  body.ui-theme-2 .shortcut-item button:hover,
  .btn-del-shortcut:hover,
  .shortcut-delete-btn:hover,
  .delete-shortcut-btn:hover,
  .shortcut-item button:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
  }

  /* Sidebar Footer Controls */
  body.ui-theme-2 .sidebar-footer {
    width: 100% !important;
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* 2. O botão de iniciar sessão na barra lateral é omitido no Tema 2 (fica estritamente no card da Dashboard) */
  body.ui-theme-2 .sidebar .btn-sessao,
  body.ui-theme-2 #sidebar .btn-sessao,
  body.ui-theme-2 #startStudySessionSidebar {
    display: none !important;
  }

  /* Main View Offset to accommodate the dock gracefully */
  body.ui-theme-2 .main-content {
    margin-left: 90px !important;
    padding: 32px 48px !important;
    min-height: 100vh !important;
    max-width: calc(100% - 90px) !important;
    position: relative !important;
    z-index: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   3. CINEMATIC HEADER (APPLE HERO GREETING)
   -------------------------------------------------------------------------- */
body.ui-theme-2 .main-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 0 28px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body.ui-theme-2 #userGreeting {
  font-size: 2.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.45) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.ui-theme-2 #headerUserFocusSubtitle {
  font-size: 14.5px !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  margin-top: 5px !important;
}

/* Header Glass Pills */
body.ui-theme-2 .btn-cloud-account {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px !important;
  color: var(--text-main) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.ui-theme-2 .btn-cloud-account:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(96, 61, 220, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(96, 61, 220, 0.2);
}

/* Ocultação total do botão de tema no Tema 2 (Dark Mode fixo) */
body.ui-theme-2 #themeToggleBtn,
body.ui-theme-2 #theme-toggle,
body.ui-theme-2 .btn-theme-toggle,
body.ui-theme-2 .theme-switch-btn,
body.ui-theme-2 #popupThemeToggle {
  display: none !important;
}

body.ui-theme-2 #profileTrigger img {
  border: 2px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25) !important;
  transition: transform 0.25s ease !important;
}

body.ui-theme-2 #profileTrigger:hover img {
  transform: scale(1.08);
  border-color: var(--brand-cyan) !important;
}

/* --------------------------------------------------------------------------
   4. COMPACT 5-CARD SINGLE ROW GRID (APPLE PRO / OPENAI GLASSMORPHIC)
   -------------------------------------------------------------------------- */
body.ui-theme-2 .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  margin-bottom: 28px !important;
  align-items: stretch !important;
}

body.ui-theme-2 .metric-card {
  background: rgba(255, 255, 255, 0.015) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 18px !important;
  padding: 16px 18px !important;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 126px !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.ui-theme-2 .metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0.5;
}

body.ui-theme-2 .metric-card:hover {
  transform: translateY(-4px) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(96, 61, 220, 0.3) !important;
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(96, 61, 220, 0.2) !important;
}

body.ui-theme-2 .metric-card__icon {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(56, 189, 248, 0.1)) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #c084fc !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15) !important;
  transition: transform 0.25s ease !important;
}

body.ui-theme-2 .metric-card:hover .metric-card__icon {
  transform: scale(1.06);
  color: #ffffff !important;
}

body.ui-theme-2 .metric-card__icon svg,
body.ui-theme-2 .metric-card__icon i {
  width: 16px !important;
  height: 16px !important;
}

body.ui-theme-2 .metric-card__info {
  display: flex !important;
  flex-direction: column !important;
}

body.ui-theme-2 .metric-card__title {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--text-secondary) !important;
  margin-bottom: 4px !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.ui-theme-2 .metric-card__value {
  display: flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  margin-bottom: 6px !important;
}

body.ui-theme-2 .value-number {
  font-size: 1.85rem !important;
  font-weight: 350 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  color: #ffffff !important;
  font-feature-settings: "tnum" on, "lnum" on;
}

body.ui-theme-2 .value-unit {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

body.ui-theme-2 .metric-card__trend {
  font-size: 11px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.ui-theme-2 .trend-text {
  color: var(--text-muted) !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   5. GLASS PANELS & CHARTS (PURE TRANSPARENCY & SUBTLE BORDERS)
   -------------------------------------------------------------------------- */
body.ui-theme-2 .panel-box,
body.ui-theme-2 .card {
  background: rgba(255, 255, 255, 0.015) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 24px !important;
  padding: 26px !important;
  box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  transition: border-color 0.3s ease, background 0.3s ease !important;
}

body.ui-theme-2 .panel-box:hover,
body.ui-theme-2 .card:hover {
  border-color: rgba(96, 61, 220, 0.25) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

body.ui-theme-2 .panel-box h3,
body.ui-theme-2 .card h3 {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
}

body.ui-theme-2 .chart-select,
body.ui-theme-2 .form-input,
body.ui-theme-2 .form-select,
body.ui-theme-2 .form-textarea {
  background: rgba(10, 10, 15, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  transition: all 0.2s ease !important;
}

body.ui-theme-2 .chart-select:focus,
body.ui-theme-2 .form-input:focus,
body.ui-theme-2 .form-select:focus,
body.ui-theme-2 .form-textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-light) !important;
  outline: none !important;
}

/* Goals Progress Card inside Dashboard */
body.ui-theme-2 .goals-card-item {
  margin-bottom: 16px !important;
}

body.ui-theme-2 .goals-label {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  margin-bottom: 8px !important;
}

body.ui-theme-2 .goals-progress-track {
  height: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

body.ui-theme-2 .goals-progress-fill {
  background: linear-gradient(90deg, #a855f7, #38bdf8) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6) !important;
}

body.ui-theme-2 .goals-progress-fill.green {
  background: linear-gradient(90deg, #10b981, #38bdf8) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
}

body.ui-theme-2 .btn-view-all {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  color: var(--text-secondary) !important;
  padding: 10px 16px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

body.ui-theme-2 .btn-view-all:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #ffffff !important;
  border-color: rgba(96, 61, 220, 0.3) !important;
}

/* Card de Próximas Matérias / Ciclo de Estudos / Painel Dinâmico */
body.ui-theme-2 .upcoming-panel,
body.ui-theme-2 .proxima-materia-card,
body.ui-theme-2 .next-subject-container,
.proxima-materia-card,
.next-subject-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 160px !important;
  height: auto !important;
  padding: 16px !important;
}

body.ui-theme-2 .upcoming-list,
.upcoming-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: auto !important;
  min-height: unset !important;
}

body.ui-theme-2 .upcoming-item,
.upcoming-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  height: auto !important;
  min-height: unset !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

body.ui-theme-2 .upcoming-item:hover,
.upcoming-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}

body.ui-theme-2 .upcoming-left,
.upcoming-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 !important;
  overflow: hidden !important;
}

body.ui-theme-2 .upcoming-icon-badge,
.upcoming-icon-badge {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

body.ui-theme-2 .upcoming-name,
.upcoming-name {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.ui-theme-2 .upcoming-meta,
.upcoming-meta {
  font-size: 12px !important;
  color: var(--text-secondary) !important;
}

body.ui-theme-2 .btn-start-session,
.btn-start-session {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(56, 189, 248, 0.25)) !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

body.ui-theme-2 .btn-start-session:hover,
.btn-start-session:hover {
  background: linear-gradient(135deg, #a855f7, #38bdf8) !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5) !important;
  transform: translateY(-1px) !important;
}

/* --------------------------------------------------------------------------
   6. CINEMATIC APPLE-STYLE DATA TABLES
   -------------------------------------------------------------------------- */
body.ui-theme-2 .table-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow-x: auto !important;
  margin-top: 14px !important;
}

body.ui-theme-2 .data-table {
  width: 100% !important;
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
  text-align: left !important;
}

body.ui-theme-2 .data-table thead tr {
  background: transparent !important;
}

body.ui-theme-2 .data-table th {
  background: transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--text-secondary) !important;
  opacity: 0.6 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 16px 18px !important;
}

body.ui-theme-2 .data-table td {
  background: transparent !important;
  border: none !important;
  padding: 16px 18px !important;
  font-size: 14px !important;
  color: var(--text-main) !important;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.ui-theme-2 .data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}

body.ui-theme-2 .data-table td:first-child {
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}

body.ui-theme-2 .data-table td:last-child {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* --------------------------------------------------------------------------
   7. ACTIVE TIMER BAR (FLOATING GLASS DOCK)
   -------------------------------------------------------------------------- */
body.ui-theme-2 .active-timer-bar {
  background: rgba(12, 12, 18, 0.75) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(96, 61, 220, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(96, 61, 220, 0.2) !important;
  padding: 14px 22px !important;
  margin-bottom: 24px !important;
}

body.ui-theme-2 .timer-digits {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-cyan) !important;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

/* --------------------------------------------------------------------------
   8. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
body.ui-theme-2 .btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #38bdf8 100%) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 10px 22px !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 6px 25px rgba(96, 61, 220, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

body.ui-theme-2 .btn-primary:hover {
  opacity: 0.96 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(96, 61, 220, 0.55) !important;
}

body.ui-theme-2 .btn-secondary {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 10px 20px !important;
  color: #f1f5f9 !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
}

body.ui-theme-2 .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(96, 61, 220, 0.3) !important;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. POPUPS, MODALS & DRAWERS
   -------------------------------------------------------------------------- */
body.ui-theme-2 .settings-popup {
  background: rgba(14, 14, 22, 0.95) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
  z-index: 10000 !important;
}

body.ui-theme-2 .settings-popup-item {
  color: var(--text-main) !important;
  border-radius: 10px !important;
  transition: background 0.15s ease !important;
}

body.ui-theme-2 .settings-popup-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--brand-cyan) !important;
}

body.ui-theme-2 .modal-overlay {
  background: rgba(2, 2, 4, 0.75) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

body.ui-theme-2 .modal-container {
  background: rgba(10, 10, 16, 0.88) !important;
  backdrop-filter: blur(36px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

body.ui-theme-2 .customization-drawer {
  background: rgba(10, 10, 16, 0.92) !important;
  backdrop-filter: blur(36px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8) !important;
}

body.ui-theme-2 #drawerUiModern.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(56, 189, 248, 0.2)) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4) !important;
}

/* --------------------------------------------------------------------------
   10. MOBILE & TABLET RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) and (min-width: 992px) {
  body.ui-theme-2 .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 991px) {
  body.ui-theme-2 .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Mobile/Tablet Sidebar: Crisp, zero-blur readable background */
  body.ui-theme-2 .sidebar,
  body.ui-theme-2 #sidebar {
    width: 280px !important;
    max-width: 82vw !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    border-radius: 0 24px 24px 0 !important;
    margin: 0 !important;
    padding: 24px 16px !important;
    background: rgba(10, 10, 15, 0.96) !important;
    background-color: rgba(10, 10, 15, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.85) !important;
    z-index: 1200 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease !important;
  }

  body.ui-theme-2 .sidebar.mobile-open,
  body.ui-theme-2 #sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.9) !important;
  }

  body.ui-theme-2 .sidebar *,
  body.ui-theme-2 #sidebar * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  body.ui-theme-2 .sidebar .sidebar-item > span,
  body.ui-theme-2 .sidebar .btn-atalho > span,
  body.ui-theme-2 .sidebar .btn-sessao > span,
  body.ui-theme-2 .sidebar .quick-shortcut-item a span {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body.ui-theme-2 .sidebar .btn-atalho,
  body.ui-theme-2 .sidebar #quickAddBtn,
  body.ui-theme-2 .sidebar .quick-shortcuts-sidebar-list,
  body.ui-theme-2 .sidebar #quickShortcutsList,
  body.ui-theme-2 .sidebar #shortcuts-container,
  body.ui-theme-2 .sidebar #custom-links {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    pointer-events: auto !important;
  }

  body.ui-theme-2 .sidebar .quick-shortcut-item .btn-del-shortcut {
    display: flex !important;
  }

  body.ui-theme-2 .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 20px 16px 85px 16px !important;
  }

  body.ui-theme-2 .dashboard-content {
    grid-template-columns: 1fr !important;
    padding: 0 0 32px 0 !important;
    gap: 20px !important;
  }

  body.ui-theme-2 .mobile-bottom-nav {
    background: rgba(10, 10, 16, 0.85) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0 12px 12px 12px !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
  }

  /* Responsive Greeting Font Size for Tablet/Mobile */
  body.ui-theme-2 #userGreeting,
  body.ui-theme-2 .header__welcome h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  body.ui-theme-2 #headerUserFocusSubtitle {
    font-size: 12.5px !important;
  }
}

/* 2. COMPACTAÇÃO DA GRID DE CARDS NO MOBILE (ESTILO APPLE DASHBOARD) */
@media (max-width: 768px) {
  body.ui-theme-2 .stats-grid,
  body.ui-theme-2 #dashboard-cards-container,
  .stats-grid,
  #dashboard-cards-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
  }

  /* O 5º card (Média em Redações) ocupa a largura total das 2 colunas para fechar a simetria */
  body.ui-theme-2 .stats-grid > div:last-child,
  body.ui-theme-2 #dashboard-cards-container > div:last-child,
  body.ui-theme-2 .stats-grid > .metric-card:nth-child(5),
  .stats-grid > div:last-child,
  #dashboard-cards-container > div:last-child,
  .stats-grid > .metric-card:nth-child(5) {
    grid-column: span 2 !important;
  }

  /* Redução de altura e fontes dos cards no celular */
  body.ui-theme-2 .stats-card,
  body.ui-theme-2 .metric-card,
  .stats-card,
  .metric-card {
    padding: 12px 10px !important;
    height: auto !important;
    min-height: unset !important;
    border-radius: 14px !important;
    gap: 8px !important;
  }

  body.ui-theme-2 .metric-card .metric-card__title,
  body.ui-theme-2 .metric-card h3,
  .metric-card .metric-card__title,
  .metric-card h3 {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }

  body.ui-theme-2 .metric-card .value-number,
  body.ui-theme-2 .metric-card .value,
  .metric-card .value-number,
  .metric-card .value {
    font-size: 1.4rem !important;
    line-height: 1.15 !important;
  }

  body.ui-theme-2 .metric-card .value-unit,
  .metric-card .value-unit {
    font-size: 0.8rem !important;
  }

  body.ui-theme-2 .metric-card .metric-card__icon,
  .metric-card .metric-card__icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
  }

  body.ui-theme-2 .metric-card .metric-card__icon svg,
  body.ui-theme-2 .metric-card .metric-card__icon i,
  .metric-card .metric-card__icon svg,
  .metric-card .metric-card__icon i {
    width: 16px !important;
    height: 16px !important;
  }

  body.ui-theme-2 .metric-card__trend,
  .metric-card__trend {
    font-size: 0.72rem !important;
    margin-top: 2px !important;
  }

  body.ui-theme-2 #userGreeting,
  body.ui-theme-2 .header__welcome h1 {
    font-size: 1.65rem !important;
  }

  /* 3. ESPAÇAMENTO DOS BOTÕES DO CRONÔMETRO NO MOBILE */
  .timer-options-container,
  .timer-presets,
  .timer-mode-selector,
  div[class*="timer-buttons"],
  body.ui-theme-2 .timer-options-container,
  body.ui-theme-2 .timer-presets,
  body.ui-theme-2 .timer-mode-selector,
  body.ui-theme-2 div[class*="timer-buttons"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
  }

  .timer-presets button,
  .timer-options-container button,
  .timer-mode-selector button,
  .timer-mode-btn,
  body.ui-theme-2 .timer-presets button,
  body.ui-theme-2 .timer-options-container button,
  body.ui-theme-2 .timer-mode-selector button,
  body.ui-theme-2 .timer-mode-btn {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    flex: 1 1 calc(50% - 10px) !important;
    min-width: 130px !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 580px) {
  body.ui-theme-2 #userGreeting,
  body.ui-theme-2 .header__welcome h1 {
    font-size: 1.45rem !important;
  }

  body.ui-theme-2 .upcoming-item,
  .upcoming-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  body.ui-theme-2 .btn-start-session,
  .btn-start-session {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
  }
}
