body {
  font-family: 'Poppins', sans-serif;
  background: url('../images/back.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.5s ease-in-out, color 0.3s ease-in-out;
}

@media (max-width: 768px) {
  body {
    background: url('../images/back-mobile.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
  }
}

.header {
  background: linear-gradient(135deg, #1262b1ff, #457ee7ff);
  color: #afd3faff;
  padding: 0.3rem 0.8rem;
  text-align: center;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.8s ease;
}

.header .title {
  font-size: 1.5rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 6px rgba(42, 145, 243, 0.5);
  animation: fadeIn 1s ease;
}

.header .subtitle {
  font-size: 0.85rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 6px rgba(42, 145, 243, 0.5);
  animation: fadeIn 1.2s ease;
}

.section-title {
  margin-bottom: 0.4rem;
  color: #0b3d91;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 6px rgba(42, 145, 243, 0.5);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}
.section-title:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Bubble cards */
.card-bubble {
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0.8rem !important;
  animation: fadeUp 0.6s ease;
}

.card-bubble:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}
.card-bubble:hover .card-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Tugas card */
.tugas-card {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 1.2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease;
}
.tugas-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Accordion button style */
.accordion-button {
  border-radius: 1.2rem !important;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.accordion-button::after {
  transform: scale(0.8);
  filter: invert(1);
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: scale(1) rotate(180deg);
}

.accordion-button:not(.collapsed) {
  filter: brightness(0.9);
  color: white !important;
  transform: scale(1.02);
}

/* Gradient colors per accordion button */
#accordionMapelToday .accordion-item:nth-of-type(1) .accordion-button {
  background: linear-gradient(135deg, #f65115ff, #ff9a76);
}
#accordionMapelToday .accordion-item:nth-of-type(2) .accordion-button {
  background: linear-gradient(135deg, #1e51b6ff, #15b9ebff);
}
#accordionMapelToday .accordion-item:nth-of-type(3) .accordion-button {
  background: linear-gradient(135deg, #ff22deff, #e76ee1ff);
}
#accordionMapelToday .accordion-item:nth-of-type(4) .accordion-button {
  background: linear-gradient(135deg, #28a745, #85e085);
}
#accordionMapelToday .accordion-item:nth-of-type(5) .accordion-button {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}

/* Accordion body */
.accordion-body {
  background-color: rgba(255, 255, 255, 0.4);
  border-bottom-left-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.3;
  animation: fadeIn 0.5s ease;
}

/* Responsive tugas row */
.row-tugas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: fadeUp 1s ease;
}

.col-tugas {
  flex: 1 1 calc(33.333% - 0.7rem);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}
.col-tugas:hover {
  transform: scale(1.02);
}

@media (max-width: 992px) {
  .col-tugas {
    flex: 1 1 calc(50% - 0.7rem);
  }
}

@media (max-width: 576px) {
  .col-tugas {
    flex: 1 1 100%;
  }
}

/* ==== Keyframes Animations ==== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
