/* AfricanConnect – Dashboard Styles */

/* ── Dashboard layout ─────────────────────────────────────── */
.ac-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 80vh;
}

.ac-dashboard-content {
  padding: var(--ac-spacing-xl);
  overflow-y: auto;
}

/* ── Profile section in sidebar ───────────────────────────── */
.ac-dash-profile {
  text-align: center;
  padding: 0 0 var(--ac-spacing-lg);
  margin-bottom: var(--ac-spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Welcome header ───────────────────────────────────────── */
.ac-dash-welcome h2 {
  font-family: var(--ac-font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ac-dash-welcome p {
  font-size: 14px;
  color: var(--ac-gray);
  margin: 0;
}

/* ── Dash card (reusable) ─────────────────────────────────── */
.ac-dash-card {
  background: var(--ac-black2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--ac-radius-md);
  padding: var(--ac-spacing-lg);
  margin-bottom: var(--ac-spacing-lg);
}

.ac-dash-card h3 {
  font-family: var(--ac-font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--ac-spacing-md);
  padding-bottom: var(--ac-spacing-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Activity feed ────────────────────────────────────────── */
.ac-activity-feed {
  display: flex;
  flex-direction: column;
}

.ac-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--ac-white2);
}

.ac-activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ac-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.ac-activity-text {
  flex: 1;
  line-height: 1.4;
}

.ac-activity-time {
  font-size: 11px;
  color: var(--ac-gray2);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Favorites list ───────────────────────────────────────── */
.ac-favorites-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--ac-spacing-md);
}

/* ── Notifications ─────────────────────────────────────────── */
.ac-notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}

.ac-notification-item:last-child {
  border-bottom: none;
}

.ac-notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ac-notification-text {
  flex: 1;
  font-size: 13px;
  color: var(--ac-white2);
  line-height: 1.5;
}

.ac-notification-time {
  font-size: 11px;
  color: var(--ac-gray2);
  white-space: nowrap;
}

.ac-notification-item.unread {
  position: relative;
}

.ac-notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: var(--ac-green);
  border-radius: 2px;
}

/* ── Profile form ─────────────────────────────────────────── */
.ac-profile-form {
  max-width: 500px;
}

.ac-profile-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ac-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Payments table ────────────────────────────────────────── */
.ac-payments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ac-payments-table thead tr {
  background: rgba(255,255,255,0.04);
}

.ac-payments-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  color: var(--ac-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ac-payments-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--ac-white2);
  vertical-align: middle;
}

.ac-payments-table tr:last-child td {
  border-bottom: none;
}

.ac-payments-table .amount {
  font-family: var(--ac-font-heading);
  font-weight: 700;
  color: var(--ac-gold);
}

.ac-payments-table .status-active {
  color: var(--ac-green);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.ac-payments-table .status-expired {
  color: var(--ac-red);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

/* ── Digital card print view ──────────────────────────────── */
@media print {
  .ac-dashboard-sidebar,
  .ac-dashboard-nav,
  .ac-dash-welcome,
  .ac-stat-grid,
  .ac-dash-card:not(.ac-member-id-card-wrapper) {
    display: none !important;
  }

  .ac-dashboard {
    grid-template-columns: 1fr;
  }

  .ac-member-id-card {
    border: 2px solid #000;
    background: white;
    page-break-inside: avoid;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .ac-dashboard {
    grid-template-columns: 1fr;
  }

  .ac-dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: var(--ac-spacing-md);
  }

  .ac-dashboard-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ac-dashboard-nav a {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 7px 12px;
  }

  .ac-dashboard-content {
    padding: var(--ac-spacing-lg);
  }
}

@media (max-width: 768px) {
  .ac-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ac-favorites-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ac-stat-grid {
    grid-template-columns: 1fr;
  }

  .ac-dashboard-nav a span {
    display: none;
  }

  .ac-dashboard-nav a i {
    margin: 0;
  }
}
