/* NFIGW Online Portal styles */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --primary: #214e88;
  --primary-soft: #3a6fb7;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #edf2f7 0%, #f9fafb 100%);
  color: var(--text);
}

.page-wrapper {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.site-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.site-header p {
  margin: 0;
  color: var(--muted);
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  padding: 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  font-weight: 600;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-primary,
.link-button,
.btn-secondary {
  appearance: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #eef2ff;
  color: var(--primary);
}

.link-button {
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--border);
}

.split-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.plan-grid,
.benefit-grid {
  display: grid;
  gap: 1rem;
}

.plan-card,
.benefit-card,
.panel-card,
.wall-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fff;
}

.plan-card h2,
.benefit-card h3,
.panel-card h3,
.wall-card h2 {
  margin-top: 0;
}

.plan-card ul,
.benefit-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.benefit-card {
  display: grid;
  gap: 0.75rem;
}

.profile-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.profile-subtitle,
.profile-rep {
  margin: 0;
  color: var(--muted);
}

.dashboard-page {
  padding-bottom: 0;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-sidebar,
.dashboard-panel {
  background: transparent;
}

.dashboard-sidebar {
  min-width: 240px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.sidebar-link {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.sidebar-link:hover {
  background: #eef2ff;
}

.dashboard-main {
  display: grid;
  gap: 1rem;
}

.wall-card-header {
  margin-bottom: 1rem;
}

.wall-feed {
  display: grid;
  gap: 1rem;
}

.wall-post {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fafc;
}

.wall-post h4 {
  margin: 0 0 0.5rem;
}

.wall-post p {
  margin: 0;
}

.panel-card {
  display: grid;
  gap: 1rem;
}

.panel-card label {
  font-weight: 600;
}

.panel-card input,
.panel-card select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.tax-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tax-results div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.tax-total {
  background: #eef2ff;
}

.notifications-panel {
  display: grid;
  gap: 0.75rem;
}

.notification-list {
  display: grid;
  gap: 0.75rem;
}

.notification-item {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.notification-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.notification-item .notification-time {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dashboard-grid {
    grid-template-columns: 240px minmax(0, 1fr) 320px;
  }

  .split-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-grid,
  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer {
  text-align: center;
  padding: 1.5rem 0 1rem;
  color: var(--muted);
}

/* Post & notification timestamps */
.post-time,
.notification-time {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* Active sidebar link state */
.sidebar-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Quick summary paragraph spacing */
.quick-summary p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.quick-summary p:last-child {
  border-bottom: none;
}

/* Profile form page */
.profile-form-section {
  display: grid;
  gap: 1.5rem;
}

.profile-form-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
}

.badge-accent {
  background: var(--accent);
  color: #fff;
}

.alert-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  display: none;
}

.alert-success.visible {
  display: block;
}
