/* Dashboard Base */
.dashboard-scroll {
  padding: 20px;
  background: linear-gradient(135deg, #e8e9ff 0%, #f0f1ff 50%, #e6f4ff 100%);
  min-height: 100vh;
}

/* Override global header ONLY for dashboard page */
body:has(#dashboard-screen.active) .global-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

/* Greeting + Brain */
.greeting-brain-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.greeting-text {
  flex: 1;
  padding-top: 8px;
}

.greeting-line-1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.greeting-line-2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #4f46e5;
  line-height: 1.1;
}

.greeting-motivational {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #64748b;
  margin-top: 16px;
  line-height: 1.5;
}

.brain-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-glow-ring-1 {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

.brain-glow-ring-2 {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.4) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite 0.5s;
}

.brain-glow-ring-3 {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 180, 252, 0.5) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite 1s;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.sparkle-1 {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 18px;
  height: 18px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(129, 140, 248, 0.6));
  animation: twinkle 2s ease-in-out infinite;
}

.sparkle-2 {
  position: absolute;
  bottom: 20px;
  left: 8px;
  width: 14px;
  height: 14px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(129, 140, 248, 0.6));
  animation: twinkle 2s ease-in-out infinite 0.4s;
}

.sparkle-3 {
  position: absolute;
  top: 30px;
  left: 14px;
  width: 12px;
  height: 12px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(129, 140, 248, 0.6));
  animation: twinkle 2s ease-in-out infinite 0.8s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.brain-image-placeholder {
  font-size: 72px;
  position: relative;
  z-index: 10;
}

/* Stats Grid */
.stats-grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.stat-card-new {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}

.stat-card-new::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 0 20px 20px;
}

.stat-card-new:has(.stat-icon-fire)::after {
  background: linear-gradient(90deg, #f97316, #fdba74);
}

.stat-card-new:has(.stat-icon-book)::after {
  background: linear-gradient(90deg, #3b82f6, #93c5fd);
}

.stat-card-new:has(.stat-icon-check)::after {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.stat-icon-fire {
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.stat-icon-book {
  background: linear-gradient(135deg, #eff6ff, #bfdbfe);
}

.stat-icon-check {
  background: linear-gradient(135deg, #f0fdf4, #bbf7d0);
}

.stat-icon-emoji {
  font-size: 24px;
}

.stat-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; /* 30% smaller than 24px */
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
  line-height: 1;
}

.stat-label-text {
  font-family: 'Inter', sans-serif;
  font-size: 10px; /* 30% smaller than 12px */
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.stat-subtext-fire {
  font-family: 'Inter', sans-serif;
  font-size: 8px; /* 30% smaller than 10px */
  font-weight: 500;
  color: #f97316;
}

.stat-subtext-book {
  font-family: 'Inter', sans-serif;
  font-size: 8px; /* 30% smaller than 10px */
  font-weight: 500;
  color: #3b82f6;
}

.stat-subtext-check {
  font-family: 'Inter', sans-serif;
  font-size: 8px; /* 30% smaller than 10px */
  font-weight: 500;
  color: #22c55e;
}

/* Section Wrapper */
.section-wrapper {
  margin-bottom: 28px;
}

.section-header-new {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.section-cal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
}

.section-title-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

/* Today's Revision */
.today-revision-container-new {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.today-revision-empty {
  text-align: center;
  padding: 10px 0;
}

.today-revision-empty-icon {
  font-size: 72px;
  margin-bottom: 12px;
}

.today-revision-empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.today-revision-empty-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #64748b;
}

/* Make Schedule Button */
.make-schedule-btn-wrapper {
  margin-bottom: 28px;
}

.make-schedule-btn-new {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: white;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.make-schedule-btn-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
}

.make-schedule-plus {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

/* Upcoming Revisions */
.upcoming-revision-container-new {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.upcoming-revision-empty {
  text-align: center;
  padding: 10px 0;
}

.upcoming-revision-empty-icon {
  font-size: 72px;
  margin-bottom: 12px;
}

.upcoming-revision-empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.upcoming-revision-empty-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #64748b;
}

/* Calendar */
.calendar-container-new {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.calendar-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-month-new {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
}

.calendar-nav-new {
  display: flex;
  gap: 12px;
}

.calendar-nav-btn-new {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  font-size: 20px;
  transition: all 0.2s ease;
}

.calendar-nav-btn-new:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.calendar-grid-new {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-header-new {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  padding: 8px 0;
  background: #f1f5f9;
  border-radius: 12px;
}

.calendar-day-new {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-day-new:hover {
  background: #f1f5f9;
}

.calendar-day-new.today {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.calendar-day-new.has-revision {
  background: #e0e7ff;
  color: #4f46e5;
}

.calendar-day-new.has-revision.completed {
  background: #dcfce7;
  color: #16a34a;
}

.calendar-day-new.has-revision.overdue {
  background: #fee2e2;
  color: #dc2626;
}

/* Revision Cards */
.revision-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.revision-card:last-child {
  margin-bottom: 0;
}

.revision-card-info {
  flex: 1;
}

.revision-subject {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 2px;
}

.revision-chapter {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.revision-number {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.revision-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: bold;
}

.revision-checkbox.completed {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.upcoming-group {
  margin-bottom: 16px;
}

.upcoming-group:last-child {
  margin-bottom: 0;
}

.upcoming-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

/* Original Dashboard Header Styles */
.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-back-btn {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-avatar-dashboard {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.dashboard-greeting h1 {
  font-size: 28px;
  color: #1e293b;
  margin: 0 0 8px 0;
  font-family: 'Plus Jakarta Sans', 'Lexend', sans-serif;
}

.dashboard-greeting p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

/* Schedule Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.schedule-modal {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: #f1f5f9;
}

.modal-content {
  padding: 24px;
}

.modal-form-group {
  margin-bottom: 20px;
}

.modal-label {
  display: block;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.subject-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.subject-btn {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
}

.subject-btn:hover {
  border-color: #6366f1;
  background: #eff6ff;
}

.subject-btn-selected {
  border-color: #6366f1 !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.subject-btn-disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.modal-select, .modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.modal-select:focus, .modal-input:focus {
  border-color: #6366f1;
}

.schedule-preview {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-top: 10px;
}

.preview-title {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
}

.preview-revision-item {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Inter', sans-serif;
  color: #475569;
}

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

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 12px;
}

.modal-btn-cancel, .modal-btn-primary {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.modal-btn-cancel {
  background: #f1f5f9;
  color: #64748b;
}

.modal-btn-cancel:hover {
  background: #e2e8f0;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}
