/*
========================================
EVALUATION MODULE STYLES
Based on /_demo/evaluer.php design
Integrated with design system variables
========================================
*/

/* -------------------------
1. Page Body
-------------------------
*/
body.evaluer-page {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

.evaluer-page .evaluator-header-card,
.evaluer-page .project-card,
.evaluer-page .sidebar-card,
.evaluer-page .daily-stats-card,
.evaluer-page .stat-mini-box {
  background: #ffffff !important;
  color: #1f2937 !important;
}

.evaluer-page .stat-box {
  background: #f9fafb !important;
  color: #1f2937 !important;
}

.evaluer-page .evaluator-level,
.evaluer-page .project-title,
.evaluer-page .dashboard-section-title,
.evaluer-page .sidebar-title,
.evaluer-page .stats-label,
.evaluer-page .leaderboard-name,
.evaluer-page .stat-value,
.evaluer-page .stat-mini-value,
.evaluer-page .criteria-value {
  color: #1f2937 !important;
}

.evaluer-page .evaluator-badge,
.evaluer-page .project-description,
.evaluer-page .stats-sublabel,
.evaluer-page .stat-label,
.evaluer-page .stat-mini-label,
.evaluer-page .criteria-label {
  color: #6b7280 !important;
}

/* -------------------------
2. Evaluator Header Card
-------------------------
*/
.evaluator-header-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}

.evaluator-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.evaluator-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.evaluator-icon {
  background-color: var(--primary-green);
  color: var(--text-white);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.evaluator-level {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.evaluator-badge {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.evaluator-stats {
  display: flex;
  gap: 2rem;
  padding-top: 0.25rem;
}

.evaluator-stats .stat-item {
  text-align: right;
}

.evaluator-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.evaluator-stats .stat-value .fa-leaf {
  color: var(--primary-green);
  font-size: 1.25rem;
  margin-right: 0.25rem;
}

.evaluator-stats .stat-value .token-currency-symbol {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 0.15rem;
  vertical-align: middle;
  line-height: 1;
  opacity: 0.75;
}

.evaluator-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.evaluator-progress-section {
  margin-top: 1.5rem;
}

.evaluator-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.evaluator-progress-labels span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.evaluer-page .progress {
  /* Styling moved to section 7 with !important rules */
}

.evaluer-page .progress-bar {
  /* Styling moved to section 7 with !important rules */
}

/* -------------------------
3. Dashboard Content
-------------------------
*/
.dashboard-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.project-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.difficulty-badge {
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-easy {
  background-color: rgba(74, 124, 89, 0.1);
  color: var(--primary-green);
  border: 1px solid rgba(74, 124, 89, 0.3);
}

.badge-medium {
  background-color: var(--primary-green) !important;
  color: var(--text-white) !important;
  border: 1px solid var(--primary-green) !important;
}

.badge-hard {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--status-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-tertiary);
}

.project-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-meta .meta-item i {
  color: var(--primary-green);
  width: 16px;
  text-align: center;
}

.project-meta .meta-badge span {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-weight: 600;
}

.btn-action {
  /* Styling moved to section 7 with !important rules */
}

/* -------------------------
4. Sidebar
-------------------------
*/
.sidebar-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.sidebar-title i {
  color: var(--primary-green);
}

.criteria-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.criteria-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.criteria-item:last-child {
  margin-bottom: 0;
}

.criteria-label {
  color: var(--text-secondary);
}

.criteria-value {
  font-weight: 600;
  color: var(--text-primary);
}

.stats-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 0;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stats-icon.icon-green {
  background-color: rgba(74, 124, 89, 0.1);
  color: var(--primary-green);
}

.stats-icon.icon-blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--secondary-blue);
}

.stats-icon.icon-purple {
  background-color: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.stats-icon.icon-orange {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stats-label {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.stats-sublabel {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.leaderboard-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rank-number {
  font-weight: 700;
  color: var(--text-light);
  width: 20px;
  text-align: left;
}

.leaderboard-name {
  flex-grow: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.leaderboard-score .fa-leaf {
  color: var(--primary-green);
}

.leaderboard-score .token-currency-symbol {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.75;
  vertical-align: middle;
  line-height: 1;
}

/* -------------------------
5. Responsive Design
-------------------------
*/
@media (max-width: 768px) {
  .evaluator-header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .evaluator-stats {
    justify-content: space-between;
    gap: 1rem;
  }

  .project-header {
    flex-direction: column;
    align-items: stretch;
  }

  .project-meta {
    gap: 1rem;
  }
}

/* -------------------------
6. Status Badges for Pending Evaluations
-------------------------
*/
.project-card.pending {
  border-left: 4px solid var(--secondary-orange);
}

.status-badge {
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--secondary-orange);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.progress-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-tertiary);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* -------------------------
7. Force Green Colors (Override Bootstrap/Other CSS)
-------------------------
*/
.evaluer-page .btn-action,
.evaluer-page button.btn-action,
.evaluer-page a.btn-action {
  background-color: #4a7c59 !important;
  border: 1px solid #4a7c59 !important;
  color: #fff !important;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 8px !important;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.evaluer-page .btn-action:hover,
.evaluer-page button.btn-action:hover,
.evaluer-page a.btn-action:hover {
  background-color: #2a6f52 !important;
  border-color: #2a6f52 !important;
  color: #fff !important;
  text-decoration: none;
}

.evaluer-page .progress {
  height: 10px !important;
  border-radius: 5px !important;
  background-color: #e9ecef !important;
}

.evaluer-page .progress-bar {
  background-color: #4a7c59 !important;
}

.evaluer-page .badge-medium {
  background-color: #4a7c59 !important;
  border-color: #4a7c59 !important;
  color: #fff !important;
}

.evaluer-page .badge-easy {
  background-color: #e2f3e9 !important;
  color: #4a7c59 !important;
  border: 1px solid #bde6cb !important;
}

.evaluer-page .badge-hard {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb !important;
}

.evaluer-page .evaluator-icon {
  background-color: #4a7c59 !important;
}

.evaluer-page .stat-value .fa-leaf {
  color: #4a7c59 !important;
}

.evaluer-page .meta-item i {
  color: #4a7c59 !important;
}

.evaluer-page .sidebar-title i {
  color: #4a7c59 !important;
}

.evaluer-page .stats-icon.icon-green {
  color: #4a7c59 !important;
}

.evaluer-page .leaderboard-score .fa-leaf {
  color: #4a7c59 !important;
}

.evaluer-page .leaderboard-score .token-currency-symbol {
  font-size: 0.65rem;
  font-weight: 500;
  color: #6c757d;
  opacity: 0.75;
  vertical-align: middle;
  line-height: 1;
}

/* Additional demo-specific styling */
.evaluer-page .project-card {
  background: #fff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.evaluer-page .sidebar-card {
  background: #fff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.evaluer-page .project-meta {
  border-top: 1px solid #f0f0f0 !important;
}

.evaluer-page .meta-badge span {
  background: #f0f0f0 !important;
  border-radius: 4px !important;
}

/* Compact Evaluation History List */
.evaluation-history-list {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.evaluation-item {
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

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

.evaluation-item:hover {
  background-color: #f8f9fa;
}

.evaluation-main {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.evaluation-info {
  flex: 1;
  min-width: 0;
}

.evaluation-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evaluation-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.challenge-tag,
.date-tag,
.owner-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  background: #f8f9fa;
  color: #6c757d;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.challenge-tag {
  background: #e3f2fd;
  color: #1976d2;
}

.challenge-tag i {
  color: #ffc107;
}

.owner-tag {
  background: #f3e5f5;
  color: #7b1fa2;
}

.owner-tag i {
  color: #9c27b0;
}

.date-tag i {
  color: #757575;
}

.evaluation-score {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 60px;
  text-align: center;
}

.score-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
}

.score-max {
  font-size: 0.8rem;
  color: #6c757d;
}

.evaluation-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-completed {
  background: #28a745;
}

.status-dot.status-in_progress {
  background: #fd7e14;
}

.status-dot.status-pending {
  background: #ffc107;
}

.status-dot.status-draft {
  background: #dc3545;
}

.status-text {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
}

.evaluation-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-icon {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #6c757d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.action-icon:hover {
  background: #e9ecef;
  color: #495057;
}

.action-icon i {
  font-size: 0.85rem;
}

/* Responsive Design for Compact List */
@media (max-width: 768px) {
  .evaluation-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .evaluation-info {
    order: 1;
  }

  .evaluation-title {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .evaluation-meta {
    flex-wrap: wrap;
  }

  .evaluation-score {
    order: 2;
    justify-content: flex-start;
    min-width: auto;
  }

  .evaluation-status {
    order: 3;
    min-width: auto;
  }

  .evaluation-actions {
    order: 4;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .evaluation-main {
    padding: 0.5rem 0.75rem;
  }

  .evaluation-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .challenge-tag,
  .date-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
  }
}

/* Filter buttons enhancement */
.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-buttons .btn {
  justify-content: flex-start;
  text-align: left;
}

.filter-buttons .btn.active {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Evaluation Filter Bar ───────────────────────────────────────────────── */
.eval-filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.eval-filter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Search input */
.eval-filter-search {
    position: relative;
    flex: 2;
    min-width: 200px;
}
.eval-filter-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}
.eval-filter-search input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8f9fa;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.eval-filter-search input:focus {
    border-color: #4a7c59;
    background: #fff;
}

/* Challenge select */
.eval-filter-select {
    position: relative;
    flex: 1;
    min-width: 160px;
}
.eval-filter-select select {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8f9fa;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.eval-filter-select select:focus {
    border-color: #4a7c59;
    background: #fff;
}

/* Custom toggle */
.eval-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}
.eval-filter-toggle input[type="checkbox"] { display: none; }
.eval-toggle-track {
    width: 36px;
    height: 20px;
    background: #dee2e6;
    border-radius: 20px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.eval-filter-toggle input:checked + .eval-toggle-track { background: #4a7c59; }
.eval-toggle-thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.eval-filter-toggle input:checked + .eval-toggle-track .eval-toggle-thumb { left: 18px; }
.eval-toggle-label {
    font-size: 0.85rem;
    color: #495057;
    white-space: nowrap;
}

/* Submit button */
.eval-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}
.eval-filter-btn:hover { background: #3d6849; transform: translateY(-1px); }

/* Clear button */
.eval-filter-clear {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.2s;
    flex-shrink: 0;
}
.eval-filter-clear:hover { background: #e9ecef; color: #495057; }

/* Active filter chips */
.eval-filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #f1f3f5;
    font-size: 0.78rem;
    color: #6c757d;
}
.eval-filter-chip {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .eval-filter-form { gap: 0.4rem; }
    .eval-filter-search { flex: 1 1 100%; }
    .eval-filter-select { flex: 1 1 calc(50% - 0.4rem); }
    .eval-filter-btn span { display: none; }
    .eval-filter-btn { padding: 0.55rem 0.75rem; }
}

/* -------------------------
Already Evaluated Badge
-------------------------
*/
.project-card.already-evaluated {
  position: relative;
  opacity: 0.85;
  border-left: 4px solid var(--primary-green);
}

.evaluated-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-green);
  color: var(--text-white);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.evaluated-badge i {
  font-size: 1rem;
}

.project-card.already-evaluated .btn-action {
  background-color: var(--text-muted);
  border-color: var(--text-muted);
}

.project-card.already-evaluated .btn-action:hover {
  background-color: var(--text-secondary);
  border-color: var(--text-secondary);
}

/* -------------------------
Responsive Design
-------------------------
*/
@media (max-width: 768px) {
  .evaluation-search-form .form-check {
    margin-top: 0.5rem;
  }

  .evaluated-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 0.75rem;
  }

  .project-card.already-evaluated {
    padding-top: 1rem;
  }
}

/* -------------------------
Daily Evaluation Statistics
-------------------------
*/
.daily-stats-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  height: 100%;
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-box-today .stat-icon {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

.stat-box-remaining .stat-icon {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--primary-green);
}

.stat-box-pending .stat-icon {
  background-color: rgba(255, 152, 0, 0.1);
  color: #FF9800;
}

.stat-box-total .stat-icon {
  background-color: rgba(156, 39, 176, 0.1);
  color: #9C27B0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-sublabel {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.daily-stats-card .alert {
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.daily-stats-card .alert i {
  font-size: 1.25rem;
}

/* -------------------------
Mini Stat Boxes (for evaluate page)
-------------------------
*/
.stat-mini-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.stat-mini-box:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.stat-mini-box i {
  font-size: 1.25rem;
}

.stat-mini-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0.25rem;
}

.stat-mini-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* -------------------------
Responsive Design for Daily Stats
-------------------------
*/
@media (max-width: 768px) {
  .stat-box {
    padding: 1rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }
}