/* =========================================
   DASHBOARD.CSS — Polished Layout v2
   ========================================= */
/* =========================================
   DASHBOARD HEADER
   ========================================= */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.6rem;
  color: #2a2962;
  margin: 0;
}

.welcome-text {
  font-size: 1rem;
  color: #555;
}

/* =========================================
   ADD SECTION DUMMY
   ========================================= */
.add-section {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6a5acd;
  background: #f9fafb;
  border: 2px dashed #6a5acd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-section:hover {
  background: #e0e7ff;
  transform: scale(1.03);
}

.add-inner {
  text-align: center;
}

.add-symbol {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}
/* Header Bar */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.top-header .logo-wrap img {
  height: 40px;
  width: auto;
}

.user-info {
  font-size: 1rem;
  color: #444;
}

.user-info strong {
  margin-left: 4px;
  text-transform: capitalize;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.stat-card h3 {
  color: #2a2962;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  color: #2a2962;
  font-weight: bold;
}

/* Sections */
.sections-container {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.sections-container h2 {
  margin-bottom: 20px;
  color: #2a2962;
}

/* =========================================
   SECTION GRID — Responsive 4-per-row layout
   ========================================= */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Force exactly 4 columns on large screens */
@media (min-width: 1100px) {
  .section-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet view — 2 columns */
@media (max-width: 1099px) and (min-width: 600px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view — 1 column */
@media (max-width: 599px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}


.section-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.section-card h4 {
  margin-bottom: 6px;
  color: #2a2962;
}

.progress {
  background: #e5e7eb;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6a5acd, #2a2962);
}

.no-sections {
  color: #777;
  font-style: italic;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.6rem;
  color: #2a2962;
  margin: 0;
}

.welcome-text {
  font-size: 1rem;
  color: #555;
}

/* Add Section Dummy */
.add-section {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6a5acd;
  background: #f9fafb;
  border: 2px dashed #6a5acd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-section:hover {
  background: #e0e7ff;
  transform: scale(1.03);
}

.add-inner {
  text-align: center;
}

.add-symbol {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}
