/* Inter Variable Font - Canonical Implementation for Imobiturbo Club */

/* Latin subset (weights 100 to 900) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin-Ext subset (weights 100 to 900) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Full Inter Variable fallback (weights 100 to 900) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

/* Inter Variable Italic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
}

/* Explicit weight aliases for maximum compatibility */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

/* Global Font Definition */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html,
body,
.font-sans,
.ui\:font-sans,
[class*="font-sans"],
[class*="ui:font-sans"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
optgroup,
select,
textarea,
a {
  font-family: inherit;
}

/* LMS Certificates empty state action button high contrast */
.certificates-empty a[data-slot="button"][href="/lms/mylearning"],
.empty-certificates a[data-slot="button"][href="/lms/mylearning"] {
  color: #000000 !important;
}

/* Sidebar and LMS Back Button styling */
.dark a[data-slot="button"]:has(svg.lucide-arrow-left),
[data-sidebar] a[data-slot="button"]:has(svg.lucide-arrow-left),
.ui\:bg-sidebar a[data-slot="button"]:has(svg.lucide-arrow-left),
.ui\:bg-sidebar a[data-slot="button"] {
  color: #ffffff !important;
}

.dark a[data-slot="button"]:has(svg.lucide-arrow-left) span,
[data-sidebar] a[data-slot="button"] span,
.ui\:bg-sidebar a[data-slot="button"] span {
  color: #ffffff !important;
}

a[data-slot="button"]:has(svg.lucide-arrow-left) svg,
a[data-slot="button"]:has(svg.lucide-arrow-left) svg.lucide-arrow-left,
[data-sidebar] a[data-slot="button"] svg,
[data-sidebar] a[data-slot="button"] svg.lucide-arrow-left,
.ui\:bg-sidebar a[data-slot="button"] svg,
.ui\:bg-sidebar a[data-slot="button"] svg.lucide-arrow-left {
  color: #BFD730 !important;
  stroke: #BFD730 !important;
}

/* AI Assistant Header Button - clean standard button */
header button canvas,
button:has(svg.lucide-sparkles) canvas,
header button:has(svg.lucide-sparkles) canvas {
  display: none !important;
}


/* Password visibility toggles follow the input color in both themes. */
[data-slot="password"] button {
  color: inherit !important;
}

[data-slot="password"] button svg {
  color: inherit !important;
  stroke: currentColor !important;
}

/* Dark mode: Imobiturbo lesson content cards (from DB HTML) */
.dark .imobiturbo-lesson-content > div,
.dark .preview .imobiturbo-lesson-content > div {
  background-color: #0b0f19 !important;
  border-color: #1f293d !important;
  color: #cbd5e1 !important;
}

.dark .imobiturbo-lesson-content > div h3,
.dark .preview .imobiturbo-lesson-content > div h3 {
  color: #f1f5f9 !important;
}

.dark .imobiturbo-lesson-content > div p,
.dark .preview .imobiturbo-lesson-content > div p {
  color: #94a3b8 !important;
}

.dark .imobiturbo-lesson-content > div strong,
.dark .preview .imobiturbo-lesson-content > div strong {
  color: #e2e8f0 !important;
}

/* Dark mode: Imobiturbo index box */
.dark .imobiturbo-index-box {
  background-color: #0d1117 !important;
  border-color: #1f293d !important;
  color: #cbd5e1 !important;
}

.dark .imobiturbo-index-box h3 {
  color: #f1f5f9 !important;
}

.dark .imobiturbo-index-box p {
  color: #94a3b8 !important;
}

.dark .imobiturbo-timestamp-badge {
  background-color: #1a2332 !important;
  color: #BFD730 !important;
  border-color: #2a3a4d !important;
}

.dark .imobiturbo-timestamp-text {
  color: #e2e8f0 !important;
}

/* Item 5: Hide non-functional "Pular para o momento" buttons */


/* Item 1: AI chat send button container overflow fix */
aside [data-slot="chat-textarea"] .ui\:flex.ui\:items-center {
  overflow: hidden;
}

aside [data-slot="chat-textarea"] {
  min-width: 0;
  overflow: hidden;
}


/* ==========================================================================
   IMOBITURBO ENHANCEMENTS - 2026-09-09
   ========================================================================== */

/* 1. Ocultar completamente a aba Explorar do LMS */
a[href*=/lms/explore],
a[href=/lms/explore],
[data-nav-id=explore] {
  display: none !important;
}

/* 2. Contraste nitido na Sidebar de Conteudo no Tema Claro (Light Mode) */
:root:not(.dark) aside h5,
:root:not(.dark) [data-sidebar] h5,
:root:not(.dark) .course-sidebar h5 {
  color: #09090b !important;
}
:root:not(.dark) aside a p,
:root:not(.dark) [data-sidebar] a p,
:root:not(.dark) .course-sidebar a p {
  color: #18181b !important;
}
:root:not(.dark) aside a:hover p,
:root:not(.dark) [data-sidebar] a:hover p,
:root:not(.dark) .course-sidebar a:hover p {
  color: #000000 !important;
}

/* 3. Indices Interativos e Minutagem BunnyStream */
.imobiturbo-timestamp-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  background-color: var(--card, #ffffff) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  user-select: none !important;
}

.imobiturbo-timestamp-item:hover {
  border-color: #BFD730 !important;
  background-color: rgba(191, 215, 48, 0.08) !important;
  transform: translateX(3px) !important;
}

.imobiturbo-timestamp-item.is-active,
.imobiturbo-timestamp-item.active-playing {
  border-color: #BFD730 !important;
  background-color: rgba(191, 215, 48, 0.15) !important;
}

.imobiturbo-timestamp-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-family: monospace, ui-monospace, SFMono-Regular, monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  flex-shrink: 0 !important;
}

.imobiturbo-timestamp-item:hover .imobiturbo-timestamp-badge,
.imobiturbo-timestamp-item.is-active .imobiturbo-timestamp-badge {
  background-color: #BFD730 !important;
  color: #000000 !important;
  border-color: #aebd2b !important;
}

.imobiturbo-timestamp-text {
  flex: 1 1 auto !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
}

.imobiturbo-timestamp-item:hover .imobiturbo-timestamp-text {
  color: #000000 !important;
  font-weight: 600 !important;
}

.imobiturbo-timestamp-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #4d5d0f !important;
  background-color: rgba(191, 215, 48, 0.2) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
  transition: background-color 0.15s ease !important;
}

.imobiturbo-timestamp-item:hover .imobiturbo-timestamp-action {
  background-color: #BFD730 !important;
  color: #000000 !important;
}

/* Dark mode timestamps */
.dark .imobiturbo-timestamp-item {
  border-color: #1e293b !important;
  background-color: #0f172a !important;
}

.dark .imobiturbo-timestamp-item:hover {
  border-color: #BFD730 !important;
  background-color: rgba(191, 215, 48, 0.1) !important;
}

.dark .imobiturbo-timestamp-badge {
  background-color: #1e293b !important;
  color: #BFD730 !important;
  border-color: #334155 !important;
}

.dark .imobiturbo-timestamp-text {
  color: #e2e8f0 !important;
}

.dark .imobiturbo-timestamp-item:hover .imobiturbo-timestamp-text {
  color: #ffffff !important;
}

.dark .imobiturbo-timestamp-action {
  color: #BFD730 !important;
  background-color: rgba(191, 215, 48, 0.15) !important;
}

.dark .imobiturbo-timestamp-item:hover .imobiturbo-timestamp-action {
  background-color: #BFD730 !important;
  color: #000000 !important;
}
