:root {
  --navy: #1a365d;
  --ice: #ebf8ff;
  --accent: #3182ce;
}

body {
  background: #f7fafc;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.bg-navy { background-color: var(--navy) !important; }
.navbar-brand { letter-spacing: -0.3px; }
.nav-link.active { font-weight: 600; border-bottom: 2px solid #63b3ed; }

.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border-radius: 10px;
}
.card-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  border-radius: 10px 10px 0 0 !important;
}

.stat-card {
  border-left: 4px solid var(--accent);
  transition: transform .15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: .8rem; color: #718096; text-transform: uppercase; letter-spacing: .4px; }

.badge-status {
  font-weight: 500;
  padding: .35em .65em;
  border-radius: 6px;
  color: #fff;
}
.badge-Attended { background: #27ae60; }
.badge-Missed { background: #e74c3c; }
.badge-Canceled { background: #e67e22; }
.badge-Needs { background: #f1c40f; color: #333 !important; }
.badge-Scheduled { background: #3498db; }

.priority-high { color: #e74c3c; font-weight: 600; }
.priority-medium { color: #f39c12; }
.priority-low { color: #95a5a6; }

.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; color: #4a5568; }
.table td { vertical-align: middle; font-size: .92rem; }

.tickler-open { border-left: 4px solid #e74c3c; }
.tickler-done { opacity: .65; border-left: 4px solid #27ae60; }

.fc .fc-toolbar-title { font-size: 1.25rem; color: var(--navy); }
.fc-event { cursor: pointer; font-size: .8rem; }

.btn-ice {
  background: var(--navy);
  color: white;
  border: none;
}
.btn-ice:hover { background: #2c5282; color: white; }

.form-label { font-size: .85rem; font-weight: 500; color: #4a5568; }

.quick-status select { min-width: 150px; font-size: .85rem; }

.note-card {
  background: #fffbeb;
  border-left: 4px solid #f6ad55;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .75rem;
}

/* ===== Stronger mobile improvements ===== */
@media (max-width: 768px) {
  /* Bigger touch targets */
  .btn, .nav-link, .form-control, .form-select {
    min-height: 44px;
    font-size: 1rem;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 1.05rem;
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  /* Cards and stats */
  .card {
    margin-bottom: 1rem;
  }
  .stat-value {
    font-size: 1.5rem !important;
  }
  .stat-label {
    font-size: 0.75rem !important;
  }

  /* Tables */
  .table-responsive {
    font-size: 0.9rem;
  }
  .table th, .table td {
    white-space: nowrap;
  }

  /* Calendar */
  .fc .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .fc .fc-toolbar-title {
    font-size: 1.15rem !important;
  }
  .fc-event {
    font-size: 0.7rem !important;
  }

  /* Forms */
  .form-label {
    font-weight: 500;
  }

  /* Dashboard grid stacks nicely */
  .row > [class*="col-"] {
    margin-bottom: 0.75rem;
  }
}

/* Make sure viewport is correct (should already be in base.html) */
