/* ============================================================
   Dashboard LMS Tridaya — Global Styles
   ============================================================ */

/* ── Hover lift ──────────────────────────────────────────── */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.hover-lift:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ── Card base ───────────────────────────────────────────── */
.card {
  transition: all 0.3s ease !important;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  background-color: #f8f9fa !important;
  border-left: 4px solid #667eea;
}
.breadcrumb-item.active {
  color: #667eea;
}

/* ── Button hover shift ──────────────────────────────────── */
.btn-outline-primary:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .hover-lift:hover {
    transform: translateY(-3px) !important;
  }
}

.transition-hover {
  transition: all 0.3s ease;
}
.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes pulseWarning {
  0%   { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
.pulse-warning {
  animation: pulseWarning 2s infinite;
}

.pulse-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
  margin-right: 6px;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}

.pulse-dot-lg {
  animation: pulseDotLg 2s infinite;
}
@keyframes pulseDotLg {
  0%   { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(25, 135, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* ── fade-up entrance (staggered via --delay) ────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* ── Shimmer ─────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Hero Banner ─────────────────────────────────────────── */
.siswa-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2352 0%, #1B3A7A 45%, #2563eb 100%);
  padding: 28px 32px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  transition: background 1s ease;
}
.siswa-hero--pagi  { background: linear-gradient(135deg, #0d2352 0%, #1B3A7A 45%, #2563eb 100%); }
.siswa-hero--siang { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 45%, #06b6d4 100%); }
.siswa-hero--sore  { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 45%, #f97316 100%); }
.siswa-hero--malam { background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 45%, #6366f1 100%); }

.siswa-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.siswa-hero__orb--1 {
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  top: -60px; right: -40px;
  animation: orbFloat1 7s ease-in-out infinite;
}
.siswa-hero__orb--2 {
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  bottom: -30px; right: 120px;
  animation: orbFloat2 9s ease-in-out infinite;
}
.siswa-hero__orb--3 {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.04);
  top: 20px; left: 200px;
  animation: orbFloat3 6s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-12px,15px) scale(1.06); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(10px,-10px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(8px,12px) scale(0.94); }
}

.siswa-hero__particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  top:  calc(10% + (var(--i) * 7.2%) - 10%);
  left: calc(var(--i) * 8.5%);
  animation: particleTwinkle calc(2s + var(--i) * 0.3s) ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.25s);
}
@keyframes particleTwinkle {
  0%,100% { opacity: 0.15; transform: scale(1); }
  50%     { opacity: 0.9;  transform: scale(1.6); }
}

.siswa-hero__body { position: relative; z-index: 2; }

.siswa-hero__avatar {
  position: relative;
  flex-shrink: 0;
  width: 78px; height: 78px;
  border-radius: 50%;
  overflow: visible;
}
.siswa-hero__avatar img {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85);
  object-fit: cover;
  display: block;
}
.siswa-hero__avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.4);
  animation: ringRotate 10s linear infinite;
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.siswa-hero__greeting {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.siswa-hero__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.siswa-hero__sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.siswa-hero__clock { text-align: right; flex-shrink: 0; }
.siswa-hero__clock-time {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.siswa-hero__clock-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ── Section icons ───────────────────────────────────────── */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 1rem;
}
.section-icon--blue   { background: rgba(27,58,122,0.12); color: #1B3A7A; }
.section-icon--purple { background: rgba(111,66,193,0.12); color: #6f42c1; }

/* ── Link arrow ──────────────────────────────────────────── */
.btn-link-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1B3A7A;
  text-decoration: none;
  transition: gap 0.2s;
}
.btn-link-arrow:hover { color: #2563eb; text-decoration: underline; }

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton-card {
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #f8f9fa;
  border-radius: 16px;
}
.empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  font-size: 1.75rem;
}
.empty-state__icon--green { background: rgba(25,135,84,0.12); color: #198754; }

/* ── Ujian card ──────────────────────────────────────────── */
.ujian-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fadeUp 0.55s cubic-bezier(0.22,0.61,0.36,1) forwards;
  animation-delay: var(--delay,0s);
}
.ujian-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.ujian-card__stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 16px 16px 0 0;
}
.ujian-card__stripe--belum   { background: linear-gradient(90deg,#1B3A7A,#3b82f6); }
.ujian-card__stripe--sedang  { background: linear-gradient(90deg,#f59e0b,#fbbf24); animation: shimmer 2s infinite; background-size: 200% 100%; }
.ujian-card__stripe--selesai { background: linear-gradient(90deg,#10b981,#34d399); }

.ujian-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.ujian-card__badge--belum   { background: rgba(27,58,122,0.1); color: #1B3A7A; }
.ujian-card__badge--sedang  { background: rgba(245,158,11,0.15); color: #b45309; animation: pulseWarning 2s infinite; }
.ujian-card__badge--selesai { background: rgba(16,185,129,0.12); color: #065f46; }

.ujian-card__durasi {
  text-align: center;
  background: #f1f5ff;
  border-radius: 10px;
  padding: 6px 10px;
}
.ujian-card__durasi-num   { display: block; font-size: 1.1rem; font-weight: 700; color: #1B3A7A; }
.ujian-card__durasi-label { font-size: 0.65rem; color: #6b7280; }

.ujian-card__info {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  gap: 6px;
  align-items: center;
}
.ujian-card__info i { color: #1B3A7A; font-size: 0.95rem; }

/* ── Action button ───────────────────────────────────────── */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-action:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.btn-action--blue  { background: linear-gradient(135deg,#1B3A7A,#2563eb); color: #fff; }
.btn-action--amber { background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #1a1100; }

/* ── Prodi card ──────────────────────────────────────────── */
.prodi-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  background: #fff;
}
.prodi-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg,#0d2352,#1B3A7A,#2563eb);
  position: relative;
  overflow: hidden;
}
.prodi-card__header::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.prodi-card__header-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.prodi-card__edit-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.prodi-card__edit-btn:hover { background: rgba(255,255,255,0.28); color: #fff; }
.prodi-card__body { padding: 16px 20px; }

.prodi-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 4px;
}
.prodi-empty__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  animation: pulseWarning 2.5s infinite;
}

.prodi-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid #e8eef8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.22,0.61,0.36,1) forwards;
  animation-delay: var(--delay,0s);
}
.prodi-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27,58,122,0.1);
}
.prodi-item__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1B3A7A,#2563eb);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.prodi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
}
.prodi-badge i { font-size: 0.75rem; }
.prodi-badge--blue  { background: rgba(27,58,122,0.1);  color: #1B3A7A; }
.prodi-badge--cyan  { background: rgba(6,182,212,0.12);  color: #0891b2; }
.prodi-badge--green { background: rgba(16,185,129,0.12); color: #065f46; }

/* ── Course card ─────────────────────────────────────────── */
.course-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fadeUp 0.55s cubic-bezier(0.22,0.61,0.36,1) forwards;
  animation-delay: var(--delay,0s);
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.course-card__cover { height: 96px; overflow: hidden; }
.course-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.course-card__cover--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
}
.course-card__cover--placeholder i { font-size: 2.2rem; color: #1B3A7A; opacity: 0.35; }
.course-card__body    { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.course-card__mapel   { font-size: 0.72rem; color: #6b7280; margin-bottom: 3px; }
.course-card__title   { font-size: 0.88rem; font-weight: 700; color: #111; margin-bottom: 10px; }
.course-card__progress { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 5px; }
.course-card__progress-label { color: #9ca3af; }
.course-card__progress-pct   { color: #1B3A7A; font-weight: 700; }
.course-card__bar {
  height: 5px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.course-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg,#1B3A7A,#3b82f6);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22,0.61,0.36,1);
}

/* ── Quick cards ─────────────────────────────────────────── */
.quick-card {
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}
.quick-card:hover .quick-card__arrow { opacity: 1; transform: translateX(0); }
.quick-card--blue  { background: linear-gradient(135deg,#eff6ff,#dbeafe); }
.quick-card--green { background: linear-gradient(135deg,#f0fdf4,#dcfce7); }
.quick-card--amber { background: linear-gradient(135deg,#fffbeb,#fef3c7); }

.quick-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.quick-card:hover .quick-card__icon { transform: scale(1.12) rotate(-5deg); }
.quick-card--blue  .quick-card__icon { background: linear-gradient(135deg,#1B3A7A,#2563eb); color: #fff; }
.quick-card--green .quick-card__icon { background: linear-gradient(135deg,#059669,#10b981); color: #fff; }
.quick-card--amber .quick-card__icon { background: linear-gradient(135deg,#d97706,#f59e0b); color: #fff; }

.quick-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.quick-card--blue  .quick-card__title { color: #1B3A7A; }
.quick-card--green .quick-card__title { color: #065f46; }
.quick-card--amber .quick-card__title { color: #92400e; }

.quick-card__desc { font-size: 0.82rem; color: #6b7280; margin-bottom: 0; line-height: 1.5; }

.quick-card__arrow {
  position: absolute;
  bottom: 16px; right: 18px;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
  color: inherit;
}
.quick-card--blue  .quick-card__arrow { color: #1B3A7A; }
.quick-card--green .quick-card__arrow { color: #059669; }
.quick-card--amber .quick-card__arrow { color: #d97706; }

/* ── Card Motivasi ───────────────────────────────────────── */
.motivasi-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
  padding: 0;
}
.motivasi-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.motivasi-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  --s: calc(60px + var(--oi) * 20px);
  width: var(--s);
  height: var(--s);
  top:  calc(var(--oi) * 30% - 20%);
  left: calc(var(--oi) * 18% - 5%);
  animation: motivasiFloat calc(5s + var(--oi) * 1.2s) ease-in-out infinite;
  animation-delay: calc(var(--oi) * -0.8s);
}
@keyframes motivasiFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-10px) scale(1.05); }
}
.motivasi-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}
.motivasi-card__icon-wrap {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  backdrop-filter: blur(4px);
}
.motivasi-card__content { flex: 1; min-width: 0; }
.motivasi-card__text {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  font-style: italic;
}
.motivasi-card__author {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.motivasi-card__btn {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.25s;
  backdrop-filter: blur(4px);
}
.motivasi-card__btn:hover {
  background: rgba(255,255,255,0.28);
  transform: rotate(180deg);
}

@media (max-width: 576px) {
  .motivasi-card__body { padding: 16px; gap: 12px; }
  .motivasi-card__text { font-size: 0.82rem; }
}

.motivasi-card__skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.15) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.motivasi-card__skeleton--text   { height: 18px; width: 90%; margin-bottom: 8px; }
.motivasi-card__skeleton--author { height: 13px; width: 40%; }

.motivasi-card__btn:disabled { opacity: 0.6; cursor: not-allowed; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { display: inline-block; animation: spin 0.8s linear infinite; }
