@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-cyan: #00b4d8;
  --primary-cyan-hover: #0096c7;
  --primary-cyan-glow: rgba(0, 180, 216, 0.35);
  --deep-navy: #0b1329;
  --navy-light: #152243;
  --card-dark: #111c38;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-soft-blue: #f0f7fc;
  --border-color: #e2e8f0;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20ba5a;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px -10px rgba(11, 19, 41, 0.08);
  --shadow-card: 0 20px 40px -15px rgba(11, 19, 41, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body { color: var(--text-main); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* CABEÇALHO E MENU SANDUÍCHE */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.logo-emblem { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.logo-text-group { display: flex; flex-direction: column; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: #000000; letter-spacing: -0.5px; line-height: 1.1; }
.brand-name span { color: var(--primary-cyan); }
.brand-tagline { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.3px; }

nav ul { display: flex; align-items: center; gap: 26px; }
nav a { font-weight: 600; font-size: 0.95rem; color: #334155; transition: var(--transition); position: relative; padding: 6px 0; }
nav a:hover, nav a.active { color: var(--primary-cyan); }
nav a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary-cyan); border-radius: 2px; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: transparent; border: none; cursor: pointer; z-index: 1001;
}
.menu-toggle span { display: block; width: 100%; height: 3px; background-color: var(--deep-navy); border-radius: 3px; transition: var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.mobile-cta { display: none; }

/* BOTÕES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  transition: var(--transition); cursor: pointer; border: none; white-space: nowrap;
}
.btn-cyan { background: linear-gradient(135deg, #00c2ff 0%, #0090e7 100%); color: #ffffff; box-shadow: 0 8px 24px var(--primary-cyan-glow); }
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 180, 216, 0.5); }
.btn-whatsapp { background: var(--whatsapp-green); color: #ffffff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45); }
.btn-outline { background: transparent; border: 2px solid var(--border-color); color: #334155; }
.btn-outline:hover { border-color: var(--primary-cyan); color: var(--primary-cyan); background: rgba(0, 180, 216, 0.05); }
.btn-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #ffffff; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: 8px; }

/* HERO E SEÇÕES INSTITUCIONAIS */
.hero-home {
  padding: 70px 0 80px;
  background: radial-gradient(circle at 85% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 55%),
              linear-gradient(135deg, var(--deep-navy) 0%, #152243 100%);
  color: white; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 180, 216, 0.18); color: #38bdf8;
  padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.hero-home h1 { font-size: 2.9rem; line-height: 1.15; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.hero-home h1 span { color: var(--primary-cyan); }
.hero-home p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.device-mockup {
  background: rgba(17, 28, 56, 0.9); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.mockup-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.status-online { font-size: 0.75rem; background: rgba(16, 185, 129, 0.2); color: #34d399; padding: 4px 12px; border-radius: 20px; font-weight: 700; }
.mockup-center { text-align: center; padding: 20px; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); margin-bottom: 18px; }
.mockup-check { width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 180, 216, 0.15); border: 2px solid var(--primary-cyan); color: var(--primary-cyan); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.5rem; font-weight: 800; }
.mockup-list li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 8px; color: #e2e8f0; }

.page-hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #152243 100%);
  color: white; padding: 65px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: #94a3b8; max-width: 650px; margin: 0 auto; }

.highlights-strip { background: white; padding: 28px 0; border-bottom: 1px solid var(--border-color); }
.highlight-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--bg-soft-blue); border: 1px solid rgba(0, 180, 216, 0.15); }
.highlight-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--deep-navy); color: var(--primary-cyan); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.highlight-item h4 { font-size: 1rem; color: var(--deep-navy); margin-bottom: 2px; }
.highlight-item p { font-size: 0.85rem; color: var(--text-muted); }

/* CARROSSEL */
.carousel-wrapper {
  position: relative; background: var(--deep-navy); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); color: white; margin-bottom: 20px;
}
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.carousel-slide {
  min-width: 100%; padding: 50px 60px; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  background: radial-gradient(circle at 80% 50%, rgba(0, 180, 216, 0.18) 0%, transparent 65%);
}
.slide-badge { display: inline-block; background: rgba(0, 180, 216, 0.2); color: #38bdf8; padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.carousel-slide h3 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.carousel-slide p { color: #cbd5e1; font-size: 1.05rem; margin-bottom: 24px; }
.slide-metrics { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.metric-box { background: rgba(255,255,255,0.06); padding: 12px 18px; border-radius: var(--radius-sm); border-left: 3px solid var(--primary-cyan); }
.metric-box strong { display: block; font-size: 1.2rem; color: white; }
.metric-box span { font-size: 0.8rem; color: #94a3b8; }
.slide-visual { display: flex; align-items: center; justify-content: center; }
.slide-art { width: 100%; max-width: 340px; height: auto; border-radius: var(--radius-md); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 24px; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12);
  color: white; border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition); z-index: 10;
}
.carousel-btn:hover { background: var(--primary-cyan); border-color: var(--primary-cyan); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; padding-bottom: 24px; position: absolute; bottom: 0; left: 0; right: 0; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); border: none; cursor: pointer; transition: var(--transition); }
.carousel-dot.active { width: 28px; border-radius: 10px; background: var(--primary-cyan); }

/* GRIDS E CARDS */
section { padding: 75px 0; }
.section-title-area { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-subtitle { color: var(--primary-cyan); font-size: 0.85rem; text-transform: uppercase; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 10px; display: block; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--deep-navy); letter-spacing: -0.5px; line-height: 1.25; margin-bottom: 14px; }
.section-desc { font-size: 1.05rem; color: var(--text-muted); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-sidebar-right { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
.col-span-2 { grid-column: span 2; }

.content-card {
  background: white; border-radius: var(--radius-lg); padding: 34px 28px;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-soft);
  transition: var(--transition); display: flex; flex-direction: column; height: 100%;
}
.content-card:hover { transform: translateY(-5px); border-color: var(--primary-cyan); box-shadow: var(--shadow-card); }
.card-icon-box {
  width: 54px; height: 54px; border-radius: 14px; background: rgba(0, 180, 216, 0.1);
  color: var(--primary-cyan); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem; flex-shrink: 0;
}
.content-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--deep-navy); margin-bottom: 12px; }
.content-card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 18px; }
.check-list { margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 0.92rem; color: #334155; font-weight: 500; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary-cyan); font-weight: 800; }
.card-link { margin-top: auto; font-weight: 700; color: var(--primary-cyan); display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.card-link:hover { color: var(--primary-cyan-hover); gap: 10px; }

.cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, var(--deep-navy) 100%);
  border-radius: var(--radius-lg); padding: 50px 40px; color: white; text-align: center;
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.35); margin-top: 50px;
}
.cta-banner h2 { font-size: 2.1rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 1.08rem; color: #e0f2fe; max-width: 600px; margin: 0 auto 28px; }

/* PORTAL, GESTÃO E FORMULÁRIOS */
.login-wrapper { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card { background: white; padding: 36px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; max-width: 420px; border: 1px solid var(--border-color); }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 6px; color: var(--deep-navy); }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.95rem; transition: var(--transition); background: white; }
.form-control:focus { outline: none; border-color: var(--primary-cyan); box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15); }

.portal-layout { display: flex; min-height: calc(100vh - 80px); background: var(--bg-light); flex: 1; }
.sidebar { width: 250px; background: white; border-right: 1px solid var(--border-color); padding: 24px 0; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-menu { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text-muted); font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); user-select: none; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(0, 180, 216, 0.12); color: var(--primary-cyan); }
.portal-content { flex: 1; padding: 28px 32px; overflow-y: auto; max-width: 100%; }
.portal-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.panel { background: white; border-radius: var(--radius-md); border: 1px solid var(--border-color); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-soft); }
.panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }

.kpi-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-soft); }
.kpi-title { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.kpi-value { font-size: 1.9rem; font-weight: 800; color: var(--deep-navy); line-height: 1.2; }

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; vertical-align: middle; }
th { background: var(--bg-soft-blue); font-weight: 700; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }

.table-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-actions .btn-sm { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; }

.pill { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.pill.atingiu, .pill.entregue { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.pill.em-desenvolvimento { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.pill.nao-atingiu, .pill.pendente { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* MODAL E TOAST */
.modal-overlay { position: fixed; inset: 0; background: rgba(11, 19, 41, 0.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; border-radius: var(--radius-lg); max-width: 750px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 24px; box-shadow: var(--shadow-card); }
.toast-container { position: fixed; bottom: 20px; right: 20px; left: 20px; pointer-events: none; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.toast { pointer-events: auto; background: var(--deep-navy); color: white; padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); font-size: 0.9rem; font-weight: 600; border-left: 4px solid var(--primary-cyan); animation: slideIn 0.3s ease; max-width: 100%; }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* RODAPÉ E WHATSAPP FLUTUANTE */
footer { background: #070c18; color: #94a3b8; padding: 65px 0 28px; margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 45px; }
.footer-col h4 { color: white; font-size: 1.02rem; font-weight: 700; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-cyan); padding-left: 4px; transition: var(--transition); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }

.floating-wa-btn {
  position: fixed; bottom: 24px; right: 24px; background: var(--whatsapp-green); color: white;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5); z-index: 999; transition: var(--transition);
}
.floating-wa-btn:hover { transform: scale(1.08) translateY(-3px); background: var(--whatsapp-hover); }

/* RESPONSIVIDADE TABLET & MOBILE */
@media (max-width: 992px) {
  .carousel-slide { padding: 36px 24px 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-layout { flex-direction: column; }
  .sidebar {
    width: 100%; border-right: none; border-bottom: 1px solid var(--border-color);
    padding: 10px 0; position: sticky; top: 70px; z-index: 950;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(11, 19, 41, 0.05);
  }
  .sidebar-menu { flex-direction: row; overflow-x: auto; padding: 0 12px; gap: 8px; scrollbar-width: none; }
  .sidebar-menu::-webkit-scrollbar { display: none; }
  .sidebar-link { white-space: nowrap; padding: 9px 14px; font-size: 0.86rem; border-radius: 50px; background: var(--bg-light); }
  .sidebar-link.active { background: var(--primary-cyan); color: white; }
  .portal-content { padding: 18px 14px; }
  .panel { padding: 16px; margin-bottom: 16px; }
}

@media (max-width: 768px) {
  .nav-container { height: 70px; }
  .brand-name { font-size: 1.2rem; }
  .logo-emblem { width: 40px; height: 40px; }
  .menu-toggle { display: flex; }
  .header-btn { display: none; }
  nav.nav-menu {
    position: fixed; top: 70px; left: 0; width: 100%; background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12); border-bottom: 1px solid var(--border-color);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease; z-index: 999;
  }
  nav.nav-menu.open { max-height: 480px; padding: 12px 20px 20px; }
  nav.nav-menu ul { flex-direction: column; gap: 0; align-items: flex-start; }
  nav.nav-menu li { width: 100%; border-bottom: 1px solid #f1f5f9; }
  nav.nav-menu a { display: block; width: 100%; padding: 12px 0; font-size: 1rem; }
  .mobile-cta .btn { width: 100%; }

  /* Previne auto-zoom em inputs no iOS/Android */

  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 1.45rem; }
  .kpi-title { font-size: 0.72rem; }
  .portal-header h2 { font-size: 1.35rem; }
  .panel-header h3 { font-size: 1.1rem; }

  /* Transforma a tabela de Avaliar Competências (#tb-av) em Cards Verticais no Celular */
  #tb-av, #tb-av tbody { display: block; width: 100%; }
  #tb-av tr:first-child { display: none; }
  #tb-av tr[data-mat] {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--bg-soft-blue); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px;
  }
  #tb-av tr[data-mat] td {
    display: block; width: 100%; padding: 0; border: none;
  }
  #tb-av tr[data-mat] td .btn { width: 100%; padding: 10px; margin-top: 4px; }

  .hero-home h1 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .toast-container { align-items: stretch; }
}

@media (max-width: 480px) {
}
