/* ==========================================================================
   Cronograma de Estudos Medicina OSCE - Design System & Styles
   Theme: Premium Dark Glassmorphism & High Contrast Medical Aesthetic
   ========================================================================== */

:root {
  --bg-dark: #070a12;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(30, 41, 65, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* APP CONTAINER LAYOUT */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOP HEADER NAVBAR (100% Fixo no Topo) */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  background: rgba(7, 10, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.brand-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* STATS HEADER BAR (XP, STREAK, LEVEL) */
.user-stats-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-chip.streak {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.stat-chip.level {
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.1);
}

.xp-progress-wrapper {
  display: flex;
  flex-direction: column;
  width: 140px;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.xp-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  width: 0%;
  transition: width 0.5s ease;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  color: white;
}

/* MAIN CONTENT WRAPPER (Com espaçamento do Top Header Fixo) */
.main-wrapper {
  display: flex;
  flex: 1;
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  position: relative;
}

/* SIDEBAR NAVIGATION (Desktop 100% Fixo na Esquerda) */
.sidebar {
  width: 270px;
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  height: calc(100vh - 64px);
  box-sizing: border-box;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.95) 0%, rgba(7, 10, 18, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 900;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.18), rgba(168, 85, 247, 0.12));
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3.5px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

/* MOBILE BOTTOM NAVBAR */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(7, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-nav-item.active {
  color: var(--accent-cyan);
}

/* CONTENT CONTAINER AREA */
.content-area {
  flex: 1;
  margin-left: 270px;
  padding: 2rem 2.5rem;
  max-width: calc(100vw - 270px);
  width: calc(100% - 270px);
  box-sizing: border-box;
  padding-bottom: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* DASHBOARD CARDS & GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-info .title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-info .value {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 0.25rem;
  color: var(--text-primary);
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* PERIOD SELECTION TABS & PILLS */
.period-tabs,
.period-tabs-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.period-tabs::-webkit-scrollbar,
.period-tabs-container::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  border-color: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

/* SUBJECT CARDS - ULTRA MODERN COMPACT GRID */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.subject-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  background: rgba(18, 26, 43, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--accent-cyan));
  opacity: 0.8;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--accent-cyan));
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.6), 0 0 16px -4px var(--card-color, var(--accent-cyan));
}

.subject-card:hover::before {
  height: 4px;
  opacity: 1;
}

.subject-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.subject-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.subject-emoji {
  font-size: 1rem;
}

.subject-progress-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.subject-progress-pill.complete {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.subject-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.subject-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.subject-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.subject-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.subject-progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.subject-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.subject-card-actions .action-btn {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.subject-card-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.subject-card-actions .action-btn-play {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.subject-card-actions .action-btn-play:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

/* BUTTON STYLES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: var(--bg-glass);
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: black;
  font-weight: 700;
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: white;
}

/* FORM CONTROLS, INPUTS & SELECT DROPDOWNS (HIGH CONTRAST DARK MODE) */
input, select, textarea {
  color-scheme: dark !important;
  font-family: var(--font-main);
}

select,
select.btn,
select.btn-secondary {
  color-scheme: dark !important;
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2306b6d4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.25rem 1.25rem !important;
  padding-right: 2.5rem !important;
}

select:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3) !important;
  outline: none;
}

select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* FLASHCARD VIEW 3D FLIP */
.flashcard-container {
  max-width: 760px;
  margin: 0 auto;
  perspective: 1200px;
}

.flashcard-3d {
  width: 100%;
  height: 500px;
  min-height: 460px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.flashcard-3d.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: rgba(18, 26, 43, 0.96);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.card-face.back {
  transform: rotateY(180deg);
  background: rgba(15, 23, 42, 0.98);
  border-color: var(--border-glow);
}

.card-face-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-face-scroll-body::-webkit-scrollbar {
  width: 6px;
}

.card-face-scroll-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
}

.card-face-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 99px;
}

.card-face-scroll-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.easy { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.card-badge.medium { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }
.card-badge.hard { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); }

.card-content-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 500;
  white-space: pre-line;
  margin: 1rem 0;
  word-break: break-word;
}

.card-pearl-box {
  background: rgba(6, 182, 212, 0.12);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #a5f3fc;
  margin-top: 1rem;
  line-height: 1.5;
}

.card-flip-prompt {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* RATING BUTTONS BELOW FLASHCARD */
.rating-buttons-bar {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.rating-btn {
  flex: 1;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.rating-btn.hard {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}
.rating-btn.hard:hover { background: var(--accent-rose); color: white; }

.rating-btn.medium {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}
.rating-btn.medium:hover { background: var(--accent-amber); color: black; }

.rating-btn.easy {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}
.rating-btn.easy:hover { background: var(--accent-emerald); color: white; }

/* QUIZ VIEW */
.quiz-container {
  max-width: 750px;
  margin: 0 auto;
}

.quiz-option-btn {
  width: 100%;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: var(--accent-emerald) !important;
  color: #6ee7b7;
}

.quiz-option-btn.incorrect {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: var(--accent-rose) !important;
  color: #fca5a5;
}

/* CRONOGRAMA TABLE (PDF COMPATIBLE) */
.schedule-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th, .schedule-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.schedule-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* LEADERBOARD TABLE */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.rank-1 { background: #eab308; color: black; box-shadow: 0 0 15px rgba(234, 179, 8, 0.4); }
.rank-2 { background: #94a3b8; color: black; }
.rank-3 { background: #b45309; color: white; }
.rank-other { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
  .top-header {
    padding: 0.75rem 1rem;
  }
  .xp-progress-wrapper {
    display: none;
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .content-area {
    padding: 1rem;
    padding-bottom: 5.5rem;
  }
  .rating-buttons-bar {
    flex-direction: column;
  }
}

/* ==========================================================================
   POMODORO TIMER WIDGET & MODAL
   ========================================================================== */
.pomodoro-pill {
  position: fixed;
  bottom: 25px;
  right: 175px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pomodoro-pill:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--accent-cyan);
}

.pomodoro-pill.running {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  animation: pulsePill 2s infinite ease-in-out;
}

@keyframes pulsePill {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.pomodoro-time {
  font-family: monospace;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
}

.pomodoro-mode-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.pomodoro-modes {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pomodoro-clock-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pomodoro-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pomodoro-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.pomodoro-ring-progress {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.pomodoro-clock-text {
  position: absolute;
  text-align: center;
}

.pomodoro-big-time {
  font-family: monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pomodoro-mode-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* ==========================================================================
   OSCE STATIONS SIMULATOR
   ========================================================================== */
.osce-timer-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 130px;
}

/* ==========================================================================
   EXAM & ASSESSMENT STYLING
   ========================================================================== */
@media (max-width: 900px) {
  .exam-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

.quiz-option-btn.active-selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.15) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25) !important;
}

/* ==========================================================================
   VIRTUAL PATIENT & DUTY HUB (PLANTÃO COM IA)
   ========================================================================== */
.virtual-duty-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.virtual-duty-float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6);
}

.duty-badge-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #070a12;
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.duty-hub-card {
  max-width: 850px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
}

.modal-header-duty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.duty-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.duty-schedule-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-top: 1.25rem;
}

.duty-time-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.duty-timer-status {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.duty-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.duty-case-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.duty-case-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.duty-case-card.random-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(6, 182, 212, 0.12));
  border-color: rgba(168, 85, 247, 0.3);
}

.duty-case-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
}

.duty-case-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.duty-case-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.duty-case-patient {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.duty-case-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

/* SALA DE CONSULTA E EMERGÊNCIA */
.consultation-overlay {
  padding: 1rem;
}

.consultation-room-card {
  max-width: 950px;
  width: 100%;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.consultation-top-bar {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
}

.patient-profile-snippet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.patient-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.vitals-monitor-strip {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  font-family: monospace;
}

.vital-item {
  font-size: 0.82rem;
  white-space: nowrap;
}

.vital-lbl {
  color: var(--text-secondary);
  font-weight: 600;
}

.vital-val {
  color: #10b981;
  font-weight: 800;
}

.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 82%;
}

.chat-msg.msg-doctor {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.msg-patient {
  align-self: flex-start;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

.msg-doctor .msg-bubble {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
}

.msg-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.msg-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #f1f5f9;
}

.msg-tts-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  cursor: pointer;
  margin-top: 0.4rem;
  display: inline-block;
  padding: 0;
}

.msg-tts-btn:hover {
  text-decoration: underline;
}

.exam-finding-box {
  margin-top: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid #10b981;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.exam-result-box {
  margin-top: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.medical-action-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.action-chip {
  font-size: 0.78rem;
  white-space: nowrap;
  border-radius: 99px;
  padding: 0.35rem 0.75rem;
}

.consultation-input-box {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.consultation-input-box textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  outline: none;
}

.consultation-input-box textarea:focus {
  border-color: var(--accent-cyan);
}

.send-msg-btn {
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* RELATÓRIO DO PRECEPTOR */
.preceptor-report-card {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.score-badge-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-pass {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
}

.score-fail {
  background: rgba(244, 63, 94, 0.15);
  border: 2px solid #f43f5e;
  color: #f43f5e;
}

.report-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0;
}

.report-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .report-sections-grid {
    grid-template-columns: 1fr;
  }
}

.report-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.gold-standard-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.report-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ALARME DE EMERGÊNCIA */
.emergency-alarm-card {
  max-width: 500px;
  text-align: center;
  padding: 2rem;
  border: 2px solid #ef4444;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.5);
  animation: alarm-shake 0.8s infinite;
}

.alarm-siren-animation {
  font-size: 3.5rem;
  animation: siren-spin 1s infinite alternate;
}

@keyframes siren-spin {
  0% { transform: scale(1) rotate(-15deg); }
  100% { transform: scale(1.2) rotate(15deg); }
}

@keyframes alarm-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  75% { transform: translate(3px, -2px); }
}

/* ==========================================================================
   SUPPORT CREATOR (APOIE O CRIADOR)
   ========================================================================== */
.support-page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.support-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.25);
  position: relative;
  overflow: hidden;
}

.support-badge-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border-radius: 99px;
  margin-bottom: 0.85rem;
}

.support-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.support-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

.support-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 850px) {
  .support-content-grid {
    grid-template-columns: 1fr;
  }
}

.story-card {
  padding: 2rem;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.story-icon {
  font-size: 1.5rem;
}

.story-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-body strong {
  color: #fff;
}

.fun-quote-box {
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.5rem;
}

.fun-quote-box blockquote {
  font-style: italic;
  font-size: 0.92rem;
  color: #e0f2fe;
  line-height: 1.5;
}

.pix-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.05) 0%, rgba(18, 24, 38, 0.85) 100%);
}

.pix-card-header {
  text-align: center;
}

.pix-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border-radius: 99px;
  display: inline-block;
}

.pix-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0 1.25rem 0;
}

.qr-frame {
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.qr-frame:hover {
  transform: scale(1.03);
}

.pix-qr-img {
  width: 190px;
  height: 190px;
  display: block;
  border-radius: 6px;
}

.pix-key-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.pix-key-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.pix-key-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pix-key-display span {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.copy-pix-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.pix-footer-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ==========================================================================
   DYNAMIC AI CASE GENERATOR & SPECIALTY FILTERS
   ========================================================================== */
.dynamic-ai-generator-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
  position: relative;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.specialty-chips-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.filter-chip.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

.badge-community {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25)) !important;
  color: #f472b6 !important;
  border: 1px solid rgba(236, 72, 153, 0.4) !important;
}

/* ==========================================================================
   GLOBAL APP FOOTER (KumaCorp)
   ========================================================================== */
.app-footer {
  margin-left: 270px;
  background: rgba(7, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  padding: 1.25rem 2rem;
  margin-top: auto;
  z-index: 50;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-left span strong {
  color: var(--accent-cyan);
}

.footer-right span strong {
  color: #fff;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLETS & SMARTPHONES)
   ========================================================================== */

/* TABLETS & IPADS (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 220px !important;
  }
  .content-area {
    margin-left: 220px !important;
    width: calc(100% - 220px) !important;
    max-width: calc(100% - 220px) !important;
    padding: 1.5rem !important;
  }
  .app-footer {
    margin-left: 220px !important;
  }
  .virtual-duty-float-btn {
    bottom: 25px !important;
    right: 25px !important;
  }
  .pomodoro-pill {
    bottom: 25px !important;
    right: 175px !important;
  }
}

/* SMARTPHONES & MOBILE SCREENS (<= 768px) */
@media (max-width: 768px) {
  .top-header {
    height: 56px !important;
    padding: 0 0.85rem !important;
    gap: 0.5rem !important;
  }
  
  .brand-title {
    font-size: 1rem !important;
    gap: 0.45rem !important;
  }
  
  .brand-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
  
  .brand-badge {
    display: none !important;
  }

  .user-stats-bar {
    gap: 0.35rem !important;
  }

  /* Ocultar botões redundantes do topo que já estão na barra inferior ou flutuante */
  .user-stats-bar button[onclick*="VirtualPatient"],
  .user-stats-bar button[onclick*="Pomodoro"] {
    display: none !important;
  }

  .stat-chip {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.75rem !important;
  }

  .stat-chip.level,
  .xp-progress-wrapper {
    display: none !important;
  }

  .user-profile-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .user-profile-btn span:not(:last-child) {
    max-width: 75px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .main-wrapper {
    margin-top: 56px !important;
  }

  .sidebar {
    display: none !important;
  }

  .content-area {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 0.85rem !important;
    padding-bottom: 95px !important;
  }

  .section-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .section-subtitle {
    font-size: 0.8rem !important;
  }

  /* Botões de Ação do Dashboard */
  .dashboard-actions-header {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }

  .dashboard-actions-header .btn {
    width: 100% !important;
    font-size: 0.75rem !important;
    padding: 0.6rem 0.4rem !important;
    text-align: center !important;
  }

  /* Grid do Dashboard */
  .dashboard-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .stat-card {
    padding: 0.85rem !important;
  }

  .stat-info .value {
    font-size: 1.35rem !important;
  }

  .stat-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }

  /* Botões Flutuantes em Mobile */
  .virtual-duty-float-btn {
    display: none !important;
  }

  .pomodoro-pill {
    bottom: 68px !important;
    right: 12px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
    z-index: 990 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  }

  /* Barra de Navegação Inferior Mobile */
  .mobile-nav {
    display: flex !important;
    height: 60px !important;
    background: rgba(10, 15, 29, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
  }

  .mobile-nav-item {
    font-size: 0.62rem !important;
    padding: 0.2rem 0.05rem !important;
    gap: 2px !important;
  }

  .mobile-nav-item span:first-child {
    font-size: 1.15rem !important;
  }

  /* Modais e Flashcards em Mobile */
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    padding: 1.25rem !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
  }

  .flashcard-3d {
    height: 440px !important;
    min-height: 400px !important;
  }

  .rating-buttons-bar {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .app-footer {
    margin-left: 0 !important;
    padding-bottom: calc(65px + 1rem) !important;
  }

  .footer-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.4rem !important;
  }
}

/* SMARTPHONES PEQUENOS (< 440px) */
@media (max-width: 440px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .dashboard-actions-header {
    grid-template-columns: 1fr !important;
  }
  .top-header {
    padding: 0 0.5rem !important;
  }
}






