/* ===================================
   NEXUS COMMUNITY — Dashboard Styles
   Developed by Iqra Saleem
   =================================== */

.nexus-dashboard {
  --dash-primary: var(--nexus-primary, #003366);
  --dash-font: 'Inter', sans-serif;
  font-family: var(--dash-font);
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Sidebar + Content layout */
.nexus-dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.nexus-dash-sidebar {
  background: var(--dash-primary);
  border-radius: 12px;
  padding: 24px 0;
  position: sticky;
  top: 20px;
}
.nexus-dash-avatar-wrap {
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nexus-dash-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 10px;
}
.nexus-dash-name { color: #fff; font-size: 15px; font-weight: 700; }
.nexus-dash-role { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 2px; }

.nexus-dash-nav { padding: 16px 0; }
.nexus-dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.nexus-dash-nav a:hover,
.nexus-dash-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-left-color: #fff;
}
.nexus-notif-badge {
  background: #CC0000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50px;
  margin-left: auto;
}

/* Content area */
.nexus-dash-content { min-height: 600px; }
.nexus-dash-section { display: none; }
.nexus-dash-section.active { display: block; }

/* Stats row */
.nexus-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.nexus-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,51,102,0.08);
  border-top: 4px solid var(--dash-primary);
}
.nexus-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--dash-primary);
  line-height: 1;
}
.nexus-stat-label { font-size: 12px; color: #718096; margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Blog list in dashboard */
.nexus-dash-blog-list { margin-top: 10px; }
.nexus-dash-blog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0,51,102,0.06);
  transition: box-shadow 0.2s;
}
.nexus-dash-blog-item:hover { box-shadow: 0 4px 16px rgba(0,51,102,0.12); }
.nexus-dash-blog-title { font-size: 14px; font-weight: 600; color: #1a202c; flex: 1; }
.nexus-status-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nexus-status-approved  { background: #c6f6d5; color: #276749; }
.nexus-status-pending   { background: #fefcbf; color: #975a16; }
.nexus-status-rejected  { background: #fed7d7; color: #9b2c2c; }
.nexus-status-draft     { background: #e2e8f0; color: #4a5568; }

/* Blog editor */
.nexus-blog-editor {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,51,102,0.08);
}
.nexus-editor-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.nexus-toolbar-btn {
  padding: 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 600;
}
.nexus-toolbar-btn:hover { background: #003366; color: #fff; border-color: #003366; }
.nexus-editor-area {
  width: 100%;
  min-height: 300px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  font-family: Georgia, serif;
}
.nexus-editor-area:focus { outline: none; border-color: #003366; }

/* Customizer panel */
.nexus-customizer {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,51,102,0.08);
}
.nexus-color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.nexus-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.2s;
}
.nexus-swatch.selected { border-color: #1a202c; }
.nexus-font-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nexus-font-option {
  padding: 7px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  transition: all 0.2s;
}
.nexus-font-option.selected { border-color: #003366; background: #003366; color: #fff; }

/* Notifications */
.nexus-notifications { max-height: 400px; overflow-y: auto; }
.nexus-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
.nexus-notif-item.unread { background: #ebf4ff; }
.nexus-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #CC0000; margin-top: 6px; flex-shrink: 0; }
.nexus-notif-text { font-size: 14px; color: #2d3748; }
.nexus-notif-time { font-size: 12px; color: #718096; margin-top: 3px; }

/* Section headers */
.nexus-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.nexus-section-header h3 { font-size: 18px; font-weight: 700; color: #1a202c; }

/* Responsive */
@media (max-width: 768px) {
  .nexus-dash-layout { grid-template-columns: 1fr; }
  .nexus-dash-sidebar { position: static; }
  .nexus-stats-row { grid-template-columns: repeat(2, 1fr); }
  .nexus-dash-nav { display: flex; overflow-x: auto; padding: 0; }
  .nexus-dash-nav a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
}
