/* ==========================================================================
   BAOBAB RISE - Mobile Apps Simulator Styles
   Supports Principal, Trainer, and Parent App layouts
   ========================================================================== */

/* Simulator Canvas Container */
.simulator-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 60px;
  min-height: calc(100vh - 65px);
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
  gap: 20px;
}

/* Screen Navigator Bar for Demo */
.mobile-screens-navbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 95vw;
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-screen-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-nav-screen-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-screen-btn.active {
  background: #22c55e;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
}

/* Realistic Phone Frame */
.phone-mockup-wrapper {
  transition: all 0.3s ease;
}

.phone-mockup-wrapper.phone-frame {
  width: 390px;
  height: 800px;
  background: #0f172a;
  border-radius: 50px;
  padding: 12px;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.85), 0 0 0 2px rgba(255, 255, 255, 0.15), inset 0 0 6px rgba(255, 255, 255, 0.2);
  position: relative;
}

.phone-mockup-wrapper.full-width {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 800px;
  background: #ffffff;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 38px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.phone-mockup-wrapper.full-width .phone-screen {
  border-radius: 20px;
}

/* Status Bar & Notch */
.phone-notch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 24px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: inherit;
  z-index: 50;
  position: sticky;
  top: 0;
}

.phone-notch-island {
  width: 96px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.phone-mockup-wrapper.full-width .phone-notch-bar {
  display: none;
}

/* Mobile App Header */
.mobile-app-header {
  color: #ffffff;
  padding: 12px 18px 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.principal-theme { background: linear-gradient(180deg, #093c24 0%, #064e3b 100%); }
.trainer-theme { background: linear-gradient(180deg, #04382c 0%, #065f46 100%); }
.parent-theme { background: linear-gradient(180deg, #093c24 0%, #064e3b 100%); }

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

.mobile-header-back-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.mobile-header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
}

.mobile-header-subinfo {
  font-size: 11.5px;
  opacity: 0.9;
  font-weight: 500;
}

/* Mobile Screens Content Container */
.mobile-screen-content {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px; /* Space for bottom navigation */
  display: none;
}

.mobile-screen-content.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: mobileSlide 0.2s ease-out;
}

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

/* Mobile Cards */
.m-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.m-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.m-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.m-card-link {
  font-size: 12px;
  color: #0284c7;
  font-weight: 600;
  cursor: pointer;
}

/* KPI 2x2 Grid in Mobile */
.m-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-kpi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.m-kpi-info {
  display: flex;
  flex-direction: column;
}

.m-kpi-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.m-kpi-num {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.m-kpi-sub {
  font-size: 10px;
  color: #10b981;
  font-weight: 700;
}

/* Filter pills row */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.filter-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Schedule Items List */
.schedule-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.schedule-time-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

.schedule-info {
  flex: 1;
}

.schedule-class-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.schedule-sub-skill {
  font-size: 11px;
  color: #64748b;
}

.schedule-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon-done {
  background: #dcfce7;
  color: #16a34a;
}

.status-icon-pending {
  background: #e0f2fe;
  color: #0284c7;
}

/* Attendance Ring & Donut for Mobile */
.attendance-overview-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.donut-attendance-circle {
  width: 110px;
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-attendance-center {
  position: absolute;
  text-align: center;
  line-height: 1.1;
}

.attendance-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.att-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.att-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.att-count {
  font-weight: 700;
  color: #0f172a;
  margin-left: auto;
}

/* Interactive Student List */
.student-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.student-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.student-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.student-roll {
  font-size: 11px;
  color: #94a3b8;
}

.student-status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.student-status-badge.Present { background: #dcfce7; color: #16a34a; }
.student-status-badge.Absent { background: #fee2e2; color: #dc2626; }
.student-status-badge.Late { background: #fef3c7; color: #d97706; }

/* Photo Grid */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.photo-gallery-item {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-gallery-item:hover img {
  transform: scale(1.05);
}

.photo-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #ffffff;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
}

/* Monthly Attendance Calendar (Parent View) */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  margin-top: 10px;
}

.cal-header-day {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.cal-day-cell.present {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}

.cal-day-cell.absent {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
}

.cal-day-cell.today {
  border: 2px solid #0284c7;
}

/* Bottom Navigation Bar */
.mobile-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 50;
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.phone-mockup-wrapper.full-width .mobile-bottom-nav {
  border-radius: 0 0 20px 20px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px 4px;
  flex: 1;
  transition: all 0.15s ease;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.2s;
}

.mobile-nav-item span {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.mobile-nav-item.active {
  color: #15803d;
  font-weight: 800;
}

.mobile-nav-item.active svg {
  transform: translateY(-1px);
}

.trainer-theme ~ .mobile-bottom-nav .mobile-nav-item.active {
  color: #0d9488;
}

.parent-theme ~ .mobile-bottom-nav .mobile-nav-item.active {
  color: #166534;
}

/* Trainer Curriculum Task Cards & 3 Sections */
.curriculum-task-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.curriculum-task-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.curriculum-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.curriculum-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.tag-monthly { background: #dbeafe; color: #1e40af; }
.tag-weekly { background: #fef3c7; color: #92400e; }
.tag-special { background: #fce7f3; color: #9d174d; }

.task-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-status-badge.pending { background: #fef3c7; color: #b45309; }
.task-status-badge.in-progress { background: #e0f2fe; color: #0369a1; }
.task-status-badge.completed { background: #dcfce7; color: #15803d; }

.curriculum-media-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.media-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.media-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.media-pill-btn.youtube { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.media-pill-btn.facebook { background: #e0e7ff; border-color: #c7d2fe; color: #3730a3; }
.media-pill-btn.video { background: #f3e8ff; border-color: #d8b4fe; color: #6b21a8; }
.media-pill-btn.photo { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

