/* ============================================================
   7Planner — tema mobile-first com a identidade visual do 7me
   Paleta: azul-marinho (principal, do "7") + cinza (secundária, do "me")
   ============================================================ */
:root {
  --brand: #1b3a5f;
  --brand-dark: #142c49;
  --brand-darker: #0e2138;
  --brand-light: #e9eef4;
  --brand-accent: #3d6699;
  --secondary: #84888a;
  --ink: #1f2733;
  --muted: #7c8186;
  --line: #e3e6ea;
  --bg: #f5f6f8;
  --radius: 16px;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 76px;
}

.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; color: #fff !important; }
.bg-brand-light { background-color: var(--brand-light) !important; }
.border-brand { border-color: var(--brand) !important; }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

a { color: var(--brand-dark); }

.navbar-7 { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); }
.navbar-7 .navbar-brand, .navbar-7 .nav-link { color: #fff !important; font-weight: 600; }
.navbar-brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: #fff; color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; margin-right: .5rem;
}

.btn-lg, .form-control-lg, .form-select-lg { min-height: 52px; }
.btn { border-radius: 12px; font-weight: 600; }

.card { border: 1px solid var(--line); border-radius: var(--radius); }
.card-elevated { box-shadow: 0 6px 20px rgba(20,44,73,.08); }

.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent)); color: #fff; border-radius: var(--radius); }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 14px; }
.timeline-item::before {
  content: ""; position: absolute; left: -23px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.timeline-time { font-weight: 700; color: var(--brand-dark); font-size: .95rem; }
.song-pill {
  background: var(--brand-light); color: var(--brand-darker);
  border-radius: 10px; padding: .35rem .6rem; font-size: .85rem;
  display: inline-flex; gap: .3rem; align-items: center; margin: .15rem .15rem 0 0;
}

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 6px 0; box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.bottom-nav a { flex: 1; text-align: center; color: var(--muted); font-size: .68rem; text-decoration: none; line-height: 1.2; padding: 4px 0; }
.bottom-nav a .bi { display: block; font-size: 1.25rem; margin-bottom: 1px; }
.bottom-nav a.active { color: var(--brand-dark); font-weight: 700; }

.badge { font-weight: 600; }
.section-title { font-weight: 800; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.list-divider > * + * { border-top: 1px solid var(--line); }

.drag-handle { cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: .45; background: var(--brand-light); }
.reorder-flash {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  z-index: 1080; padding: .5rem .9rem; border-radius: 10px; color: #fff;
  font-size: .85rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.reorder-flash.ok { background: #198754; }
.reorder-flash.err { background: #dc3545; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell {
  aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 4px 0 0; font-size: .8rem; text-decoration: none; color: var(--ink);
  background: #fff; position: relative; min-height: 42px;
}
.cal-cell.out { background: transparent; border-color: transparent; color: #c4cdcf; }
.cal-cell.today { border-color: var(--brand); border-width: 2px; font-weight: 700; }
.cal-cell.has-event { background: var(--brand-light); border-color: var(--brand); }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 2px; }
.cal-count { position: absolute; top: 2px; right: 4px; font-size: .6rem; background: var(--brand); color: #fff; border-radius: 8px; padding: 0 4px; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .cal-cell { min-height: 64px; font-size: .95rem; }
}
