/* ============================================================
   JORNADA CIENTÍFICA UNISEPE — Folha de Estilos Principal
   Centro Universitário São Lourenço
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&display=swap');

/* Reset e base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1B3A5C;
  --primary-dark:  #0F2540;
  --primary-light: #E8F2FB;
  --secondary:     #666666;
  --white:         #FFFFFF;
  --bg-light:      #F5F5F5;
  --bg-gray:       #EAEAEA;
  --text-dark:     #111111;
  --text-medium:   #444444;
  --text-light:    #777777;
  --border:        #CCCCCC;
  --success:       #1e7e34;
  --success-light: #d4edda;
  --error:         #c0392b;
  --error-light:   #fde8e6;
  --warning:       #d4860a;
  --warning-light: #fff3cd;
  --info:          #0a6fa8;
  --info-light:    #d1ecf1;
  --shadow:        0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 14px rgba(0,0,0,.13);
  --radius:        8px;
  --radius-sm:     6px;
  --font-serif:    'Lora', Georgia, 'Times New Roman', serif;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- BARRA INSTITUCIONAL ---- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  padding: .45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-inst { font-weight: 600; color: rgba(255,255,255,.95); }
/* Pílula de status com bolinha — indica se o envio está aberto agora */
.topbar-status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.topbar-status.on  { color: #6EE7A8; }
.topbar-status.off { color: rgba(255,255,255,.55); }

/* ---- OLHO DE SEÇÃO + TÍTULOS SERIFADOS ---- */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--info); margin-bottom: .35rem;
}
.serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }

/* ---- BANNER ESCURO (páginas internas) ---- */
.page-banner {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}
.page-banner .eyebrow { color: #7FB8E8; }
.page-banner h1 {
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600;
  color: #fff; margin-bottom: .5rem; line-height: 1.15;
}
.page-banner p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 62ch; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 .4rem; opacity: .5; }

/* ---- CAMPO COM ÍCONE + TOGGLE DE SENHA ---- */
.field-icon { position: relative; display: block; }
.field-icon > svg {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-light); pointer-events: none;
}
.field-icon .form-control { padding-left: 2.6rem; }
.field-icon .form-control.has-toggle { padding-right: 2.9rem; }
.pw-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: .4rem;
  color: var(--text-light); display: flex; align-items: center; border-radius: var(--radius-sm);
}
.pw-toggle:hover { color: var(--primary); background: var(--bg-light); }
.pw-toggle svg { width: 18px; height: 18px; }

/* ---- CAIXA DE CONSENTIMENTO LGPD ---- */
.consent-box {
  background: var(--primary-light);
  border: 1px solid #C5DDF2;
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  display: flex; gap: .75rem; align-items: flex-start;
  margin: 1.25rem 0;
}
.consent-box input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem;
  accent-color: var(--primary); cursor: pointer;
}
.consent-box label { font-size: .85rem; color: var(--text-medium); line-height: 1.55; cursor: pointer; }

/* ---- AVISO DE PRIVACIDADE ---- */
.privacy-note {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--primary-light); border: 1px solid #C5DDF2;
  border-radius: var(--radius); padding: .85rem 1rem;
  font-size: .85rem; color: var(--text-medium); line-height: 1.55;
}
.privacy-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .18rem; color: var(--primary); }

/* ---- ETAPAS DO EVENTO (faixa horizontal numerada) ---- */
.step-flow {
  list-style: none; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.step-flow-item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1.35rem 1.35rem; border-left: 1px solid var(--bg-gray); position: relative;
}
.step-flow-item:first-child { border-left: none; }
.step-flow-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
  background: var(--bg-gray); color: var(--text-light);
}
.step-flow-item strong { display: block; font-size: .93rem; color: var(--text-dark); line-height: 1.35; }
.step-flow-item span   { display: block; font-size: .8rem; color: var(--text-light); margin-top: .2rem; }
.step-flow-item em {
  display: inline-block; margin-top: .45rem; font-style: normal;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--success); background: var(--success-light);
  padding: .1rem .5rem; border-radius: 999px;
}
/* Etapa corrente ganha faixa superior e número em destaque */
.step-flow-item.agora { background: color-mix(in srgb, var(--success) 5%, var(--white)); }
.step-flow-item.agora::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--success);
}
.step-flow-item.agora .step-flow-num { background: var(--success); color: #fff; }
.step-flow-item.feito .step-flow-num { background: var(--primary); color: #fff; }
.step-flow-item.depois { opacity: .62; }

/* ---- FALE COM A ORGANIZAÇÃO ---- */
.contact-strip {
  background: var(--primary); color: #fff; border-radius: var(--radius);
  padding: 2rem 2.25rem; display: grid;
  grid-template-columns: 1.5fr auto; gap: 2rem; align-items: center;
}
.contact-strip h2 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: .4rem;
}
.contact-strip p { font-size: .9rem; color: rgba(255,255,255,.82); max-width: 58ch; }
.contact-side { display: grid; gap: .6rem; justify-items: start; }
.contact-side .btn { background: #fff; color: var(--primary); border: none; white-space: nowrap; }
.contact-side .btn:hover { background: var(--primary-light); }
.contact-side span { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ---- FOOTER INSTITUCIONAL ---- */
/* text-align/padding explícitos: o seletor `footer` genérico centraliza. */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,.72);
  margin-top: 3rem; text-align: left; padding: 0; font-size: 1rem;
}
.site-footer-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 2.75rem 1.5rem;
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 3rem;
}
.site-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-footer-brand > a { display: inline-block; margin-top: .85rem; font-size: .88rem; }
.site-footer h3 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer-brand strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; }
.site-footer-brand span   { display: block; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: .85rem; }
.site-footer p  { font-size: .86rem; line-height: 1.7; }
.site-footer ul { list-style: none; display: grid; gap: .65rem; }
.site-footer a  { color: rgba(255,255,255,.72); font-size: .88rem; }
.site-footer a:hover { color: #fff; }
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  max-width: 1200px; margin: 0 auto; padding: 1.15rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: .8rem;
}
.site-footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---- EMPTY STATE COM ÍCONE ---- */
.empty-state-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 3rem 2rem; text-align: center;
}
.empty-state-card .empty-glyph {
  width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.empty-state-card .empty-glyph svg { width: 22px; height: 22px; }
.empty-state-card strong { display: block; font-size: 1rem; color: var(--text-dark); margin-bottom: .3rem; }
.empty-state-card span   { font-size: .88rem; color: var(--text-light); }

/* ---- CÓDIGO MONOSPACE ---- */
.code-input { font-family: 'Consolas', 'Courier New', monospace; letter-spacing: .06em; }

@media (max-width: 950px) {
  .step-flow        { grid-template-columns: 1fr 1fr; }
  .step-flow-item:nth-child(-n+2) { border-top: none; }
  .step-flow-item:nth-child(odd)  { border-left: none; }
  .step-flow-item:nth-child(n+3)  { border-top: 1px solid var(--bg-gray); }
  .contact-strip    { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .topbar           { justify-content: center; text-align: center; font-size: .74rem; }
  .page-banner      { padding: 1.5rem 1.25rem; }
  .page-banner h1   { font-size: 1.55rem; }
  .step-flow        { grid-template-columns: 1fr; }
  .step-flow-item   { border-left: none; border-top: 1px solid var(--bg-gray); padding: 1.1rem 1.25rem; }
  .step-flow-item:first-child { border-top: none; }
  .contact-strip    { padding: 1.5rem 1.25rem; }
  .site-footer-grid { padding: 2rem 1.25rem; }
  .site-footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- NAVBAR ---- */
.navbar {
  background: var(--primary);
  color: var(--white);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem; text-decoration: none;
}
.navbar-logo {
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 800; color: var(--primary);
  text-align: center; line-height: 1.2; padding: 2px;
}
.navbar-title { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.navbar-nav { display: flex; align-items: center; gap: .15rem; list-style: none; }
.navbar-nav a {
  color: rgba(255,255,255,.9); padding: .5rem .8rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; transition: background .2s; text-decoration: none;
}
.navbar-nav a:hover, .navbar-nav a.active {
  background: rgba(255,255,255,.18); color: var(--white);
}
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; color: var(--white); font-size: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
  display: none; background: var(--primary-dark);
  padding: .75rem 1rem; flex-direction: column; gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white); padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500; text-decoration: none;
}
.mobile-menu a:hover { background: rgba(255,255,255,.15); }

/* ---- LAYOUT ---- */
.main-content { padding: 2rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.container    { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- CARDS ---- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1rem; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-medium); margin-bottom: .35rem; }
.form-label .req { color: var(--error); margin-left: .2rem; }
.form-control {
  width: 100%; padding: .625rem .875rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--text-dark); background: var(--white);
  transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,168,.12);
}
.form-control.is-invalid { border-color: var(--error); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint  { font-size: .8rem; color: var(--text-light); margin-top: .2rem; }
.form-error { font-size: .8rem; color: var(--error);      margin-top: .2rem; }
select.form-control { cursor: pointer; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .625rem 1.25rem; border: none; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none; font-family: inherit; line-height: 1.5;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary  { background: var(--primary);  color: var(--white); }
.btn-primary:hover:not(:disabled)  { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(0,87,168,.3); }
.btn-secondary{ background: var(--bg-gray);  color: var(--text-dark); }
.btn-secondary:hover:not(:disabled){ background: #d1d5db; }
.btn-success  { background: var(--success);  color: var(--white); }
.btn-success:hover:not(:disabled)  { background: #1e7e34; }
.btn-danger   { background: var(--error);    color: var(--white); }
.btn-danger:hover:not(:disabled)   { background: #b02a37; }
.btn-warning  { background: var(--warning);  color: var(--white); }
.btn-warning:hover:not(:disabled)  { background: #b8720a; }
.btn-info     { background: var(--info);     color: var(--white); }
.btn-info:hover:not(:disabled)     { background: #095d8c; }
.btn-outline  { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover:not(:disabled)  { background: var(--primary-light); }
.btn-sm  { padding: .35rem .7rem;  font-size: .82rem; }
.btn-lg  { padding: .875rem 2rem;  font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---- ALERTS ---- */
.alert {
  padding: .8rem 1.1rem; border-radius: var(--radius-sm);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 500;
}
.alert-success { background: var(--success-light); color: #155724; border-left: 4px solid var(--success); }
.alert-error   { background: var(--error-light);   color: #721c24; border-left: 4px solid var(--error);   }
.alert-warning { background: var(--warning-light); color: #856404; border-left: 4px solid var(--warning); }
.alert-info    { background: var(--info-light);    color: #0c5460; border-left: 4px solid var(--info);    }

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: .22rem .6rem; border-radius: 20px;
  font-size: .76rem; font-weight: 600; white-space: nowrap;
}
.badge-success   { background: var(--success-light); color: #155724; }
.badge-error     { background: var(--error-light);   color: #721c24; }
.badge-warning   { background: var(--warning-light); color: #856404; }
.badge-info      { background: var(--info-light);    color: #0c5460; }
.badge-secondary { background: var(--bg-gray);       color: var(--text-medium); }
.badge-primary   { background: var(--primary-light); color: var(--primary); }

/* ---- TABLES ---- */
.table-container { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
table th { background: var(--primary); color: var(--white); padding: .8rem 1rem; text-align: left; font-size: .85rem; font-weight: 600; white-space: nowrap; }
table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg-light); }

/* ---- STAT CARDS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 1.2rem;
  box-shadow: var(--shadow); border-top: 3px solid var(--primary);
}
.stat-card .stat-label { font-size: .75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-sub   { font-size: .8rem; color: var(--text-light); margin-top: .15rem; }

/* ---- PAGE HEADER ---- */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.55rem; font-weight: 700; color: var(--text-dark); margin-bottom: .2rem; }
.page-header p  { color: var(--text-medium); font-size: .95rem; }

h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: .75rem; }
h3 { font-size: .95rem; font-weight: 600; color: var(--text-medium); margin-bottom: .5rem; }

/* ---- TABS ---- */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn {
  padding: .7rem 1.1rem; border: none; background: none; cursor: pointer;
  font-size: .88rem; font-weight: 600; color: var(--text-medium);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: all .2s; font-family: inherit;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- SEARCH BAR ---- */
.search-bar { display: flex; gap: .75rem; margin-bottom: 1.2rem; flex-wrap: wrap; align-items: center; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap i { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.search-wrap .form-control { padding-left: 2.5rem; }

/* ---- WORD COUNTER ---- */
.word-counter { font-size: .8rem; font-weight: 600; color: var(--text-light); text-align: right; margin-top: .2rem; }
.word-counter.over-limit { color: var(--error); }

/* ---- MEMBER CARD ---- */
.member-card {
  background: var(--primary-light); border: 1px solid var(--secondary);
  border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; position: relative;
}
.member-card .remove-btn {
  position: absolute; top: .5rem; right: .5rem; background: none; border: none;
  color: var(--error); cursor: pointer; font-size: 1.2rem; padding: .2rem .4rem;
  border-radius: 4px; line-height: 1;
}
.member-card .remove-btn:hover { background: var(--error-light); }
.member-number { font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }

/* ---- LECTURE CARDS ---- */
.lecture-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1rem; }
.lecture-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 3px solid var(--primary); display: flex; flex-direction: column; }
.lecture-card-header { background: var(--primary-light); padding: 1rem 1.2rem; }
.lecture-card-title  { font-size: .98rem; font-weight: 700; color: var(--primary); margin-bottom: .2rem; }
.lecture-card-speaker{ font-size: .82rem; color: var(--text-medium); }
.lecture-card-body   { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.lecture-meta        { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.lecture-meta span   { font-size: .83rem; color: var(--text-medium); }
.lecture-vagas       { font-size: .85rem; font-weight: 600; color: var(--success); margin-bottom: .75rem; }
.lecture-vagas.lotada{ color: var(--error); }
.lecture-card-footer { margin-top: auto; }

/* ---- TOAST ---- */
.toast-container { position: fixed; top: 74px; right: 1rem; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; max-width: 340px; pointer-events: none; }
.toast {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: .8rem 1.1rem; display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; animation: toastIn .3s ease; border-left: 4px solid var(--info); pointer-events: all;
}
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--error);   }
.toast-warning { border-left-color: var(--warning); }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 1rem; }
.modal { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-close:hover { color: var(--text-dark); }
.modal-body   { padding: 1.4rem; }
.modal-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }

/* ---- GRID 2 COLS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- HERO (index) ---- */
.hero {
  background: linear-gradient(135deg, #1B3A5C 0%, #2C6499 100%);
  color: #fff; text-align: center; padding: 5rem 1.5rem;
}
/* Hero centralizado */
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-inner p { margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.btn-ghost {
  display: inline-block; padding: .9rem 2rem; font-size: 1.05rem; font-weight: 600;
  color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08);
  border-radius: var(--radius); transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); text-decoration: none; color: #fff; }

/* Faixas de conteúdo da home */
.band     { padding: 3.5rem 1.5rem; background: var(--white); }
.band-alt { background: var(--bg-light); }
.band-head { max-width: 62ch; margin-bottom: 1.75rem; }
.band-head h2 {
  font-family: var(--font-serif); font-size: 1.65rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: .45rem; line-height: 1.25;
}
.band-head p { font-size: .95rem; color: var(--text-medium); }

/* Trilha de estados do trabalho */
.journey { list-style: none; display: grid; gap: .6rem; counter-reset: j; }
.journey li {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; display: grid; grid-template-columns: 160px 1fr;
  gap: 1.25rem; align-items: center;
}
.journey li p { font-size: .9rem; color: var(--text-medium); }
.journey .badge { justify-self: start; }

/* Entradas: aluno em destaque, visitante ao lado, equipe numa nota discreta */
.acessos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; align-items: start; }
.acessos article {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.acesso-destaque {
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
}
.acesso-secundario { border-top: 4px solid var(--info); }
.acessos h3 {
  font-family: var(--font-serif); font-weight: 600; color: var(--text-dark);
  margin-bottom: .55rem; line-height: 1.3;
}
.acesso-destaque   h3 { font-size: 1.35rem; }
.acesso-secundario h3 { font-size: 1.1rem; }
.acessos p { font-size: .92rem; color: var(--text-medium); line-height: 1.65; }
.acesso-acoes { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.25rem; }
.acesso-equipe {
  margin-top: 1.25rem; font-size: .86rem; color: var(--text-light); text-align: center;
}

/* Bloco de credenciais de teste */
.demo-box {
  background: var(--primary-light); border: 1px solid #C5DDF2; border-radius: var(--radius);
  padding: 1.75rem 2rem; display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 2rem; align-items: center;
}
.demo-box h2 {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: .4rem;
}
.demo-box p { font-size: .9rem; color: var(--text-medium); }
.demo-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.demo-table th, .demo-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid #C5DDF2; }
.demo-table th { color: var(--text-dark); font-weight: 700; width: 42%; }
.demo-table td { color: var(--text-medium); }
.demo-table tr:last-child th, .demo-table tr:last-child td { border-bottom: none; }

@media (max-width: 950px) {
  .acessos  { grid-template-columns: 1fr; }
  .demo-box { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 600px) {
  .hero            { padding: 3rem 1.5rem; }
  .hero h1         { font-size: 2rem; }
  .band            { padding: 2.5rem 1.25rem; }
  .band-head h2    { font-size: 1.35rem; }
  .journey li      { grid-template-columns: 1fr; gap: .5rem; }
  .acessos article { padding: 1.35rem 1.25rem; }
  .acesso-destaque h3 { font-size: 1.2rem; }
  .acesso-acoes .btn  { flex: 1; text-align: center; }
  .demo-box        { padding: 1.35rem 1.25rem; }
}
.hero h1 {
  font-family: var(--font-serif); font-size: 2.9rem; font-weight: 600;
  letter-spacing: -.015em; margin-bottom: 1rem; color: #fff; line-height: 1.12;
}
.hero p   { font-size: 1.1rem; opacity: .88; max-width: 600px; margin: 0 auto 2rem; }
.btn-start {
  font-size: 1.1rem; padding: .9rem 2.5rem; background: #fff;
  color: #1B3A5C; border-radius: 8px; font-weight: 700;
  border: none; transition: all .2s; display: inline-block; letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-start:hover { background: #E8F2FB; text-decoration: none; color: #0F2540; transform: translateY(-1px); }
.home-links { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.home-links a {
  color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1);
  padding: .5rem 1.25rem; font-weight: 500; transition: all .2s; text-decoration: none;
}
.home-links a:hover { background: rgba(255,255,255,.2); text-decoration: none; color: #fff; }

/* Steps */
.steps-section { padding: 3.5rem 1.5rem; background: var(--white); }
.steps-section h2 {
  text-align: center; font-family: var(--font-serif); font-size: 1.7rem;
  font-weight: 600; margin-bottom: 2rem; color: var(--text-dark);
}
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.step-card { text-align: center; padding: 1.25rem; }
.step-icon { width: 60px; height: 60px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .875rem; font-size: 1.5rem; color: var(--primary); }
.step-card h3 { font-size: .98rem; font-weight: 700; color: var(--text-dark); margin-bottom: .4rem; }
.step-card p  { font-size: .88rem; color: var(--text-medium); }

/* Login page */
.login-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--bg-light); }
.login-box  { background: var(--white); border: 1px solid var(--border); width: 100%; max-width: 460px; padding: 2rem; }
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.logo-placeholder { width: 80px; height: 80px; background: var(--primary-light); border: 2px dashed var(--primary); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-size: .58rem; font-weight: 800; color: var(--primary); text-align: center; line-height: 1.3; margin-bottom: .6rem; }
.login-logo h2 { color: var(--primary); font-size: 1.15rem; }
.login-logo p  { color: var(--text-light); font-size: .85rem; }

/* Visitor info */
.visitor-btn-wrap { text-align: center; padding: 1rem; background: var(--bg-light); border-radius: var(--radius); border: 2px dashed var(--border); }

/* Footer */
footer { background: var(--primary-dark); color: rgba(255,255,255,.75); text-align: center; padding: 1.5rem; margin-top: 3rem; font-size: .82rem; }

/* Utilities */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--error); }
.fw-bold { font-weight: 700; }
.w-100  { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Section box */
.section-box { background: var(--primary-light); border: 1px solid var(--secondary); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.section-box h3 { color: var(--primary); margin-bottom: .35rem; font-size: .95rem; }
.sec-word-count { font-size: .75rem; color: var(--text-light); text-align: right; margin-top: .3rem; font-weight: 500; transition: color .2s; }
.sec-word-count.sec-word-warn { color: var(--warning); }
.sec-word-count.sec-word-ok   { color: var(--success); }

/* Work detail */
.detail-row { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: var(--text-medium); font-size: .85rem; min-width: 140px; }
.detail-value { color: var(--text-dark); font-size: .9rem; flex: 1; }

/* Progress bar */
.progress-wrap { background: var(--bg-gray); border-radius: 20px; height: 8px; overflow: hidden; margin-top: .3rem; }
.progress-bar  { background: var(--primary); height: 100%; border-radius: 20px; transition: width .3s; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: .95rem; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .navbar-nav { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .lecture-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .main-content { padding: 1rem; }
  .page-header h1 { font-size: 1.3rem; }
  .hero h1 { font-size: 1.8rem; }
  .btn-start { font-size: 1.1rem; padding: .875rem 2rem; }
  .detail-row { flex-direction: column; gap: .25rem; }
  .detail-label { min-width: unset; }

  /* Table → cards on mobile */
  .table-mobile thead { display: none; }
  .table-mobile tr { display: block; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: .75rem; border: none; }
  .table-mobile td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding: .5rem .75rem; font-size: .85rem; }
  .table-mobile td:last-child { border-bottom: none; }
  .table-mobile td::before { content: attr(data-label); font-weight: 600; color: var(--text-light); font-size: .8rem; margin-right: .75rem; flex-shrink: 0; }
  .table-mobile { background: transparent !important; box-shadow: none !important; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .login-box { padding: 1.5rem 1.25rem; }
  .modal { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay { align-items: flex-end; }
}
