    .hidden {
            display: none !important;
        }
        
        .loading-overlay {
            position: fixed;
            inset: 0;
            background: rgba(255,255,255,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        
        /* Perbaikan Loading Spinner */
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            position: relative;
        }
        
        /* Alternatif spinner yang lebih smooth */
        .loading-spinner-smooth {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(52, 152, 219, 0.3);
            border-radius: 50%;
            border-top-color: #3498db;
            animation: spin 1s ease-in-out infinite;
        }
        
        /* Alternatif spinner dengan gradient */
        .loading-spinner-gradient {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: conic-gradient(transparent, #3498db);
            mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff 0);
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Container untuk demo */
        .spinner-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            margin: 50px;
        }
        
        .spinner-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 10px;
        }
        
        button {
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

/* ==========================
   Toast Notifications
   ========================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeInUp 0.4s ease, fadeOut 0.5s ease 3s forwards;
    opacity: 0.95;
}

.toast.success {
    background-color: #28a745; /* Hijau */
}
.toast.error {
    background-color: #dc3545; /* Merah */
}
.toast.info {
    background-color: #17a2b8; /* Biru */
}
.toast.warning {
    background-color: #ffc107; /* Kuning */
    color: #212529;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Pagination List */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Pagination Items */
.pagination li {
    margin: 0;
}

/* Pagination Links */
.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937; /* dark text */
    background-color: #f3f4f6; /* light gray */
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

/* Hover effect */
.pagination li a:hover {
    background-color: #2563eb; /* blue */
    color: #ffffff;
    border-color: #2563eb;
}

/* Active page */
.pagination li.active span {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Disabled page */
.pagination li.disabled span {
    color: #9ca3af;
    cursor: not-allowed;
    background-color: #f9fafb;
}

/* Responsive: smaller screens */
@media (max-width: 640px) {
    .pagination li a,
    .pagination li span {
        padding: 0.4rem 0.7rem;
        font-size: 0.875rem;
    }
}


/* ==========================
   Back to Top Button
   ========================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none; /* default: hidden */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* ==========================
   Responsive Design
   ========================== */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        max-width: 95%;
    }

    .toast {
        font-size: 13px;
        padding: 10px 14px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .toast-container {
        left: 5%;
        right: 5%;
    }

    .toast {
        font-size: 12px;
        padding: 8px 12px;
        text-align: center;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
}
/* ================== Toast ================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .toast {
    background-color: #333;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.4s forwards, fadeOut 0.4s ease-out 4s forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeOut {
    to {
      opacity: 0;
      transform: translateY(-20px);
    }
  }
  
  /* ================== Back to Top ================== */
  .back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.3s;
    z-index: 9999;
  }
  
  .back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
  
  .back-to-top:hover {
    background: #0056b3;
    transform: scale(1.1);
  }
  
  /* ================== Responsiveness ================== */
  @media (max-width: 768px) {
    .toast-container {
      top: 10px;
      right: 10px;
      max-width: 90%;
    }
  
    .toast {
      font-size: 13px;
      padding: 12px 14px;
    }
  
    .back-to-top {
      width: 40px;
      height: 40px;
      font-size: 18px;
      bottom: 15px;
      right: 15px;
    }
  }
/* Google Color Palette */
:root {
    --google-blue: #4285F4;
    --google-red: #DB4437;
    --google-yellow: #F4B400;
    --google-green: #0F9D58;
    --google-blue-light: #5A9CF8;
    --google-red-light: #E57373;
    --google-yellow-light: #FFD54F;
    --google-green-light: #4CAF50;
  }
  
  /* Base Styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
  }
  
  /* Accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .sr-only.focus:not-sr-only {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  
  /* Header Styles */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
  }
  
  .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Header with dropdown menu */
  .header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  
  .brand {
    display: flex;
    flex-direction: column;
  }
  
  .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--google-blue);
    margin: 0;
    letter-spacing: 1px;
  }
  
  .brand-tagline {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
  }
  
  .main-nav {
    display: flex;
    gap: 2rem;
    position: relative;
  }
  
  .nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
  }
  
  .nav-link:hover {
    color: var(--google-blue);
    background: rgba(66, 133, 244, 0.1);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--google-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .nav-link:hover::after {
    width: 80%;
  }
  
  /* Dropdown menu */
  .nav-item {
    position: relative;
    display: inline-block;
  }
  
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
  }
  
  .nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .nav-dropdown a:hover {
    background: rgba(66, 133, 244, 0.1);
    color: var(--google-blue);
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .icon-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .icon-button:hover {
    color: var(--google-blue);
    background: rgba(66, 133, 244, 0.1);
  }
  
  .admin-button {
    background: var(--google-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .admin-button:hover {
    background: var(--google-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
  }
  
  /* Mobile Navigation - Improved */
  .hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: none;
    border: none;
  }
  
  .hamburger-line {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Default mobile nav: sembunyi */
  .mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* keluar tepat di bawah header */
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2000; /* di atas main-header */
  }
  
  /* Saat hamburger diklik */
  .mobile-nav.active {
    display: flex;
  }
  
  .mobile-nav .nav-link {
    padding: 1rem 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  .mobile-nav .nav-link:hover {
    color: var(--google-blue);
  }
  
  .mobile-nav .admin-button {
    margin-top: 1rem;
    justify-content: center;
  }
  
  /* Loading Overlay */
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .loading-overlay.hidden {
    display: none;
  }
  
  .loading-container {
    text-align: center;
  }
  
  .loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    border-top-color: var(--google-blue);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--google-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background: var(--google-blue-light);
    transform: translateY(-3px);
  }
  
  /* Toast Notifications */
  .toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    background: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.3s ease;
    max-width: 350px;
  }
  
  .toast.success {
    background: var(--google-green);
  }
  
  .toast.error {
    background: var(--google-red);
  }
  
  .toast.warning {
    background: var(--google-yellow);
    color: #333;
  }
  
  .toast.info {
    background: var(--google-blue);
  }
  
  @keyframes toastIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  .toast.out {
    animation: toastOut 0.3s ease forwards;
  }
  
  @keyframes toastOut {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .header-content {
      padding: 0 1rem;
    }
    
    .header-left {
      gap: 1rem;
    }
    
    .brand-name {
      font-size: 1.3rem;
    }
    
    .brand-tagline {
      font-size: 0.85rem;
    }
    
    .main-nav {
      display: none;
    }
    
    .hamburger-menu {
      display: flex;
    }
    
    .mobile-nav {
      top: 70px;
      padding: 1.5rem;
    }
    
    .mobile-nav .nav-link {
      font-size: 1rem;
      padding: 0.75rem 0;
    }
  }
  
  @media (max-width: 480px) {
    .brand-name {
      font-size: 1.2rem;
    }
    
    .brand-tagline {
      font-size: 0.8rem;
    }
    
    .header-content {
      flex-wrap: wrap;
    }
  }  
@keyframes spin {
    to { transform: rotate(360deg); }
}

