*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  background: linear-gradient(200deg, #0b2a4a 0%, #061425 100%);
  min-height:100vh;
  padding:20px;
}

.container{max-width:1200px;margin:0 auto}

h1{
  color:#fff;
  text-align:center;
  margin-bottom:10px;
  font-size:2.1em;
  text-shadow:2px 2px 4px rgba(0,0,0,.25);
  line-height:1.2;
}

.subheader{
  color:rgba(255,255,255,.85);
  text-align:center;
  margin:0 0 14px 0;
  font-size:14px;
}

/* Tabs */
.tabs{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:0 0 14px 0;
  flex-wrap:wrap;
}

.tab{
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  transition:transform .12s, background .12s, box-shadow .12s;
}
.tab:hover{transform:translateY(-1px);background:rgba(255,255,255,.16);box-shadow:0 10px 16px rgba(0,0,0,.16)}
.tab.active{
  background:#ffffff;
  color:#0b2a4a;
  border-color:#ffffff;
}

/* Controls */
.controls{
  background:#ffffff;
  padding:16px;
  border-radius:12px;
  margin-bottom:18px;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.controls .left,
.controls .right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

.btn{
  background:#1f4f85;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  transition:transform .15s, box-shadow .15s, background .15s;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn:hover{
  background:#1a436f;
  transform:translateY(-1px);
  box-shadow:0 8px 16px rgba(0,0,0,.18);
}

.btn-secondary{background:#0f2f53}
.btn-secondary:hover{background:#0c2744}

.btn-delete{background:#b91c1c}
.btn-delete:hover{background:#991b1b}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:999px;
  font-size:13px;
  color:#111827;
}

.pill strong{font-weight:800}
.small{font-size:12px;color:#6b7280}

/* Cards */
.disciplinas-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(350px, 1fr));
  gap:18px;
}

.disciplina-card{
  background:#fff;
  border-radius:14px;
  padding:18px;
  box-shadow:0 10px 18px rgba(0,0,0,.14);
  transition:transform .2s, box-shadow .2s;
}

.disciplina-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 24px rgba(0,0,0,.18);
}

.card-header{
  border-bottom:3px solid #1f4f85;
  padding-bottom:12px;
  margin-bottom:12px;
}

.card-header input[type="text"]{
  width:100%;
  padding:10px 10px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  font-size:15px;
  margin-bottom:10px;
  outline:none;
}

.card-header input[type="text"]:focus{
  border-color:#1f4f85;
  box-shadow:0 0 0 4px rgba(31,79,133,.15);
}

.card-header input[type="text"]:first-child{
  font-weight:800;
  font-size:17px;
}

.checklist-item{
  margin-bottom:12px;
  padding:10px;
  background:#f9fafb;
  border:1px solid #eef2f7;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:10px;
}

.checklist-item label{
  display:flex;
  align-items:center;
  cursor:pointer;
  flex:1;
  gap:10px;
}

.checklist-item input[type="checkbox"]{width:18px;height:18px;cursor:pointer}

.checklist-item input[type="text"],
.checklist-item input[type="datetime-local"]{
  flex:1;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  font-size:13px;
  outline:none;
  background:#fff;
}

.checklist-item input[type="text"]:focus,
.checklist-item input[type="datetime-local"]:focus{
  border-color:#1f4f85;
  box-shadow:0 0 0 4px rgba(31,79,133,.14);
}

.item-label{font-weight:700;color:#374151;min-width:120px}

.status-badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
}
.status-sim{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}
.status-nao{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}

/* Aula ao vivo destaque */
.aula-proxima{
  border:2px solid #f59e0b;
  background:#fff7ed !important;
  box-shadow:0 0 0 3px rgba(245,158,11,.22);
}
.badge-proxima{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#f59e0b;
  color:#111827;
  white-space:nowrap;
}
.badge-hoje{background:#22c55e;color:#052e16}
@keyframes pulseSoft{0%{transform:scale(1)}50%{transform:scale(1.02)}100%{transform:scale(1)}}
.pulse{animation:pulseSoft 1.6s ease-in-out infinite}

.delete-card{
  width:100%;
  margin-top:12px;
  padding:10px 12px;
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}
.delete-card:hover{background:#fecaca}

.empty{
  color:#fff;
  text-align:center;
  grid-column:1/-1;
  padding:28px 10px;
  opacity:.9;
}

@media (max-width:768px){
  .disciplinas-grid{grid-template-columns:1fr}
  h1{font-size:1.7em}
  .controls{justify-content:center}
}


/* ===== Extensão (botões Sim/Não) ===== */
.segment{
  display:inline-flex;
  border:1px solid #d1d5db;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.segment button{
  border:none;
  padding:8px 12px;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  background:#f3f4f6;
  color:#111827;
  transition:filter .12s, transform .12s, background .12s;
}
.segment button:hover{filter:brightness(.98)}
.segment button:active{transform:scale(.99)}
.segment button.active{
  background:#1f4f85;
  color:#fff;
}
.segment button.no.active{
  background:#b91c1c;
}


/* ===== Observação ===== */
.checklist-item textarea{
  flex:1;
  width:100%;
  min-height:90px;
  resize:vertical;
  padding:10px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  font-size:13px;
  outline:none;
  background:#fff;
}
.checklist-item textarea:focus{
  border-color:#1f4f85;
  box-shadow:0 0 0 4px rgba(31,79,133,.14);
}
