 :root {
      --primary-blue: #1e88e5;
      --deep-blue: #0d47a1;
      --accent-teal: #00bcd4;
      --fresh-green: #4caf50;
      --steel-gray: #455a64;
      --light-gray: #cfd8dc;
      --dark-gray: #263238;
      --white: #ffffff;
      --accent-orange: #ff9800;
      --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      --card-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Nunito", sans-serif;
      background-color: transparent;
      color: var(--dark-gray);
      line-height: 1.6;
      position: relative;
      overflow-x: hidden;
      padding-bottom: 40px;
    }

    /* Animated Background */
    .animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 1;
  
background: linear-gradient(135deg,
  #b3e5fc 0%,   /* Light Blue */
  #81d4fa 20%,  /* Sky Blue */
  #4dd0e1 40%,  /* Cyan */
  #80cbc4 60%,  /* Teal Green */
  #a5d6a7 80%,  /* Soft Green */
  #dcedc8 100%  /* Lime Green */
);
background-size: 400% 400%;
animation: gradientFlow 25s ease infinite;
background-position: 0% 50%;

}
    
    @keyframes gradientFlow {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    
    /* Floating bubbles effect */
    .bubble {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3);
      animation: floatBubble linear infinite;
      z-index: -1;
    }
    
    @keyframes floatBubble {
      to { transform: translateY(-100vh) rotate(360deg); }
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Header Styles */
    header {
      background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
      padding: 30px 0;
      text-align: center;
      box-shadow: var(--shadow);
      border-radius: 0 0 30px 30px;
      margin-bottom: 30px;
      position: relative;
      overflow: hidden;
    }

    header::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    }

    .header-content {
      position: relative;
      z-index: 2;
    }

    .page-title {
      font-family: "Patrick Hand", cursive;
      font-size: 3.5rem;
      color: white;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
      margin-bottom: 15px;
      letter-spacing: 1px;
    }

    .page-subtitle {
      font-size: 1.4rem;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 25px;
      font-weight: 300;
    }

    /* Class Toggle */
    .class-toggle {
      display: flex;
      justify-content: center;
      margin: 20px auto 30px;
      max-width: 500px;
      background: var(--white);
      border-radius: 50px;
      padding: 5px;
      box-shadow: var(--shadow);
      border: 2px solid var(--light-gray);
    }

    .class-btn {
      flex: 1;
      padding: 15px 20px;
      border: none;
      background: none;
      font-family: "Nunito", sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: var(--steel-gray);
    }

    .class-btn.active {
      background: var(--primary-blue);
      color: var(--white);
      box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
    }

    .class-btn:not(.active):hover {
      background: var(--light-gray);
    }

    /* Mobile Navigation */
    .mobile-nav {
      display: none;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
      margin: 15px 0 20px;
      padding: 0 10px;
    }

    .nav-mobile-btn {
      background: var(--primary-blue);
      color: white;
      border: none;
      border-radius: 20px;
      padding: 8px 12px;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .nav-mobile-btn i {
      font-size: 0.9rem;
    }

    .nav-mobile-btn:hover {
      background: var(--deep-blue);
    }

    /* Tampilkan pada mobile */
    @media (max-width: 768px) {
      .mobile-nav {
        display: flex;
      }
    }

    /* Schedule Grid */
    .schedule-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 25px;
      perspective: 1000px;
    }

    .day-card {
      background: var(--white);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--card-shadow);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid var(--light-gray);
      transform-style: preserve-3d;
      will-change: transform;
    }

    .day-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .day-header {
      padding: 20px;
      text-align: center;
      font-family: "Patrick Hand", cursive;
      font-size: 1.8rem;
      color: var(--white);
      position: relative;
      overflow: hidden;
      font-weight: bold;
      letter-spacing: 1px;
    }

    .day-header::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 60px;
      height: 60px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 50% 0 0 50%;
      transform: translate(30px, -30px);
    }

    .monday .day-header {
      background: linear-gradient(135deg, var(--primary-blue), #1565c0);
    }
    .tuesday .day-header {
      background: linear-gradient(135deg, var(--fresh-green), #2e7d32);
    }
    .wednesday .day-header {
      background: linear-gradient(135deg, var(--accent-orange), #ef6c00);
    }
    .thursday .day-header {
      background: linear-gradient(135deg, var(--accent-teal), #00838f);
    }
    .friday .day-header {
      background: linear-gradient(135deg, #5e35b1, #4527a0);
    }

    .class-list {
      padding: 20px;
    }

    .class-item {
      display: flex;
      align-items: center;
      padding: 15px 10px;
      border-bottom: 1px solid var(--light-gray);
      transition: all 0.3s ease;
      position: relative;
    }

    .class-item:last-child {
      border-bottom: none;
    }

    .class-item:hover {
      background: rgba(30, 136, 229, 0.05);
      border-radius: 10px;
    }

    /* Style untuk kelas yang sedang berlangsung */
    .class-item.active {
      background-color: #e3f2fd !important;
      border-left: 4px solid var(--primary-blue);
      box-shadow: inset 4px 0 0 var(--primary-blue);
    }

    .class-icon {
      font-size: 1.8rem;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      border-radius: 50%;
      background: rgba(30, 136, 229, 0.1);
      color: var(--primary-blue);
    }

    .class-info {
      flex: 1;
    }

    .class-name {
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 5px;
      color: var(--dark-gray);
    }

    .class-time {
      color: var(--steel-gray);
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 5px;
      font-weight: 500;
    }

    .class-teacher {
      font-size: 0.85rem;
      color: var(--primary-blue);
      font-weight: 600;
      margin-top: 3px;
    }

    .time-left {
      color: #2e7d32;
      font-weight: bold;
      margin-left: 8px;
      font-size: 0.85rem;
      background: rgba(76, 175, 80, 0.1);
      padding: 4px 10px;
      border-radius: 10px;
      display: inline-block;
    }

    /* Responsive Styles */
    @media (max-width: 768px) {
      .page-title {
        font-size: 2.5rem;
      }

      .page-subtitle {
        font-size: 1.2rem;
      }

      .class-btn {
        font-size: 1rem;
        padding: 12px 15px;
      }

      .schedule-grid {
        grid-template-columns: 1fr;
      }

      .time-left {
        display: block;
        margin-left: 0;
        margin-top: 5px;
      }
    }

    /* Footer */
    .footer-nav {
      display: flex;
      justify-content: center;
      margin-top: 40px;
      gap: 15px;
      flex-wrap: wrap;
    }

    .nav-btn {
      background: var(--primary-blue);
      color: white;
      border: none;
      border-radius: 50px;
      padding: 12px 25px;
      font-family: "Nunito", sans-serif;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
      box-shadow: var(--shadow);
    }

    .nav-btn:hover {
      background: var(--deep-blue);
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(13, 71, 161, 0.3);
    }

    /* Status indicator */
    .current-status {
      text-align: center;
      padding: 15px;
      margin: 20px 0;
      background: #e3f2fd;
      border-radius: 15px;
      font-weight: bold;
      color: var(--primary-blue);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid #bbdefb;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .current-status i {
      font-size: 1.2rem;
    }

    .current-status.holiday {
      background: #fff8e1;
      color: #ff8f00;
      border-color: #ffecb3;
    }

    .debug-info {
      background: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 10px;
      padding: 15px;
      margin-top: 20px;
      font-family: monospace;
      font-size: 0.9rem;
      display: none; /* Sembunyikan debug di production */
    }

    /* Time format toggle */
    .time-format-toggle {
      display: flex;
      justify-content: center;
      margin: 10px 0 20px;
      gap: 10px;
    }

    .format-btn {
      background: var(--white);
      border: 1px solid var(--light-gray);
      border-radius: 20px;
      padding: 8px 15px;
      font-family: "Nunito", sans-serif;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
      color: var(--steel-gray);
      font-weight: 500;
    }

    .format-btn.active {
      background: var(--primary-blue);
      color: var(--white);
      border-color: var(--primary-blue);
    }

    /* Day highlight */
    .today-highlight {
      position: absolute;
      top: -8px;
      right: 20px;
      background: var(--accent-orange);
      color: white;
      padding: 4px 12px;
      border-radius: 0 0 10px 10px;
      font-size: 0.8rem;
      font-weight: bold;
      z-index: 10;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Progress bar */
    .progress-container {
      height: 6px;
      background: #e0e0e0;
      border-radius: 3px;
      margin: 10px 0;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      background: var(--primary-blue);
      border-radius: 3px;
      width: 0%;
      transition: width 0.5s ease;
    }

    /* Tambahkan style untuk pesan kosong */
    .empty-schedule {
      text-align: center;
      padding: 30px;
      color: #757575;
      font-style: italic;
    }

    /* Tambahkan style untuk jadwal istirahat dan sholat */
    .class-item.break {
      background-color: #fff3e0 !important;
      border-left: 4px solid #ff9800;
    }

    .class-item.break .class-icon {
      background: rgba(255, 152, 0, 0.1);
      color: #ff9800;
    }

    .class-item.break .class-name {
      color: #ff9800;
    }

    .class-item.prayer {
      background-color: #e8f5e9 !important;
      border-left: 4px solid #4caf50;
    }

    .class-item.prayer .class-icon {
      background: rgba(76, 175, 80, 0.1);
      color: #4caf50;
    }

    .class-item.prayer .class-name {
      color: #4caf50;
    }

    /* Style saat aktif untuk istirahat dan sholat */
    .class-item.break.active {
      background-color: #ffe0b2 !important;
    }

    .class-item.prayer.active {
      background-color: #c8e6c9 !important;
    }

    /* Status informasi */
    .status-info {
      text-align: center;
      padding: 15px;
      margin: 20px 0;
      background: #fff8e1;
      border-radius: 15px;
      border: 1px solid #ffecb3;
      color: #ff8f00;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .status-info i {
      font-size: 1.2rem;
    }
    
    /* Responsive untuk card hari */
    @media (max-width: 768px) {
      .schedule-grid {
        gap: 12px !important;
      }
      
      .day-card {
        border-radius: 12px !important;
        margin-bottom: 8px;
        transform: scale(0.98);
        transform-origin: center;
      }
      
      .day-header {
        padding: 12px 8px !important;
        font-size: 1.4rem !important;
      }
      
      .class-list {
        padding: 12px 8px !important;
      }
      
      .class-item {
        padding: 10px 5px !important;
      }
      
      .class-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.3rem !important;
        margin-right: 10px !important;
      }
      
      .class-name {
        font-size: 0.95rem !important;
        margin-bottom: 3px !important;
      }
      
      .class-time {
        font-size: 0.8rem !important;
      }
      
      .class-teacher {
        font-size: 0.75rem !important;
      }
      
      .today-highlight {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
        top: -6px !important;
      }
      
      .time-left {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
      }
    }
  
    /* Responsive Styles */
    @media (max-width: 768px) {
      .page-title {
        font-size: 2.5rem;
      }

      .page-subtitle {
        font-size: 1.2rem;
      }

      .class-btn {
        font-size: 1rem;
        padding: 12px 15px;
      }

      .schedule-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 8px; /* Padding samping diperkecil */
      }

      /* Penyesuaian untuk card yang lebih kecil */
      .day-card {
        width: 94%; /* Lebar diperkecil */
        max-width: 380px; /* Lebar maksimum */
        margin: 0 auto 10px; /* Posisi di tengah */
        border-radius: 14px;
        transform: scale(0.98);
        transform-origin: center;
      }
      
      .day-header {
        padding: 14px 10px !important;
        font-size: 1.38rem !important;
      }
      
      .class-list {
        padding: 14px 10px !important;
      }
      
      .class-item {
        padding: 12px 7px !important;
      }
      
      .class-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.28rem !important;
        margin-right: 12px !important;
      }
      
      .class-name {
        font-size: 0.96rem !important;
        margin-bottom: 4px !important;
      }
      
      .class-time {
        font-size: 0.82rem !important;
      }
      
      .class-teacher {
        font-size: 0.76rem !important;
      }
      
      .today-highlight {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
        top: -7px !important;
      }
      
      .time-left {
        font-size: 0.76rem !important;
        padding: 4px 10px !important;
      }
    }

    /* Efek flash untuk highlight */
    @keyframes flash {
      0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
    }
    
    .highlight-flash {
      animation: flash 1.5s ease;
      position: relative;
      z-index: 10;
    }

    .clicked {
      transform: scale(0.95);
    }
