/* ============================================================
   DailyReportModule CSS — استخراج‌شده از استایل‌های Inline صفحات قدیمی
   (DailyReport.razor, AdminReports.razor, UsersSummary.razor) — همون طراحی،
   فقط زیر .daily-report-module اسکوپ شده تا با بقیه‌ی صفحات تداخل نکنه.
   ============================================================ */

/* ── صفحه‌ی ارسال گزارش (دانش‌آموز) ── */
.daily-report-module .dr-container {
  max-width: 500px;
  margin: 2rem auto;
  font-family: 'Vazirmatn', 'iransansweb', Tahoma, sans-serif;
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.daily-report-module .dr-status-banner { padding: 1rem; border-radius: 12px; margin-bottom: 1.5rem; text-align: center; font-weight: 600; animation: drSlideDown 0.4s ease-out; }
.daily-report-module .dr-status-open { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.daily-report-module .dr-status-closed { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; }
.daily-report-module .dr-status-submitted { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; }
.daily-report-module .dr-status-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.daily-report-module h2 { text-align: center; color: #1e293b; margin-bottom: 1.5rem; font-size: 1.4rem; font-weight: 800; }
.daily-report-module .dr-form-group { margin-bottom: 1.2rem; animation: drFadeIn 0.5s ease-out backwards; }
.daily-report-module label { display: block; font-weight: 600; margin-bottom: 8px; color: #475569; font-size: 0.9rem; }
.daily-report-module input[type="time"], .daily-report-module input[type="number"], .daily-report-module select, .daily-report-module textarea {
  width: 100%; padding: 12px 14px; font-size: 0.95rem; border-radius: 10px; border: 2px solid #e2e8f0; box-sizing: border-box; transition: all 0.3s ease; background: #f8fafc;
}
.daily-report-module input:focus, .daily-report-module select:focus, .daily-report-module textarea:focus { border-color: #2563eb; background: white; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); outline: none; }
.daily-report-module input:disabled, .daily-report-module select:disabled, .daily-report-module textarea:disabled { background: #f1f5f9; cursor: not-allowed; opacity: 0.6; }
.daily-report-module .dr-flex-row { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.daily-report-module .dr-flex-item { flex: 1 1 48%; min-width: 140px; }
.daily-report-module textarea { min-height: 90px; resize: vertical; font-family: inherit; }
.daily-report-module .dr-btn-submit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; border: none; padding: 14px 24px; border-radius: 12px;
  font-size: 1.05rem; font-weight: 700; width: 100%; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); position: relative; overflow: hidden;
}
.daily-report-module .dr-btn-submit:hover:enabled { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.daily-report-module .dr-btn-submit:disabled { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); cursor: not-allowed; box-shadow: none; }
.daily-report-module .dr-message { padding: 12px 16px; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; animation: drSlideDown 0.3s ease-out; }
.daily-report-module .dr-message-error { background: #fee2e2; color: #991b1b; border-right: 4px solid #dc2626; }
.daily-report-module .dr-message-success { background: #d1fae5; color: #065f46; border-right: 4px solid #10b981; }
.daily-report-module .dr-progress-indicator { text-align: center; color: #64748b; font-size: 0.85rem; margin-top: 1rem; }
.daily-report-module .dr-stats-preview { background: #f8fafc; padding: 12px; border-radius: 10px; margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.85rem; }
.daily-report-module .dr-stat-item { display: flex; justify-content: space-between; padding: 6px; }
.daily-report-module .dr-stat-label { color: #64748b; font-weight: 500; }
.daily-report-module .dr-stat-value { color: #1e293b; font-weight: 700; }
.daily-report-module .dr-countdown { text-align: center; font-size: 0.9rem; color: #64748b; margin-top: 1rem; padding: 8px; background: #fef3c7; border-radius: 8px; }

/* ── نوار «هفته‌ی من» (streak) — بازطراحی ۲۴ اوت ۲۰۲۶ ── */
.daily-report-module .dr-streak-strip { background: #f8fafc; border-radius: 12px; padding: 12px 14px; margin-bottom: 1.2rem; }
.daily-report-module .dr-streak-label { font-size: 0.78rem; font-weight: 700; color: #64748b; margin-bottom: 8px; }
.daily-report-module .dr-streak-days { display: flex; justify-content: space-between; gap: 4px; }
.daily-report-module .dr-streak-day {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px;
  border-radius: 8px; background: #eef1f5; color: #94a3b8; font-size: 0.72rem; font-weight: 700;
}
.daily-report-module .dr-streak-day.done { background: #d1fae5; color: #065f46; }
.daily-report-module .dr-streak-day.today { box-shadow: 0 0 0 2px #2563eb inset; }
.daily-report-module .dr-streak-day-mark { font-size: 0.85rem; min-height: 1.1em; }

/* ── انتخابگر بصری «رضایت از خود» (جایگزین select ساده) ── */
.daily-report-module .dr-mood-picker { display: flex; gap: 6px; justify-content: space-between; }
.daily-report-module .dr-mood-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
  border: 2px solid #e2e8f0; border-radius: 10px; background: #f8fafc; cursor: pointer;
  transition: all 0.2s ease; font-family: inherit;
}
.daily-report-module .dr-mood-btn:hover { border-color: #93c5fd; background: white; }
.daily-report-module .dr-mood-btn.selected { border-color: #2563eb; background: #eff6ff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(37,99,235,0.18); }
.daily-report-module .dr-mood-emoji { font-size: 1.4rem; }
.daily-report-module .dr-mood-label { font-size: 0.68rem; font-weight: 600; color: #475569; white-space: nowrap; }
@media (max-width: 420px) { .daily-report-module .dr-mood-label { display: none; } }

/* ── Skeleton بارگذاری (به‌جای اسپینر ساده) ── */
.daily-report-module .dr-skeleton { display: flex; flex-direction: column; gap: 14px; }
.daily-report-module .dr-skeleton-banner { height: 76px; border-radius: 12px; }
.daily-report-module .dr-skeleton-row { display: flex; gap: 1rem; }
.daily-report-module .dr-skeleton-field { flex: 1; height: 46px; border-radius: 10px; }
.daily-report-module .dr-skeleton-wide { height: 90px; }
.daily-report-module .dr-skeleton-btn { height: 50px; border-radius: 12px; margin-top: 6px; }
.daily-report-module .dr-skeleton-banner,
.daily-report-module .dr-skeleton-field,
.daily-report-module .dr-skeleton-btn {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: drSkeletonPulse 1.4s ease infinite;
}
@keyframes drSkeletonPulse { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 500px) { .daily-report-module .dr-flex-item { flex: 1 1 100%; } }

@keyframes drFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── صفحات ادمین (گزارش‌ها + خلاصه‌ی کاربران) ── */
.daily-report-module .admin-container, .daily-report-module .users-container { max-width: 1400px; margin: 2rem auto; padding: 0 1.5rem; font-family: 'Vazirmatn', 'iransansweb', Tahoma, sans-serif; }
.daily-report-module .header, .daily-report-module .page-header { color: white; padding: 2rem; border-radius: 16px; margin-bottom: 2rem; }
.daily-report-module .header { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3); }
.daily-report-module .page-header { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3); }
.daily-report-module .header h1, .daily-report-module .page-header h1 { margin: 0 0 0.5rem 0; font-size: 2rem; font-weight: 800; }
.daily-report-module .stats-grid, .daily-report-module .summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.daily-report-module .stat-card, .daily-report-module .summary-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); text-align: center; transition: transform 0.3s ease; }
.daily-report-module .stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.daily-report-module .stat-icon, .daily-report-module .summary-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.daily-report-module .stat-value, .daily-report-module .summary-value { font-size: 2rem; font-weight: 800; color: #1e293b; margin: 0.5rem 0; }
.daily-report-module .stat-label, .daily-report-module .summary-label { color: #64748b; font-size: 0.9rem; font-weight: 600; }
.daily-report-module .filters-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); margin-bottom: 2rem; }
.daily-report-module .filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.daily-report-module .filter-group { display: flex; flex-direction: column; }
.daily-report-module .filter-label { font-weight: 600; color: #475569; margin-bottom: 0.5rem; font-size: 0.9rem; }
.daily-report-module .filter-input, .daily-report-module .filter-select { padding: 10px 14px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; background: #f8fafc; }
.daily-report-module .filter-input:focus, .daily-report-module .filter-select:focus { border-color: #2563eb; background: white; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.daily-report-module .btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.daily-report-module .btn { padding: 10px 20px; border: none; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; }
.daily-report-module .btn-primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.daily-report-module .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.daily-report-module .btn-secondary { background: #f1f5f9; color: #475569; }
.daily-report-module .btn-secondary:hover { background: #e2e8f0; }
.daily-report-module .btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; }
.daily-report-module .btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4); }
.daily-report-module .reports-table-container { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); overflow: hidden; }
.daily-report-module .table-responsive { overflow-x: auto; }
.daily-report-module .reports-table { width: 100%; border-collapse: collapse; }
.daily-report-module .reports-table thead { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }
.daily-report-module .reports-table th { padding: 1rem; text-align: right; font-weight: 700; color: #1e293b; font-size: 0.9rem; border-bottom: 2px solid #e2e8f0; }
.daily-report-module .reports-table td { padding: 1rem; text-align: right; border-bottom: 1px solid #f1f5f9; color: #475569; }
.daily-report-module .reports-table tbody tr:hover { background: #fafbfc; }
.daily-report-module .badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.daily-report-module .badge-success { background: #d1fae5; color: #065f46; }
.daily-report-module .badge-warning { background: #fef3c7; color: #92400e; }
.daily-report-module .badge-info { background: #eff6ff; color: #1d4ed8; }
.daily-report-module .badge-danger { background: #fee2e2; color: #991b1b; }
.daily-report-module .satisfaction-emoji { font-size: 1.2rem; }
.daily-report-module .no-data, .daily-report-module .no-users { text-align: center; padding: 4rem 2rem; color: #94a3b8; }
.daily-report-module .no-data-icon, .daily-report-module .no-users-icon { font-size: 4rem; margin-bottom: 1rem; }
.daily-report-module .loading { text-align: center; padding: 3rem; color: #64748b; }
.daily-report-module .spinner { border: 4px solid #f3f4f6; border-top: 4px solid #2563eb; border-radius: 50%; width: 50px; height: 50px; animation: drSpin 1s linear infinite; margin: 0 auto 1rem; }
.daily-report-module .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.daily-report-module .modal-content { background: white; padding: 2rem; border-radius: 16px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.daily-report-module .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #f1f5f9; }
.daily-report-module .modal-header h3 { margin: 0; color: #1e293b; font-size: 1.5rem; }
.daily-report-module .modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #94a3b8; }
.daily-report-module .detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.daily-report-module .detail-item { padding: 1rem; background: #f8fafc; border-radius: 8px; border-right: 4px solid #2563eb; }
.daily-report-module .detail-label { font-size: 0.8rem; color: #64748b; font-weight: 600; margin-bottom: 0.5rem; }
.daily-report-module .detail-value { font-size: 1.1rem; color: #1e293b; font-weight: 700; }
.daily-report-module .pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 1rem; }
.daily-report-module .pagination button { padding: 8px 16px; border: 2px solid #e2e8f0; background: white; border-radius: 8px; cursor: pointer; font-weight: 600; }
.daily-report-module .pagination button:hover:not(:disabled) { border-color: #2563eb; color: #2563eb; }
.daily-report-module .pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.daily-report-module .pagination .page-info { color: #64748b; font-weight: 600; }

.daily-report-module .users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.daily-report-module .user-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); border-right: 4px solid transparent; }
.daily-report-module .user-card.reported-today { border-right-color: #10b981; }
.daily-report-module .user-card.not-reported { border-right-color: #f59e0b; }
.daily-report-module .user-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.daily-report-module .user-id { font-weight: 700; color: #1e293b; }
.daily-report-module .status-badge { padding: 4px 10px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; }
.daily-report-module .status-reported { background: #d1fae5; color: #065f46; }
.daily-report-module .status-pending { background: #fef3c7; color: #92400e; }
.daily-report-module .user-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.daily-report-module .stat-box { text-align: center; background: #f8fafc; border-radius: 8px; padding: 0.75rem; }
.daily-report-module .stat-box .stat-value { font-size: 1.3rem; }
.daily-report-module .last-report { font-size: 0.85rem; color: #475569; border-top: 1px solid #f1f5f9; padding-top: 0.75rem; }

@media (max-width: 768px) {
  .daily-report-module .stats-grid, .daily-report-module .filters-grid, .daily-report-module .users-grid { grid-template-columns: 1fr; }
  .daily-report-module .table-responsive { font-size: 0.85rem; }
}

@keyframes drSpin { to { transform: rotate(360deg); } }
