/* ============================================
   INTRAMED - Unified Stylesheet v3.0
   Complete Replacement - All Classes Preserved
   Enhanced with Depth, Color, Typography & Spacing
   ============================================*/

/* ============================================.video-player {
   1. CSS VARIABLES & ROOT (Enhanced)
   ============================================*/
:root {
  /* Original variables (preserved) */
  --page-bg: linear-gradient(160deg, #f5f8fc 0%, #eef3f8 45%, #f9fbfd 100%);
  --surface: #ffffff;
  --text-primary: #1e2a39;
  --text-secondary: #4d627a;
  --highlight: #38506a;
  --highlight-strong: #2e4258;
  --highlight-soft: #e8eef5;
  --darkmode-text-primary: #d2dfed;
  --darkmode-text-secondary: #b8c8da;
  --darkmode-highlight: #d5e1ee;
  --darkmode-highlight-strong: #a7b7c8;
  --darkmode-highlight-soft: #93a1b0;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-soft: 0 14px 28px rgba(43, 67, 89, 0.08);
  --shadow-card: 0 10px 22px rgba(35, 57, 77, 0.1);

  /* NEW: Enhanced color layers (more distinct contrast) */
  --bg-base: #0a0a12;
  --bg-surface: #12121c;
  --bg-elevated: #1c1c2a;
  --bg-highest: #26263a;
  
  /* NEW: Semantic colors */
  --primary: #0066cc;
  --primary-hover: #0052a3;
  --primary-light: rgba(0, 102, 204, 0.12);
  --primary-surface: rgba(0, 102, 204, 0.06);
  --success: #10b981;
  --success-hover: #059669;
  --success-light: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.12);
  --error: #ef4444;
  --error-light: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  
  /* NEW: Text colors (WCAG compliant) */
  --text-white: #ffffff;
  --text-gray-300: #a1a1aa;
  --text-gray-500: #71717a;
  --text-gray-600: #52525b;
  
  /* NEW: Typography system */
  --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Manrope', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  
  /* NEW: Spacing system (8pt grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 1.75rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  
  /* NEW: Depth shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2), 0 16px 32px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.2);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-inset-light: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  --shiny-top: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  
  /* NEW: Border radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* NEW: Animations */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ============================================
   2. RESET & BASE (Enhanced)
   ============================================*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-base);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-white);
  padding: var(--space-4);
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

/* ============================================
   3. LAYOUT & CONTAINERS
   ============================================*/
body.login-page {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 100vh;
        padding: 40px 20px 20px 20px;
    }
    .login-container {
        max-width: 400px;
        width: 100%;
    }
    .login-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 20px;
        padding: 16px;
        background: var(--bg-elevated);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: var(--shadow-sm);
    }
    .login-brand img {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        flex-shrink: 0;
    }
    .login-brand h1 {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-white);
        margin: 0;
        line-height: 1.3;
    }
    .login-brand p {
        font-size: 12px;
        color: var(--text-gray-500);
        margin: 2px 0 0 0;
    }
    .forgot-password {
        display: block;
        text-align: center;
        margin-top: 16px;
        color: var(--text-gray-500);
        font-size: 13px;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s;
    }
    .forgot-password:hover {
        color: var(--primary);
    }

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-1);
  color: var(--text-white);
  width: 100%;
  box-sizing: border-box;
}

.app-shell {
  background: var(--bg-base);
  min-height: 100vh;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: var(--space-1) var(--space-1) var(--space-1);
}

.dashboard-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 var(--space-8) 0;
}

.section-block {
  padding: 0 var(--space-6);
}

.training-section {
  padding: var(--space-5) var(--space-6);
}

/* ============================================
   4. TYPOGRAPHY (Enhanced)
   ============================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-white);
  margin: 0;
}

h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-head h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin: 0;
  padding: 0;
  border: none;
}

.section-title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-gray-500);
  margin: var(--space-8) 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

/* ============================================
   5. PAGE HEADER
   ============================================*/
.page-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.page-header a {
  color: var(--info);
  text-decoration: none;
  font-weight: var(--font-semibold);
}

.page-header span {
  color: var(--text-gray-500);
}

.page-header h1 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--highlight);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-5);
}

/* ============================================
   6. BUTTONS (Enhanced with Depth)
   ============================================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  width: 100%;
  margin-top: var(--space-2);
  gap: var(--space-2);
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Shiny top highlight */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(255,255,255,0));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  pointer-events: none;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: var(--error);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-add {
  width: 100%;
  background: var(--success);
  color: #fff;
  font-size: var(--text-sm);
  padding: var(--space-5);
  margin-top: var(--space-4);
}

.btn-add:hover {
  background: var(--success-hover);
}

.btn-add:disabled {
  background: rgba(255,255,255,0.08);
  color: var(--text-gray-500);
}

.btn-cancel {
  display: inline-block;
  margin-left: var(--space-4);
  color: var(--text-gray-500);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--info);
  border: 2px solid var(--info);
  box-shadow: none;
}

.btn-outline::before {
  display: none;
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.bottom-actions {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 2px solid rgba(255,255,255,0.06);
}

.btn-cancel-bottom {
  background: var(--bg-elevated);
  color: var(--text-gray-500);
  flex: 1;
}

.btn-save {
  background: var(--primary);
  color: #fff;
  flex: 1;
}

/* Icon Buttons */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-elevated);
  color: var(--text-gray-500);
  font-size: var(--text-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.icon-btn:hover {
  background: var(--bg-highest);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.icon-btn.edit:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-btn.preview:hover {
  background: var(--success-light);
  color: var(--success);
}

.icon-btn.assign:hover {
  background: var(--warning-light);
  color: var(--warning);
}

.icon-btn.invite:hover {
  background: var(--primary-light);
  color: var(--info);
}

.icon-btn.delete {
  color: var(--error);
}

.icon-btn.delete:hover {
  background: var(--error-light);
}

.icon-btn.delete:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.icon-btn.mail {
  color: var(--info);
}

.icon-btn.key {
  color: var(--warning);
}

/* ============================================
   7. FORMS (Enhanced with Inset Shadow)
   ============================================*/
.form-group {
  margin-bottom: var(--space-5);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-gray-300);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--bg-surface);
  color: var(--text-white);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-inset-light);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255,255,255,0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-inset-light), 0 0 0 3px var(--primary-light);
  background: var(--bg-elevated);
}

.form-textarea {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  background: var(--bg-surface);
  color: var(--text-white);
  box-shadow: var(--shadow-inset-light);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  color: var(--text-gray-300);
}

select option {
  background: var(--bg-surface);
  color: var(--text-white);
}

/* ============================================
   8. CARDS & SURFACES (Enhanced with Depth)
   ============================================*/
.card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-3);
  margin-bottom: var(--space-7);
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card:active {
  transform: scale(0.99);
}

.card .form-group input {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================
   9. BADGES (Enhanced Colors)
   ============================================*/
.badge {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  display: inline-block;
}

.badge-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.badge-success, .badge-completed, .badge-active {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning, .badge-progress, .badge-supervisor {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-info, .badge-admin {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-new {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-user {
  background: var(--bg-elevated);
  color: var(--text-gray-500);
}

.badge-inactive {
  background: var(--error-light);
  color: var(--error);
}

.role-badge {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
}

.role-supervisor {
  background: var(--warning-light);
  color: var(--warning);
}

.role-user {
  background: var(--primary-light);
  color: var(--primary);
}

/* ============================================
   10. PROGRESS BARS (Enhanced: Sunken Track + Elevated Fill)
   ============================================*/
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  position: relative;
  box-shadow: var(--shadow-xs);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0));
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.progress-fill.completed {
  background: var(--success);
}

.progress-fill.progress {
  background: var(--warning);
}

.progress-fill.new {
  background: var(--primary);
}

.progress-number {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary);
}

.progress-label {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

/* ============================================
   11. STATUS CARDS
   ============================================*/
.card-status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.status-new {
  background: var(--primary-light);
  color: var(--primary);
}

.status-progress {
  background: var(--warning-light);
  color: var(--warning);
}

.status-completed {
  background: var(--success-light);
  color: var(--success);
}

.status-empty {
  background: var(--bg-elevated);
  color: var(--text-gray-500);
}

/* ============================================
   12. EMPTY STATE
   ============================================*/
.empty-state {
  text-align: center;
  padding: var(--space-10);
  color: var(--text-gray-500);
  font-size: var(--text-sm);
}

/* ============================================
   13. TOAST (Enhanced)
   ============================================*/
.toast {
  position: fixed;
  top: var(--space-7);
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--bg-elevated);
  color: #fff;
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  z-index: 3000;
  transition: transform 0.4s var(--ease-bounce);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

/* ============================================
   14. FLOATING NAV SYSTEM (Enhanced)
   ============================================*/
.floating-nav-btn {
  position: fixed;
  top: 40px;
  right: max(16px, calc((100vw - 480px) / 2 + 20px));
  z-index: 2000;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
  padding: 0;
}

.floating-nav-btn:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.floating-nav-btn:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-sm);
}

.floating-nav-btn img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.nav-overlay.active {
  display: block;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 2001;
  transition: right 0.3s var(--ease-bounce);
  overflow-y: auto;
  padding: var(--space-7);
  box-shadow: var(--shadow-xl);
  border-left: 1px solid rgba(255,255,255,0.06);
}

.nav-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
  pointer-events: none;
}

.nav-panel.active {
  right: 0;
}

.nav-panel-close {
  display: block;
  text-align: right;
  color: var(--text-gray-500);
  font-size: var(--text-lg);
  cursor: pointer;
  margin-bottom: var(--space-7);
  background: none;
  border: none;
  width: 100%;
  padding: var(--space-2);
}

.nav-panel-close:hover {
  color: var(--text-white);
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-6);
}

.nav-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  color: var(--text-white);
}

.nav-user-role {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin-bottom: var(--space-2);
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-3);
  color: var(--text-gray-300);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a:active {
  background: var(--bg-elevated);
  color: var(--text-white);
  transform: translateX(var(--space-2));
}

.nav-menu .nav-icon {
  font-size: var(--text-md);
  width: 24px;
  text-align: center;
}

.nav-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: var(--space-5) 0;
}

.nav-logout a {
  color: var(--error) !important;
}

/* ============================================
   15. NOTIFICATION BADGE & STROKE
   ============================================*/
.nav-badge-container {
  position: fixed;
  top: 40px;
  right: max(16px, calc((100vw - 480px) / 2 + 20px));
  z-index: 2001;
  display: inline-block;
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--error);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-2);
  box-shadow: 0 2px 8px var(--error-light);
  z-index: 2002;
  pointer-events: none;
  font-family: var(--font-body);
  line-height: 1;
}

.nav-badge:empty {
  display: none;
}

@keyframes notificationPulse {
  0% {
    box-shadow: 0 0 0 0 var(--error-light);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.nav-badge.pulse {
  animation: notificationPulse 2s infinite;
}

@keyframes notificationStroke {
  0% {
    box-shadow: 0 0 0 0 var(--error-light);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
  }
}

.floating-nav-btn.notif-stroke {
  animation: notificationStroke 2s ease-out;
}

/* ============================================
   16. MODAL (Enhanced with Animation)
   ============================================*/
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-elevated);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: modalSlideIn 0.25s var(--ease-bounce);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal h3 {
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
  color: var(--text-white);
}

.modal .user-list-item {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-gray-300);
  transition: background var(--transition-fast);
}

.modal .user-list-item:active {
  background: var(--bg-elevated);
}

.modal .user-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-right: var(--space-4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: transparent;
}

.modal .user-list-item.selected .user-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.modal-buttons {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  justify-content: flex-end;
}

.modal .form-group label {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.modal .form-group input {
  padding: var(--space-4);
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

/* ============================================
   17. TRAINING CARD (Enhanced)
   ============================================*/
.training-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.training-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all var(--transition-base);
}

.training-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.training-card:active {
  background: var(--bg-highest);
  transform: translateY(0);
}

.training-card h3 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  color: var(--text-white);
}

.training-meta {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.training-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.training-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Training Card - New Style */
.training-card-new {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.training-card-new:hover {
  box-shadow: var(--shadow-md);
}

.training-card-header {
  padding: var(--space-5);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.training-card-header h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin: 0;
  flex: 1;
  padding-right: var(--space-7);
}

.training-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), rgba(0, 68, 153, 0.2));
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.training-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training-thumb-placeholder {
  font-size: 40px;
  opacity: 0.5;
}

.expand-icon-training {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  transition: transform var(--transition-base);
}

.training-card-new.training-open .expand-icon-training {
  transform: rotate(180deg);
}

.training-expanded {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.training-expanded-inner {
  padding: var(--space-2);
}

.training-loading {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-gray-500);
  font-size: var(--text-sm);
}

.training-card-footer {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.training-card-footer .training-meta {
  font-size: var(--text-xs);
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  color: var(--text-gray-500);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.training-card-footer .training-meta span {
  color: var(--text-gray-300);
}

.training-card-footer .progress-bar {
  height: 4px;
  margin-bottom: var(--space-2);
}

.training-card-footer .card-status {
  font-size: var(--text-xs);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

/* Training Card Compact (Completed) */
.training-card-compact {
  background: var(--success-light);
  border: 1px solid var(--success-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  opacity: 0.85;
  box-shadow: var(--shadow-sm);
}

.training-card-compact h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--success);
  margin: 0 0 var(--space-2) 0;
}

.training-card-compact .training-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Training Hero */
.training-hero {
  background: var(--primary-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.training-hero h2 {
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-3);
  border: none;
  padding: 0;
}

.training-hero .meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Lesson item backgrounds by training status */
.training-incomplete .lesson-list-item {
    background: rgba(220, 53, 69, 0.06);
    border-color: rgba(220, 53, 69, 0.12);
}
.training-completed-card .lesson-list-item {
    background: rgba(40, 167, 69, 0.06);
    border-color: rgba(40, 167, 69, 0.12);
}

/* ============================================
   18. DEADLINE
   ============================================*/
.deadline-row {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-xs);
  color: var(--warning);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.deadline-row span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-semibold);
}

/* ============================================
   19. LESSONS LIST WIDGET (Enhanced)
   ============================================*/
.lessons-list-widget {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lesson-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.lesson-list-item:hover {
  background: var(--bg-highest);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.lesson-list-item:active {
  background: var(--bg-highest);
}

/*
.lesson-list-cover {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}
*/

.lesson-list-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.lesson-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lesson-list-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary-light), rgba(0, 68, 153, 0.3));
  color: rgba(255, 255, 255, 0.6);
}

/*
.lesson-list-info {
  flex: 1;
  min-width: 0;
}
*/

.lesson-list-info {
    flex: 1;
    min-width: 0;
}

.lesson-list-title {
    width: 100%;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-white);
    margin-bottom: var(--space-1);
}

/*
.lesson-list-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  display: flex;
  gap: var(--space-4);
}
*/

.lesson-list-meta {
    font-size: var(--text-xs);
    color: var(--text-gray-500);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.lesson-list-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lesson-list-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.lesson-list-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-inset-light);
}

.lesson-list-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.lesson-list-fill.completed {
  background: var(--success);
}

.lesson-list-fill.progress {
  background: var(--warning);
}

.lesson-list-fill.new {
  background: var(--primary);
}

.lesson-list-pct {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--text-gray-500);
  min-width: 36px;
  text-align: right;
}

.lesson-list-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--text-sm);
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.lesson-list-link:active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   20. USER & UNIT CARDS (Enhanced)
   ============================================*/
.user-list {
  margin-top: var(--space-4);
}

.user-card {
  display: flex;
  align-items: center;
  padding: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.user-card:last-child {
  border-bottom: none;
}

.user-card:active {
  background: var(--bg-elevated);
  transform: scale(0.99);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-right: 14px;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
}

.user-email {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.user-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-top: var(--space-2);
}

.user-badges {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.user-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.user-progress {
  text-align: right;
  flex-shrink: 0;
}

.user-group-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  font-weight: var(--font-bold);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

/* User Item (selectable) */
.user-item {
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-gray-300);
}

.user-item:last-child {
  border-bottom: none;
}

.user-item:active {
  background: var(--bg-elevated);
}

.user-check {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-right: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  font-weight: var(--font-bold);
  color: transparent;
}

.user-item.selected .user-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* User Card Clickable */
.user-card-clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-card-clickable:active {
  background: var(--bg-elevated);
  transform: scale(0.99);
}

.expand-icon {
  font-size: var(--text-base);
  color: var(--text-gray-500);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.user-card.open .expand-icon {
  transform: rotate(180deg);
}

/* Unit Card */
.unit-list {
  margin-top: var(--space-4);
}

.unit-card {
  display: flex;
  align-items: center;
  padding: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: var(--space-4);
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.unit-card:hover {
  background: var(--bg-elevated);
}

.unit-card:last-child {
  border-bottom: none;
}

.unit-info {
  flex: 1;
  min-width: 0;
}

.unit-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-white);
}

.unit-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-top: var(--space-2);
}

.unit-users {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--primary);
  background: var(--primary-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-right: var(--space-3);
}

.unit-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ============================================
   21. USER DETAIL (Supervisor Expand)
   ============================================*/
.user-detail {
  display: none;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-4) 0 var(--space-5) 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-inset-light);
}

.user-detail.open {
  display: block;
}

.user-detail .mini-hero {
  background: var(--primary-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.user-detail .mini-hero h4 {
  color: var(--primary);
  font-size: var(--text-base);
  margin: 0 0 var(--space-3);
}

.user-detail .mini-hero .meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.lesson-detail-item {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: var(--space-4);
}

.lesson-detail-item:last-child {
  border-bottom: none;
}

.lesson-detail-info {
  flex: 1;
  min-width: 0;
}

.lesson-detail-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
}

.lesson-detail-progress {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-top: var(--space-2);
}

.lesson-detail-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
  overflow: hidden;
  box-shadow: var(--shadow-inset-light);
}

.lesson-detail-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.lesson-detail-fill.completed {
  background: var(--success);
}

.lesson-detail-fill.progress {
  background: var(--warning);
}

.lesson-detail-fill.new {
  background: var(--primary);
}

.lesson-detail-pct {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--primary);
  min-width: 42px;
  text-align: right;
}

/* Audio no detalhe */
.audio-list {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.audio-list .audio-title {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--text-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-4);
}

.audio-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.audio-item .audio-lesson {
  font-size: var(--text-xs);
  color: var(--text-gray-300);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-item audio {
  height: 28px;
  width: 180px;
  flex-shrink: 0;
}

.audio-inline {
  padding: var(--space-2) var(--space-4) var(--space-4) var(--space-4);
  margin-top: -4px;
}

.audio-inline .audio-item {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
}

.audio-inline .audio-lesson {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.audio-inline audio {
  height: 24px;
  width: 160px;
}

.no-audio {
  font-size: var(--text-xs);
  color: var(--text-gray-600);
  text-align: center;
  padding: var(--space-4);
}

/* Fotos no detalhe */
.foto-inline {
  padding: var(--space-2) var(--space-4) var(--space-4) var(--space-4);
}

.foto-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.foto-lesson {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foto-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition-fast);
}

.foto-thumb:hover {
  border-color: var(--primary);
}

/* ============================================
   22. WIDGET - EQUIPE (Collapsible por Depto)
   ============================================*/
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.team-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-highest);
}

.team-card:active {
  transform: translateY(0);
  background: var(--bg-highest);
}

.team-card.me {
  border: 2px solid var(--primary);
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-3);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.team-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-name {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-white);
  line-height: 1.2;
}

.team-role {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-top: var(--space-1);
}

.team-me-badge {
  color: var(--primary);
  font-size: var(--text-xs);
}

.team-new-badge {
  font-size: var(--text-xs);
  color: #e67e22;
  margin-top: var(--space-2);
}

.newcomer-card {
  opacity: 0.8;
}

.dept-block {
  margin-bottom: var(--space-5);
}

.dept-block-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  font-weight: var(--font-bold);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.dept-block-header .arrow {
  font-size: var(--text-xs);
  transition: transform var(--transition-base);
}

.dept-block.collapsed .team-grid {
  display: none;
}

.dept-block.collapsed .arrow {
  transform: rotate(-90deg);
}

/* ============================================
   23. WIDGET - EVENTOS (Grid 2 colunas)
   ============================================*/
.eventos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.evento-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.evento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-highest);
}

.evento-card-icon {
  font-size: 24px;
  margin-bottom: var(--space-2);
}

.evento-card-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-white);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.evento-card-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.eventos-ver-todos {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  text-decoration: none;
}

/* Event Mini Card */
.event-mini-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-white);
}

/* ============================================
   24. WIDGET - VAGAS
   ============================================*/
.vagas-widget-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.vaga-card-full {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.vaga-card-full:hover {
  box-shadow: var(--shadow-md);
}

.vaga-card-image {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), rgba(0, 68, 153, 0.15));
}

.vaga-card-image img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.vaga-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.vaga-card-body {
  padding: var(--space-5);
}

.vaga-card-cargo {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin-bottom: var(--space-3);
}

.vaga-card-unit,
.vaga-card-dept,
.vaga-card-sexo {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-bottom: var(--space-2);
}

.vaga-card-share {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vaga-share-title {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.vaga-share-btns {
  display: flex;
  gap: var(--space-3);
}

.vaga-share-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-gray-300);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  flex: 1;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.vaga-share-btn .icon {
  font-size: var(--text-sm);
}

.vaga-share-btn .label {
  font-weight: var(--font-medium);
}

.vaga-share-btn:active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(0.97);
}

/* ============================================
   25. WIDGET - ANIVERSARIANTES
   ============================================*/
.birthday-widget-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--space-4);
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.birthday-widget-card:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}

.birthday-widget-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #8e44ad, #6c3483);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.birthday-widget-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.birthday-widget-info {
  flex: 1;
  min-width: 0;
}

.birthday-widget-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
}

.birthday-widget-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-bottom: var(--space-3);
}

/* Birthday Card (Agenda) */
.birthday-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: flex-start;
}

.birthday-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.birthday-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.birthday-info {
    flex: 1;
    min-width: 0;
}

.birthday-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-white);
}

.birthday-meta {
    font-size: var(--text-xs);
    color: var(--text-gray-500);
}

.birthday-comments {
    width: 100%;
    margin-top: var(--space-2);
}

/* ============================================
   26. WIDGET - NOVOS COLABORADORES
   ============================================*/
.novos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.novo-card {
  background: var(--success-light);
  border: 1px solid var(--success-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.novo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.novo-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--success), #1e7e34);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-4);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.novo-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
}

.novo-nome {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
  margin-bottom: var(--space-1);
}

.novo-cargo {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-bottom: var(--space-3);
}

.novo-badge {
  font-size: var(--text-xs);
  color: var(--success);
  font-weight: var(--font-semibold);
}

.novo-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.novo-card-link:active .novo-card {
  background: rgba(16, 185, 129, 0.15);
  transform: scale(0.97);
}

/* ============================================
   27. COMUNICADOS - Widget & Destaque
   ============================================*/
.comunicado-widget-item {
  display: flex;
  align-items: center;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  gap: var(--space-4);
  text-decoration: none;
  color: var(--text-white);
  transition: all var(--transition-base);
}

.comunicado-widget-item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}

.comunicado-widget-item.unread {
  border-left: 4px solid var(--error);
}

.comunicado-widget-icon {
  font-size: 20px;
}

.comunicado-widget-content {
  flex: 1;
}

.comunicado-widget-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--text-white);
}

.comunicado-widget-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.badge-novo {
  background: var(--error);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
}

.comunicado-ver-todos {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  text-decoration: none;
}

/* Comunicado Destaque */
.comunicado-destaque {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--warning);
  color: var(--text-white);
  transition: all var(--transition-base);
}

.comunicado-destaque:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.comunicado-prioridade-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(253, 235, 208, 0.15);
  color: #f0c27a;
  margin-bottom: var(--space-4);
}

.comunicado-titulo {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--text-white);
}

.comunicado-meta {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-bottom: var(--space-4);
}

.comunicado-video-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto var(--space-5);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-md);
}

.comunicado-video-container iframe,
.comunicado-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

.comunicado-audio {
  width: 100%;
  margin-bottom: var(--space-5);
}

.comunicado-mensagem {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-5);
  max-height: 120px;
  overflow-y: auto;
  color: var(--text-gray-300);
}

.comunicado-anexos {
  margin-bottom: var(--space-4);
}

.comunicado-anexo-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  text-decoration: none;
  color: var(--text-gray-300);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-sm);
}

.btn-confirmar-leitura {
  display: block;
  width: 100%;
  padding: var(--space-5);
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.btn-confirmar-leitura:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-confirmado {
  background: #6c757d;
}

/* ============================================
   28. COMUNICADOS - Comentários
   ============================================*/
.comentarios-section {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comentarios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-gray-300);
  margin-bottom: var(--space-2);
}

.btn-toggle-comentarios {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray-500);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
}

.comentarios-list {
  margin-bottom: var(--space-4);
}

.comentario-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: flex-start;
}

.comentario-item:last-child {
  border-bottom: none;
}

.comentario-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.comentario-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comentario-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.comentario-nome {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-white);
}

.comentario-dept {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  font-weight: var(--font-normal);
}

.comentario-texto {
  font-size: var(--text-xs);
  color: var(--text-gray-300);
  margin-top: var(--space-1);
  line-height: var(--leading-normal);
}

.comentario-data {
  font-size: var(--text-xs);
  color: var(--text-gray-600);
  margin-top: var(--space-1);
}

.comentario-vazio {
  text-align: center;
  color: var(--text-gray-600);
  font-size: var(--text-xs);
  padding: var(--space-5);
}

.comentario-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.comentario-form textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    background: var(--bg-surface);
    color: var(--text-white);
    resize: vertical;
    min-height: 36px;
    font-family: inherit;
    box-shadow: var(--shadow-inset-light);
}
.comentario-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.btn-enviar-comentario {
    padding: var(--space-3) var(--space-5);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    align-self: flex-end;
}

.btn-enviar-comentario:active {
  background: var(--primary-hover);
  transform: scale(0.96);
}

.comentario-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--success);
  color: #fff;
  padding: var(--space-5) var(--space-7);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  z-index: 4000;
  transition: transform 0.4s var(--ease-bounce);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.comentario-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   29. AGENDA - Calendar & Events
   ============================================*/
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.month-nav h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin: 0;
  border: none;
  padding: 0;
}

.month-nav a {
  text-decoration: none;
  font-size: 20px;
  padding: var(--space-4);
  color: var(--primary);
}

.calendar {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--space-1);
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--primary-light);
  color: var(--primary);
  text-align: center;
  padding: var(--space-4) 0;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  padding: var(--space-4) var(--space-1);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 50px;
  font-size: var(--text-sm);
  color: var(--text-gray-300);
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day.empty {
  background: rgba(255, 255, 255, 0.02);
}

.calendar-day.today {
  font-weight: var(--font-bold);
  color: var(--text-white);
  position: relative;
}

.calendar-day.today::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.day-number {
  display: block;
  margin-bottom: var(--space-1);
}

.day-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 1px;
}

.event-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.event-card:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}

.event-color {
  width: 4px;
  min-height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  align-self: stretch;
}

.event-info {
  flex: 1;
}

.event-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
  margin-bottom: var(--space-1);
}

.event-date {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.event-desc {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-top: var(--space-2);
}

.event-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
}

.badge-feriado {
  background: var(--error-light);
  color: var(--error);
}

.badge-aniversario {
  background: rgba(142, 68, 173, 0.2);
  color: #bb8fce;
}

.badge-reuniao {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-comemoracao {
  background: var(--success-light);
  color: var(--success);
}

.badge-treinamento {
  background: var(--warning-light);
  color: var(--warning);
}

.btn-add {
  display: block;
  width: 100%;
  padding: var(--space-5);
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   30. FINAL VIDEO (Player + Modal)
   ============================================*/
.final-video-info {
  text-align: center;
  color: #fff;
  padding: var(--space-8) var(--space-6) var(--space-4);
}

.final-video-info h1,
.final-video-info h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.final-video-info p {
  font-size: var(--text-sm);
  color: var(--text-gray-500);
  margin: 0;
}

.final-video-player {
  width: 90%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.final-video-player video {
  width: 100%;
  display: block;
}

.final-video-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
}

.final-video-overlay.active {
  display: flex;
}

.final-video-modal {
  width: 70%;
  max-width: 340px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-video-empty {
  text-align: center;
  color: var(--text-gray-500);
  padding: 40px;
  font-size: var(--text-sm);
}

.final-video-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--error);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-7);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  line-height: 1;
  padding: 0;
}

.final-video-close:active {
  transform: scale(0.92);
  background: #c82333;
}

.btn-final-video {
  display: block;
  width: 100%;
  padding: var(--space-4);
  margin-top: -8px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition-base);
  z-index: 10;
  position: relative;
}

.btn-final-video:hover {
  background: #218838;
}

.btn-final-video:active {
  background: #1e7e34;
  transform: scale(0.98);
}

.btn-final-assistir {
  background: var(--success);
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  border: none;
  cursor: pointer;
  color: #fff;
  margin-top: var(--space-2);
  transition: background var(--transition-base);
}

/* ============================================
   31. RECORDER (Gravar Considerações)
   ============================================*/
.recorder-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30px;
}

.recorder-container {
  width: 90%;
  max-width: 420px;
  text-align: center;
}

.recorder-back {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  z-index: 2001;
  background: var(--bg-elevated);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.recorder-subtitle {
  font-size: var(--text-sm);
  color: var(--text-gray-500);
  margin-bottom: var(--space-6);
}

.video-preview {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #000;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-xl);
}

.video-preview-hidden {
  display: none;
}

.recorder-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.recorder-actions-hidden {
  display: none;
}

.btn-record {
  background: var(--error);
  color: #fff;
  border: none;
  padding: var(--space-5) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.btn-record:active {
  transform: scale(0.96);
}

.btn-record.recording {
  background: #c0392b;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--error-light);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
}

.btn-save-recorder {
  background: var(--success);
  color: #fff;
  border: none;
  padding: var(--space-5) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
}

.btn-rerecord {
  background: var(--warning);
  color: #333;
  border: none;
  padding: var(--space-5) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
}

.recording-status {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-gray-300);
  min-height: 20px;
}

.upload-progress {
  display: none;
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  margin-top: var(--space-5);
  overflow: hidden;
}

.upload-progress-active {
  display: block;
}

.upload-progress-fill {
  height: 100%;
  background: var(--success);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--transition-slow);
}

/* ============================================
   32. NOTIFICATION TOAST
   ============================================*/
.notif-toast-container {
  position: fixed;
  top: 100px;
  right: 16px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 300px;
}

.notif-toast {
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  cursor: pointer;
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-bounce);
  box-shadow: var(--shadow-lg);
}

.notif-toast.show {
  transform: translateX(0);
}

.notif-toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notif-toast-content {
  flex: 1;
  min-width: 0;
}

.notif-toast-title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin-bottom: var(--space-1);
}

.notif-toast-text {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  line-height: 1.3;
}

/* ============================================
   33. FILTERS & PAGINATION (Enhanced)
   ============================================*/
.filter-tabs {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.filter-tab {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-surface);
  text-decoration: none;
  color: var(--text-gray-500);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.filter-tab:hover {
  background: var(--bg-elevated);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.filter-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.pagination {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

.pagination a,
.pagination span {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
}

.pagination a {
  background: var(--bg-elevated);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.pagination a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pagination span {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   34. STATS DASHBOARD (Enhanced)
   ============================================*/
.stats-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.stat-mini {
  flex: 1;
  min-width: 65px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.stat-mini:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.stat-mini .num {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
}

.stat-mini .lbl {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  margin-top: var(--space-1);
  text-transform: uppercase;
  font-weight: var(--font-semibold);
}

.stats-row-top {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.stats-row-top .stat-card {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stats-row-bottom {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stats-row-bottom .stat-card {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stats-row-bottom .stat-number {
  font-size: var(--text-xl);
}

.stats-row-bottom .stat-label {
  font-size: var(--text-xs);
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-highest);
}

.stat-card:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  line-height: var(--leading-tight);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  text-transform: uppercase;
  font-weight: var(--font-semibold);
  letter-spacing: 0.5px;
}

/* ============================================
   35. ADMIN DASHBOARD
   ============================================*/
.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-list-item:last-child {
  border-bottom: none;
}

.item-title {
  font-weight: var(--font-semibold);
  color: var(--text-white);
}

.item-sub {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.section-link {
  float: right;
  font-size: var(--text-xs);
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-semibold);
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

/* ============================================
   36. LESSONS ADMIN
   ============================================*/
.lesson-list {
  margin-top: var(--space-4);
}

.lesson-card {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.lesson-card:last-child {
  border-bottom: none;
}

.lesson-card input[type="checkbox"] {
  transform: scale(1.2);
  flex-shrink: 0;
}

.lesson-card:active {
  background: var(--bg-elevated);
}

.lesson-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--text-white);
}

.lesson-category {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.lesson-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.lesson-info {
  flex: 1;
  min-width: 0;
}

.lesson-path {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.lesson-number {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-extrabold);
  font-size: var(--text-base);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.lesson-arrow {
  font-size: var(--text-base);
  color: var(--text-gray-500);
  flex-shrink: 0;
}

.drag-handle {
  cursor: grab;
  color: var(--text-gray-500);
  font-size: var(--text-sm);
  padding: 0 2px;
}

/* Category Grid & Accordion */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.category-option {
  padding: var(--space-3) var(--space-5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-gray-500);
  transition: all var(--transition-base);
}

.category-option:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.category-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.category-accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.category-header-acc {
  display: flex;
  align-items: center;
  padding: var(--space-5);
  background: var(--bg-elevated);
  cursor: pointer;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  gap: var(--space-3);
  color: var(--text-gray-300);
}

.category-arrow {
  transition: transform var(--transition-slow);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.category-accordion.open .category-arrow {
  transform: rotate(90deg);
}

.category-count {
  font-size: var(--text-xs);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-gray-500);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-left: auto;
}

.category-body {
  display: none;
}

.category-accordion.open .category-body {
  display: block;
}

/* Lesson Items */
.lesson-item {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.lesson-name {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-white);
}

.lesson-delete {
  background: none;
  border: none;
  color: var(--error);
  font-size: var(--text-base);
  cursor: pointer;
  padding: var(--space-3);
}

.lesson-new {
  background: var(--primary-light);
  border: 2px dashed var(--primary);
}

.new-badge {
  background: var(--primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-left: var(--space-3);
}

.lesson-select-item {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  gap: var(--space-4);
  font-size: var(--text-sm);
  cursor: pointer;
  color: var(--text-gray-300);
}

.lesson-select-item:active {
  background: var(--bg-elevated);
}

.lesson-select-item.already-added {
  opacity: 0.5;
  pointer-events: none;
}

.lesson-select-item .check-box {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.lesson-select-item.selected .check-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.lesson-select-item .lesson-select-name {
  flex: 1;
}

.preview-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  text-decoration: none;
}

.already-badge {
  font-size: var(--text-xs);
  background: var(--success-light);
  color: var(--success);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
}

/* ============================================
   37. ONBOARDING EDITOR
   ============================================*/
.dept-section.collapsed .dept-body {
  display: none !important;
}

.dept-section.collapsed .dept-arrow {
  transform: rotate(-90deg);
}

.dept-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  font-weight: var(--font-bold);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
  box-shadow: var(--shadow-sm);
}

.dept-arrow {
  font-size: var(--text-xs);
  transition: transform var(--transition-base);
}

.newcomer-header {
  padding: var(--space-4) var(--space-5);
  background: var(--warning-light);
  font-weight: var(--font-bold);
  font-size: var(--text-xs);
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
}

.speaker-preview {
  padding: var(--space-4);
  background: var(--primary-light);
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  display: none;
}

.video-select-item {
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: var(--space-4);
  font-size: var(--text-sm);
  cursor: pointer;
  color: var(--text-gray-300);
}

.video-select-item:active {
  background: var(--bg-elevated);
}

.check-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.video-select-item.selected .check-indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.video-select-name {
  flex: 1;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.added-video-item {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.added-video-name {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-white);
}

.user-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.user-pill {
  background: var(--bg-elevated);
  color: var(--text-gray-500);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.user-pill.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.user-pill:active {
  transform: scale(0.96);
}

/* ============================================
   38. PHOTO UPLOAD
   ============================================*/
.photo-upload-area {
  margin-top: var(--space-4);
}

.photo-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  color: var(--text-gray-500);
  background: var(--bg-surface);
}

.photo-placeholder:hover {
  border-color: var(--primary);
}

.photo-preview {
  position: relative;
  max-width: 200px;
  margin: 0 auto;
}

.photo-preview img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  max-height: 200px;
  box-shadow: var(--shadow-md);
}

.photo-reset-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--error);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.photo-loading {
  display: none;
  text-align: center;
  padding: var(--space-8);
  color: var(--text-gray-500);
}

/* ============================================
   39. SEARCH BAR
   ============================================*/
.search-bar {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: center;
}

.search-bar input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--bg-surface);
  color: var(--text-white);
  box-shadow: var(--shadow-inset-light);
  transition: all var(--transition-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-inset-light), 0 0 0 3px var(--primary-light);
  background: var(--bg-elevated);
}

.btn-add-user {
  padding: var(--space-4) var(--space-6);
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.btn-add-user:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   40. MESSAGES
   ============================================*/
.message {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
}

.message.success {
  background: var(--success-light);
  color: var(--success);
}

.message.error {
  background: var(--error-light);
  color: var(--error);
}

/* ============================================
   41. PROFILE PAGE
   ============================================*/
.profile-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: var(--font-bold);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name-large {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

.profile-role-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.profile-info-item {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.profile-info-label {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.profile-info-value {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
}

.profile-bio-card,
.profile-frase-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.profile-bio-text {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-gray-300);
}

.profile-frase-text {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--primary);
  text-align: center;
  margin: 0;
}

.profile-video-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-md);
}

.profile-video-container iframe,
.profile-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.profile-banner {
  background: var(--warning-light);
  border: 1px solid var(--warning-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: 0 0 var(--space-6);
  text-align: center;
}

.profile-banner p {
  margin: 0 0 var(--space-4);
  color: var(--warning);
}

.profile-banner .btn-complete {
  display: inline-block;
  background: var(--warning);
  color: var(--bg-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-weight: var(--font-bold);
  text-decoration: none;
}

/* ============================================
   42. VAGA PÁGINA PÚBLICA
   ============================================*/
.vaga-container {
  max-width: 480px;
  margin: 0 auto;
}

.vaga-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  margin-bottom: var(--space-7);
  box-shadow: var(--shadow-sm);
}

.vaga-card img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.vaga-card h1 {
  font-size: var(--text-xl);
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

.vaga-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin: var(--space-5) 0;
}

.vaga-tag {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.vaga-tag.unit {
  background: var(--primary-light);
  color: var(--primary);
}

.vaga-tag.dept {
  background: var(--warning-light);
  color: var(--warning);
}

.vaga-tag.cargo {
  background: var(--success-light);
  color: var(--success);
}

.vaga-tag.sexo {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-gray-300);
}

.vaga-desc {
  font-size: var(--text-sm);
  color: var(--text-gray-500);
  line-height: var(--leading-normal);
  margin: var(--space-5) 0;
}

.vaga-email-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.vaga-email-card h2 {
  font-size: var(--text-base);
  color: var(--text-white);
  margin-bottom: var(--space-5);
  border: none;
  padding: 0;
}

.vaga-email-text {
  font-size: var(--text-sm);
  color: var(--text-gray-300);
  margin-bottom: var(--space-5);
}

.vaga-email-address {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--primary);
  word-break: break-all;
  margin-bottom: var(--space-4);
}

.vaga-email-hint {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.vaga-fechada {
  text-align: center;
  padding: 40px 20px;
}

.vaga-fechada-icon {
  font-size: 48px;
  margin-bottom: var(--space-6);
}

.vaga-fechada h2 {
  font-size: var(--text-lg);
  color: var(--text-white);
  margin-bottom: var(--space-4);
  border: none;
  padding: 0;
}

.vaga-fechada p {
  font-size: var(--text-sm);
  color: var(--text-gray-500);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
}

.btn-cadastro {
  display: inline-block;
  padding: var(--space-5) var(--space-8);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.btn-cadastro:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

body.vaga-page {
  background: var(--bg-base);
  font-family: var(--font-body);
  padding: var(--space-7);
  color: var(--text-white);
}

/* ============================================
   46. NOTIFICAÇÕES PAGE
   ============================================*/
.notificacao-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.notificacao-item:active {
  background: var(--bg-highest);
  transform: scale(0.99);
}

.notificacao-unread {
  border-left: 3px solid var(--error);
}

.notificacao-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.notificacao-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.notificacao-titulo {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
  margin-bottom: var(--space-1);
}

.notificacao-titulo .badge-novo {
  margin-left: var(--space-3);
}

.notificacao-mensagem {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-2);
}

.notificacao-data {
  font-size: var(--text-xs);
  color: var(--text-gray-600);
}

.notificacao-archive {
  font-size: var(--text-base);
  color: var(--text-gray-500);
  text-decoration: none;
  flex-shrink: 0;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}

.notificacao-archive:hover {
  color: var(--warning);
}

/* ============================================
   WIDGET SPACING - Padronizado
   ============================================*/
.widget-section {
  scroll-margin-top: 60px;
  margin-bottom: 60px;
}

.widget-section:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-head h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin: 0;
  padding: 0;
  border: none;
}

/* ============================================
   47. HOME PAGE - Hero & Categories
   ============================================*/
.hero-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: radial-gradient(circle at 20% 15%, #133755 0%, #05182f 40%, #041121 100%);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin: var(--space-5) var(--space-6) 0;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
  background-color: #0a213d;
}

.hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--darkmode-text-primary);
  line-height: var(--leading-tight);
}

.hero-subtitle {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--darkmode-text-secondary);
  line-height: var(--leading-normal);
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.metric {
  background: rgba(56, 80, 106, 0.12);
  border: 1px solid rgba(56, 80, 106, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-1);
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--darkmode-text-secondary);
}

.metric-value {
  font-size: var(--text-lg);
  color: var(--darkmode-highlight-strong);
  font-family: var(--font-heading);
}

.categories-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}

.category-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid rgba(56, 80, 106, 0.14);
  transition: all var(--transition-base);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-thumb {
  width: 90px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #dfe8f2;
}

.category-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-content {
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.category-title {
  margin: 0;
  color: var(--text-primary-legacy);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
}

.category-button {
  justify-self: start;
  border: 0;
  border-radius: var(--radius-lg);
  background: #14324f;
  color: #edf5ff;
  font-family: var(--font-heading);
  font-weight: var(--font-extrabold);
  font-size: var(--text-xs);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.category-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.dept-block.collapsed .user-list {
  display: none !important;
}

/* ============================================
   48. ADMIN LESSONS - Category Pills & Filters
   ============================================*/
.filter-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.filter-btn {
  padding: var(--space-3) var(--space-5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-gray-500);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.folder-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.folder-item {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  gap: var(--space-4);
  color: var(--text-gray-300);
}

.folder-item:hover {
  background: var(--bg-elevated);
}

.folder-item input[type="checkbox"] {
  margin-right: var(--space-2);
  transform: scale(1.2);
}

.folder-item label {
  flex: 1;
  cursor: pointer;
  font-weight: normal;
  margin: 0;
}

.bulk-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.bulk-actions .btn {
  width: auto;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
}

.draggable-row {
  cursor: grab;
}

.draggable-row.dragging {
  opacity: 0.5;
}

.draggable-row.drag-over {
  border-top: 2px solid var(--primary);
}

/* ============================================
   49. ADMIN CHECKPOINTS PAGE
   ============================================*/
.checkpoint-list-item {
  display: flex;
  align-items: center;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: var(--space-4);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.checkpoint-list-item:active {
  background: var(--bg-highest);
  transform: scale(0.99);
}

.checkpoint-list-info {
  flex: 1;
  min-width: 0;
}

.checkpoint-list-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-white);
  margin-bottom: var(--space-1);
}

.checkpoint-list-type {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.checkpoint-list-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.code-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #a0d2a0;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: var(--space-4);
}

.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-top: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.copy-btn.copied {
  background: var(--success);
}

/* ============================================
   43. RESPONSIVE
   ============================================*/
@media (max-width: 640px) {
  body {
    padding: var(--space-1);
  }

  .container {
    padding: var(--space-1);
  }

  .section-block {
    padding: 0 var(--space-4);
  }

  .training-section {
    padding: var(--space-1);
  }

  .admin-grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Reduce shadows on mobile for performance */
  .card,
  .training-card,
  .modal,
  .stat-card,
  .team-card,
  .evento-card {
    box-shadow: var(--shadow-sm);
  }

  .card:hover,
  .training-card:hover,
  .stat-card:hover,
  .team-card:hover,
  .evento-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .btn:hover {
    transform: none;
  }

  .filter-tab:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .audio-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .audio-item audio {
    width: 100%;
  }

  .toast {
    white-space: normal;
    text-align: center;
    max-width: 90%;
  }
}

/* ============================================
   UTILITY CLASSES (New, Non-conflicting)
   ============================================*/
.text-secondary {
  color: var(--text-gray-300);
}

.text-tertiary {
  color: var(--text-gray-500);
}

.bg-surface {
  background: var(--bg-surface);
}

.bg-elevated {
  background: var(--bg-elevated);
}

.m-0 {
  margin: var(--space-0);
}

.m-1 {
  margin: var(--space-2);
}

.m-2 {
  margin: var(--space-4);
}

.m-3 {
  margin: var(--space-6);
}

.mt-1 {
  margin-top: var(--space-2);
}

.mt-2 {
  margin-top: var(--space-4);
}

.mt-3 {
  margin-top: var(--space-6);
}

.mb-1 {
  margin-bottom: var(--space-2);
}

.mb-2 {
  margin-bottom: var(--space-4);
}

.mb-3 {
  margin-bottom: var(--space-6);
}

.p-0 {
  padding: var(--space-0);
}

.p-1 {
  padding: var(--space-2);
}

.p-2 {
  padding: var(--space-4);
}

.p-3 {
  padding: var(--space-6);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: var(--space-2);
}

.gap-2 {
  gap: var(--space-4);
}

.gap-3 {
  gap: var(--space-6);
}

.text-center {
  text-align: center;
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ============================================
   50. BIRTHDAY FESTIVE WIDGET (Dashboard)
   ============================================*/
.birthday-festive-card {
    border-radius: 16px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.birthday-festive-header-wrapper {
    background: #0066cc;
    padding: 14px;
    border-radius: 16px 16px 0 0;
}
.birthday-festive-body {
    padding: 12px 14px 14px;
}
.birthday-festive-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.birthday-festive-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #8e44ad, #e74c3c);
    flex-shrink: 0;
}
.birthday-festive-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.birthday-festive-info {
    flex: 1;
}
.birthday-festive-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.birthday-festive-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* Pills */
.birthday-festive-greetings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.birthday-festive-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 10px 8px;
    min-width: 56px;
}
.birthday-festive-pill-icon {
    font-size: 32px;
    line-height: 1;
}
.birthday-festive-pill-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 9px;
    overflow: hidden;
    flex-shrink: 0;
}
.birthday-festive-pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.birthday-festive-pill-more {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-align: center;
}

/* Botão */
.birthday-festive-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 28px;
    background: #0066cc;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.birthday-festive-btn:hover {
    background: rgba(26, 26, 46, 1);
    border-color: rgba(255,255,255,0.4);
}
.birthday-festive-btn:active {
    transform: scale(0.97);
}
.birthday-festive-btn:disabled {
    background: rgba(255,255,255,0.08);
    color: #666;
    border-color: rgba(255,255,255,0.05);
    cursor: not-allowed;
}

/* Modal de Ícones */
.birthday-icon-modal {
    text-align: center;
    max-width: 380px;
}
.birthday-icon-modal h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #fff;
}
.birthday-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.birthday-icon-option {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 auto;
}
.birthday-icon-option:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.birthday-icon-option.selected {
    background: linear-gradient(135deg, rgba(142,68,173,0.3), rgba(231,76,60,0.3));
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
    transform: scale(1.15);
}

/* ============================================
   51. BIRTHDAY CAROUSEL - My Birthday
   ============================================*/
.birthday-carousel-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    margin-bottom: 28px;
}
.birthday-carousel-icon {
    font-size: 150px;
    line-height: 1;
    margin: 16px auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.birthday-carousel-avatars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.birthday-carousel-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.45;
    transform: scale(0.65);
    border: 5px solid transparent;
    background: linear-gradient(135deg, #8e44ad, #e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.birthday-carousel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.birthday-carousel-avatar.active {
    opacity: 1;
    transform: scale(1.15);
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}
.birthday-carousel-message {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 15px;
    color: #2d2d2d;
    line-height: 1.5;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}
.birthday-carousel-sender {
    font-size: 14px;
    font-weight: 700;
    color: #8e44ad;
    margin: 10px 0 18px;
}
.birthday-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.birthday-carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.birthday-carousel-arrow:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}
.birthday-carousel-arrow:active {
    transform: scale(0.95);
}
.birthday-carousel-counter {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* ============================================
   52. HERO IMPACT WIDGET - Meu Impacto
   ============================================*/
.hero-widget {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    position: relative;
    margin: 0 auto 28px auto;
    overflow: hidden;
}

.hero-top-card {
    height: calc(100vh - 110px);
    border-radius: 40px;
    position: relative;
    z-index: 2;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.hero-top-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 700px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    border-radius: 0 0 40px 40px;
    pointer-events: none;
}

.hero-top-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0bc496;
    z-index: 5;
}

/* Logo da unidade no topo */
.hero-logo-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 80px;
    width: auto;
    z-index: 4;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Bloco inspirador */
.hero-inspire-block {
    position: absolute;
    left: 26px;
    bottom: 45px;
    z-index: 3;
    text-align: left;
}

.hero-inspire-name {
    font-family: 'Reenie Beanie', cursive;
    font-size: 40px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    opacity: 0.9;
}

.hero-inspire-unit {
    font-size: 34px;
    font-weight: 800;
    color: #ffd700;
    line-height: 1.0;
    margin-bottom: 4px;
    text-shadow: 0 3px 16px rgba(0,0,0,0.7);
}

.hero-inspire-text {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-inspire-stars {
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero-inspire-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Métricas */
.hero-metrics-vertical {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 16px;
    justify-content: start;
}

.hero-metric-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero-metric-num {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 4px 10px;
    font-weight: 700;
    color: #ffd700;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Footer verde */
.hero-footer-bar {
    height: 220px;
    background: #0bc496;
    border-radius: 0 0 40px 40px;
    margin-top: -110px;
    position: relative;
    z-index: 1;
}

.hero-footer-bar::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: inherit;
    z-index: 5;
}

/* Botão redondo central */
.hero-round-btn {
    position: absolute;
    top: calc(100% - 33px);
    left: 50%;
    transform: translateX(-50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #033916;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 3px solid #0bc496;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-round-btn svg {
    width: 26px;
    height: 26px;
}

/* Navbar de atalhos */
.hero-navbar {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    z-index: 20;
}

.hero-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none;
}

.hero-nav-btn:active {
    transform: scale(0.92);
}

.hero-nav-btn:nth-child(2) { margin-left: -20px; }
.hero-nav-btn:nth-child(3) { margin-right: -20px; }

.icon-outline {
    width: 26px;
    height: 26px;
    stroke: #ffd700;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   52. HERO IMPACT WIDGET - Meu Impacto
   ============================================*/
.hero-widget {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    position: relative;
    margin: 0 auto 28px auto;
}

.hero-top-card {
    height: calc(100vh - 110px);
    height: calc(100dvh - 110px);
    border-radius: 40px;
    position: relative;
    z-index: 2;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.hero-top-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0bc496;
    z-index: 5;
}

.hero-logo-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 80px;
    width: auto;
    z-index: 4;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.hero-inspire-block {
    position: absolute;
    left: 26px;
    bottom: 45px;
    z-index: 3;
    text-align: left;
}

.hero-inspire-name {
    font-family: 'Reenie Beanie', cursive;
    font-size: 40px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    opacity: 0.9;
}

.hero-inspire-unit {
    font-size: 34px;
    font-weight: 800;
    color: #ffd700;
    line-height: 1.0;
    margin-bottom: 4px;
    text-shadow: 0 3px 16px rgba(0,0,0,0.7);
}

.hero-inspire-text {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-inspire-stars {
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero-inspire-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-metrics-vertical {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 16px;
    justify-content: start;
}

.hero-metric-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero-metric-num {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 4px 10px;
    font-weight: 700;
    color: #ffd700;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-footer-bar {
    height: 220px;
    background: #0bc496;
    border-radius: 0 0 40px 40px;
    margin-top: -110px;
    position: relative;
    z-index: 1;
}

.hero-footer-bar::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: inherit;
    z-index: 5;
}

.hero-round-btn {
    position: absolute;
    top: calc(100vh - 110px - 33px);
    top: calc(100dvh - 110px - 33px);
    left: 50%;
    transform: translateX(-50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #033916;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 3px solid #0bc496;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-round-btn svg {
    width: 26px;
    height: 26px;
}

.hero-navbar {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    z-index: 20;
}

.hero-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none;
}

.hero-nav-btn:active { transform: scale(0.92); }
.hero-nav-btn:nth-child(2) { margin-left: -20px; }
.hero-nav-btn:nth-child(3) { margin-right: -20px; }

.icon-outline {
    width: 26px;
    height: 26px;
    stroke: #ffd700;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-camera-btn {
    position: absolute;
    bottom: 40px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #c0392b;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.hero-camera-btn:hover {
    background: #e74c3c;
    transform: scale(1.05);
}
.hero-camera-btn:active {
    transform: scale(0.92);
}

.calendar-day.has-event .day-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,102,204,0.3);
    color: #fff;
    font-weight: 700;
}

.calendar-day .day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.calendar-day.has-birthday .day-number {
    background: rgba(142,68,173,0.4);
}

/* Today - Blue circle #0066cc, font 50% larger */
.calendar-day.today .day-number {
    background: #0066cc;
    color: #fff;
    font-weight: 700;
    font-size: 150%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Event - Pink circle (🩷) */
.calendar-day.has-event:not(.has-birthday):not(.has-feriado) .day-number {
    background: rgba(255, 105, 180, 0.40);
    color: #fff;
    font-weight: 700;
}

/* Birthday - Mustard circle (🟡) */
.calendar-day.has-birthday:not(.has-event):not(.has-feriado) .day-number {
    background: rgba(218, 165, 32, 0.50);
    color: #fff;
    font-weight: 700;
}

/* Holiday - Peach/Orange circle (🟠) */
.calendar-day.has-feriado:not(.has-birthday):not(.has-event) .day-number {
    background: rgba(255, 140, 66, 0.45);
    color: #fff;
    font-weight: 700;
}

/* Birthday + Event → Mustard center, Pink stroke */
.calendar-day.has-birthday.has-event:not(.has-feriado) .day-number {
    background: rgba(218, 165, 32, 0.50);
    border: 3px solid rgba(255, 105, 180, 0.60);
    color: #fff;
    font-weight: 700;
    width: 30px;
    height: 30px;
    box-sizing: content-box;
}

/* Birthday + Holiday → Mustard center, Peach stroke */
.calendar-day.has-birthday.has-feriado:not(.has-event) .day-number {
    background: rgba(218, 165, 32, 0.50);
    border: 3px solid rgba(255, 140, 66, 0.60);
    color: #fff;
    font-weight: 700;
    width: 30px;
    height: 30px;
    box-sizing: content-box;
}

/* Holiday + Event (no birthday) → Peach center, Pink stroke */
.calendar-day.has-feriado.has-event:not(.has-birthday) .day-number {
    background: rgba(255, 140, 66, 0.45);
    border: 3px solid rgba(255, 105, 180, 0.60);
    color: #fff;
    font-weight: 700;
    width: 30px;
    height: 30px;
    box-sizing: content-box;
}

/* Birthday + Holiday + Event (all three) → Mustard center, Pink stroke */
.calendar-day.has-birthday.has-feriado.has-event .day-number {
    background: rgba(218, 165, 32, 0.50);
    border: 3px solid rgba(255, 105, 180, 0.60);
    color: #fff;
    font-weight: 700;
    width: 30px;
    height: 30px;
    box-sizing: content-box;
}

/* ============================================
   COMUNICADOS LIST - Clean single card
   ============================================*/
.comunicado-list-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
}

.comunicado-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    text-decoration: none;
    color: var(--text-white);
    transition: background var(--transition-fast);
}

.comunicado-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comunicado-list-item.unread {
    border-left: 3px solid var(--primary);
    padding-left: calc(var(--space-5) - 3px);
}

.comunicado-list-icon {
    font-size: 18px;
    opacity: 0.6;
    flex-shrink: 0;
}

.comunicado-list-content {
    flex: 1;
    min-width: 0;
}

.comunicado-list-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.comunicado-list-meta {
    font-size: var(--text-xs);
    color: var(--text-gray-500);
    margin-top: var(--space-1);
}

.comunicado-list-arrow {
    color: var(--text-gray-500);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.comunicado-list-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 var(--space-5);
}

.badge-novo-soft {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.video-lesson-container { 
    padding-top: 20px; 
    min-height: auto; 
}

/* Navigation */
.player-nav-vertical .player-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    color: #fff;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.player-nav-vertical .player-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: none !important;
}

.player-nav-vertical .player-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.player-nav-vertical .player-btn::after {
    display: none !important;
}

/* ============================================
   53. ONBOARDING / VIDEO PLAYER
   ============================================*/
.video-lesson-container {
    padding: 16px 12px 100px 12px;
    min-height: auto;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.video-lesson-container iframe,
.video-lesson-container video,
.video-lesson-container img {
    max-width: 100%;
    height: auto;
}

.video-player {
    width: 240px;
    max-width: 100%;
    margin: 0 auto 16px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}



.video-info-text {
    text-align: center;
    margin-bottom: 16px;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.video-title-divider {
    width: 40px;
    height: 3px;
    background: #0066cc;
    border: none;
    margin: 8px auto;
    border-radius: 2px;
}

.video-subtitle {
    font-size: 14px;
    color: #a1a1aa;
    margin: 0;
    font-weight: 400;
}

.video-nav-bar {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* Floating nav buttons */
.player-nav-vertical {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + 90px), calc(-50% - 243px));
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.player-nav-vertical .player-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
    transform: none;
    position: static;
    outline: none;
    padding: 0;
}

.player-nav-vertical .player-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.player-nav-vertical .player-btn:disabled {
    opacity: 0.25;
    pointer-events: none;
}

.player-nav-vertical .player-btn::before,
.player-nav-vertical .player-btn::after {
    display: none;
}



/* ============================================
   PLAYER FOOTER NAV (player.php)
   ============================================*/
.player-footer {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #dc3545;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.player-footer .player-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
    background: #2d2d2d;
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
    padding: 0;
}

.player-footer .player-btn:hover {
    background: #3d3d3d;
}

.player-footer .player-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.player-footer .player-btn:disabled {
    opacity: 0.25;
    pointer-events: none;
}

.player-footer .player-btn::before,
.player-footer .player-btn::after {
    display: none;
}

.player-footer .player-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 55px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
}

.player-footer .player-btn-close {
    background: rgba(220, 53, 69, 0.3);
}

.player-footer .player-btn-primary {
    background: rgba(0, 102, 204, 0.5);
}

/* ============================================
   54. MOBILE USER CARD (Admin)
   ============================================*/
.user-card {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.user-card .user-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
}

/* ============================================
   55. LOGIN PAGE
   ============================================*/
body.login-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px 20px 20px;
}

.login-container {
    max-width: 400px;
    width: 100%;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
}

.login-brand img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}

.login-brand h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
}

.login-brand p {
    font-size: 12px;
    color: var(--text-gray-500);
    margin: 2px 0 0 0;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-gray-500);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary);
}

/* ============================================
   56. RESET PASSWORD PAGE
   ============================================*/
body.reset-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px 20px 20px;
}

.reset-container {
    max-width: 400px;
    width: 100%;
}

/* ============================================
   57. COMPLETE PROFILE PAGE
   ============================================*/
body.complete-profile-page {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-dark, #0f0f1a);
    color: #fff;
    padding: 16px;
    min-height: 100vh;
}

.complete-profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    padding: 20px 16px;
}

.complete-profile-container h1 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #fff;
}

.complete-profile-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.complete-profile-container .form-group {
    margin-bottom: 20px;
}

.complete-profile-container .form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    display: block;
}

.complete-profile-container .form-group input,
.complete-profile-container .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.complete-profile-container .form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.complete-profile-container .form-group input:focus,
.complete-profile-container .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
}

.complete-profile-container .form-group input::placeholder,
.complete-profile-container .form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.complete-profile-container .btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.complete-profile-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.complete-profile-container .btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-blue {
    background: linear-gradient(135deg, #0066cc, #0052a3) !important;
    color: #fff !important;
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.4);
}

.complete-profile-welcome {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.complete-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.complete-profile-back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.complete-profile-back-link:hover {
    color: #764ba2;
}

.video-preview-mini {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    display: block;
    margin: 0 auto 8px auto;
}

.complete-profile-container .photo-upload-area { 
    margin-top: 8px; 
}

.complete-profile-container .photo-placeholder {
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
}

.complete-profile-container .photo-placeholder:hover { 
    border-color: #667eea;
    background: rgba(255,255,255,0.1);
}

.complete-profile-container .photo-preview {
    display: none;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.complete-profile-container .photo-preview img {
    width: 100%;
    display: block;
    border-radius: 8px;
    max-height: 300px;
}

.complete-profile-container .photo-reset-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.complete-profile-container .photo-reset-btn:hover {
    transform: scale(1.1);
}

.complete-profile-container .photo-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
}

.complete-profile-container .cropper-view-box,
.complete-profile-container .cropper-face {
    border-radius: 50%;
}

/* Welcome Hero Card - Complete Profile Page - UPDATED VERSION */
.welcome-hero-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.welcome-hero-bg {
    background-image: url('../images/celebra.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-hero-overlay {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    width: auto;
    display: inline-block;
    padding: 12px 36px;
    border-radius: 20px;
    text-align: center;
    margin-top: 100px;
}

.welcome-hero-text {
    color: white;
}

.welcome-hero-small {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

/* User info above the card */
.user-info-top {
    text-align: center;
    margin-bottom: 16px;
}

.user-initial-avatar-top {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
    margin: 0 auto 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.2);
}

.user-name-top {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.edit-mode-badge {
    background: #ffc107;
    color: #333;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

/* Message styling for dark theme */
.complete-profile-container .message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.complete-profile-container .message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.complete-profile-container .message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Video Recorder Modal Styles */
.profile-recorder-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 5000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.profile-recorder-container {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 20px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

.profile-recorder-container h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.profile-recorder-container p {
    font-size: 13px;
    color: #aaa;
    margin: 0 0 12px 0;
}

.profile-video-wrapper {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9/16;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.profile-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-recorder-actions {
    margin-top: 12px;
}

.profile-record-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-record-btn:hover {
    transform: scale(1.05);
}

.profile-record-btn.recording {
    background: #c0392b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.profile-save-actions {
    display: none;
    margin-top: 12px;
}

.profile-reset-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    transition: transform 0.2s;
}

.profile-reset-btn:hover {
    transform: scale(1.05);
}

.profile-save-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-save-btn:hover {
    transform: scale(1.05);
}

.profile-cancel-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    color: #aaa;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-cancel-btn:hover {
    background: rgba(255,255,255,0.15);
}

.recording-timer {
    margin-top: 8px;
    font-size: 12px;
    color: #ffc107;
}

/* Botão Mensagem do Supervisor */
.btn-mensagem-supervisor {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-mensagem-supervisor:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   59. BIRTHDAY MODAL WIDGET
   ============================================*/

/* Botão flutuante (FAB) */
.birthday-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthday-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.birthday-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Overlay */
.birthday-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.birthday-modal-overlay.active {
    display: flex;
}

/* Modal Container */
.birthday-modal-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 24px 20px 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

/* Close Button */
.birthday-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthday-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Modal Header */
.birthday-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.birthday-modal-header h2 {
    color: white;
    font-size: 22px;
    margin: 0 0 4px 0;
}

.birthday-modal-header p {
    color: #aaa;
    font-size: 13px;
    margin: 0;
}

/* Modal Icon */
.birthday-modal-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

/* Avatares */
.birthday-modal-avatars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.birthday-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.birthday-modal-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.birthday-modal-avatar.active {
    border-color: #ffc107;
    border-width: 4px;
    transform: scale(2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mensagem */
.birthday-modal-message {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Sender */
.birthday-modal-sender {
    text-align: center;
    color: #ffc107;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Controls */
.birthday-modal-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.birthday-modal-arrow {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.birthday-modal-arrow:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.birthday-modal-counter {
    color: #aaa;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .birthday-modal-container {
        width: 95%;
        padding: 20px 16px 24px;
    }
    .birthday-modal-icon {
        font-size: 60px;
    }
    .birthday-modal-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .complete-profile-container {
        padding: 16px 12px;
    }
    
    .complete-profile-container .form-group {
        margin-bottom: 16px;
    }
    
    .welcome-hero-bg {
        min-height: 180px;
    }
    
    .welcome-hero-overlay {
        padding: 12px 16px;
    }
    
    .welcome-hero-large {
        font-size: 24px;
    }
    
    .welcome-hero-small {
        font-size: 14px;
    }
    
    .user-initial-avatar {
        width: 60px;
        height: 60px;
        font-size: 28px;
        top: -30px;
    }
}

@media (min-width: 500px) {
    .player-nav-vertical {
        right: calc(50% - 180px);
    }
}

/* Desktop: align with content */
@media (min-width: 500px) {
    .player-nav-vertical {
        right: calc(50% - 170px);
    }
}

@media (max-width: 480px) {
    .hero-inspire-name { font-size: 34px; }
    .hero-inspire-unit { font-size: 28px; }
    .hero-metric-row { font-size: 12px; }
    .hero-metric-num { font-size: 12px; padding: 3px 8px; }
    .birthday-carousel-icon {
        font-size: 90px;
    }
    .birthday-carousel-avatar {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    .birthday-carousel-message {
        font-size: 13px;
    }
}

}
