body {
  padding-top: 75px;
}

@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }
}

.mynavbar {
  background: rgba(0, 60, 90, 0.85) !important;
}

/* ON SCROLL */
.mynavbar.shrink {
  padding: 6px 0;

  background: rgba(0, 60, 90, 0.85) !important;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(0, 242, 254, 0.15);

  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
}

/* HIDE ON SCROLL DOWN */
.mynavbar.hide {
  transform: translateY(-100%);
}

/* ACTIVE MENU */
.nav-link {
  color: white !important;
  transition: 0.3s;
}

.nav-link:hover {
  color: #00f2fe !important;
  transform: scale(1.05);
}

.active-link {
  font-weight: bold;
  text-transform: uppercase;
  color: #ffcc00 !important;
}

.kod-nav-link {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.15) !important;

  color: #7b2cbf !important;

  border-radius: 50px !important;

  padding: 8px 18px;
  margin: 4px;

  transition: 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* HOVER EFFECT */
.kod-nav-link:hover {
  background: rgba(25, 194, 19, 0.15) !important;
  color: #19c213 !important;
  transform: translateY(-2px);
}

/* ACTIVE TAB */
.kod-nav-link.active {
  background: linear-gradient(135deg, #19c213, #00f2fe) !important;
  color: white !important;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  border: none !important;
}

.nav-pills {
  background: rgba(0,0,0,0.15);
  padding: 6px;
  border-radius: 50px;
}

/* FULLSCREEN MOBILE MENU */
.offcanvas {
  width: 100% !important;
  background: rgba(0, 60, 90, 0.85) !important;
}

.offcanvas-body .nav-link {
  font-size: 24px;
  padding: 14px 0;
}

/* SCROLL PROGRESS BAR */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  z-index: 10000;
}

.kod-table table {
  border-radius: 12px;
  overflow: hidden;
}

.kod-table td {
  vertical-align: middle;
  font-weight: 500;
}

.highlight {
  background: yellow;
  color: black;
  padding: 2px 4px;
  border-radius: 4px;
}

.kod-grid {
  gap: 15px;
}

.kod-card {
  color: white;
  padding: 25px;
  border-radius: 18px;
  text-align: center;

  /* 🌈 GRADIENT BACKGROUND */
  background: linear-gradient(135deg, #4facfe, #00f2fe);

  /* 💎 3D SHADOW */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  border: 1px solid rgba(255,255,255,0.15);

  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;
}

.kod-card:hover {
  transform: translateY(-10px) scale(1.03);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(0, 242, 254, 0.35);

    background: linear-gradient(135deg, #08f31b, #86f799);
}

.kod-card h5 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.kod-grid {
  gap: 20px;
}

.kod {
  font-size: 34px;
  font-weight: 800;
  margin-top: 10px;

  color: #ffffff;

  text-shadow:
    0 0 10px rgba(255,255,255,0.4),
    0 0 20px rgba(0,0,0,0.2);

  display: inline-block;
  transition: transform 0.25s ease;
}

/* hover on CARD */
.kod-card:hover .kod {
  transform: scale(1.4);
}

.copy-btn {
  background: #ff4444;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.copy-btn:hover {
  background: #ff2222;
}

.hidden {
  display: none !important;
}

.highlight {
  background: yellow;
  color: black;
}

#kodTabs {
  gap: 10px;
}

.kod-search {
  max-width: 500px;
  border-radius: 50px;
  text-align: center;
}

/* placeholder center */
.kod-search::placeholder {
  text-align: center;
}



/* Style the main content area (excluding header and footer) */
main {
    height: calc(100% - 2 * 20px); /* Subtract header and footer heights */
}

/* Style the iframe to fill the available space */
#webview {
    width: 100%;
    height: 100%;
    border: none; /* Remove border */
}

.social-icons img {
  width: 24px;   /* Adjust this size to what looks best for your footer */
  height: 24px;  /* Keeps it a perfect square */
  object-fit: contain; /* Prevents the image from stretching awkwardly */
  margin: 0 8px; /* Adds a little space between the icons */
}

/* Card base layout styling */
.lists {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: #212529 !important;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  height: 100%;
}

/* Cool lift-up effect on hover */
.lists:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #0d6efd; /* Changes border to bootstrap primary on hover */
}

/* Force icons to look uniform and clean */
.list-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Clean text formatting inside cards */
.lists p {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* Section Header Badges */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #495057;
}

/* Custom Warning Box styling */
.warning-card {
  border-left: 5px solid #dc3545;
  background-color: #fff5f5;
  border-radius: 8px;
}

/* Custom Infobox styling (Tips & Info) */
.info-card-purple {
  background: linear-gradient(135deg, #6f42c1, #52279c);
  border-radius: 12px;
  height: 100%;
}
.info-card-dark {
  background: linear-gradient(135deg, #212529, #343a40);
  border-radius: 12px;
  height: 100%;
}

.alert-box-quote {
  font-size: 0.9rem;
  opacity: 0.9;
  font-style: italic;
}

/* Highlighting modern badges inside tips */
.highlight-badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* Bank Grid layout */
.bank-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.bank-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.bank-logo {
  height: 45px;
  object-fit: contain;
}

.navbar-brand {
  color: #ffffff;
}

.navbar-brand:hover {
  color: #c0fad9;
}

/* Styling untuk halaman pengenalan */
.hero-title {
  font-weight: 800;
  letter-spacing: -1px;
}
.benefit-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  height: 100%;
}
.icon-badge {
  width: 50px;
  height: 50px;
  background-color: #e7f1ff;
  color: #0d6efd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.intro-img {
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.glass-card {

    background: rgba(255,255,255,0.85);

    backdrop-filter: blur(15px);

    border-radius: 25px;

    padding: 40px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.15);

}

.upload-box {

    display:block;

    cursor:pointer;

    border:3px dashed #00bcd4;

    border-radius:20px;

    padding:20px;

    transition:.3s;

}

.upload-box:hover {

    transform:translateY(-5px);

    box-shadow:
        0 15px 30px rgba(0,188,212,.25);

}

/* This forces the select box text to align to the center */
.form-select {
  text-align: center;
  text-align-last: center; /* Crucial for Safari and older browsers */
}

/* Optional: This aligns the options list if the browser supports it */
.form-select option {
  text-align: center;
}

/* Full Screen Overlay Backdrop */
#info {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6); /* Modern dark slate backdrop */
    backdrop-filter: blur(8px);       /* Blurs the main page details beautifully */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* The Popup Modal Card Container */
#rehat {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 35px 25px 25px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    animation: popupSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#cuti {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 35px 25px 25px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    animation: popupSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close 'X' Top Right Corner */
.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}
.close-popup-btn:hover { color: #ef4444; }

/* Headers Styling */
.notice-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
.notice-title {
    color: #1e293b;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.5px;
    margin: 0 0 5px 0;
}
.notice-subtitle {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 25px 0;
}

/* Holiday Schedule Highlight Box */
.holiday-card {
    background: #fef2f2; /* Light red tint notice */
    border: 1px dashed #fca5a5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
.holiday-card h5 {
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}
.holiday-day {
    color: #dc2626;
    font-size: 22px;
    font-weight: 800;
}
.holiday-divider {
    font-size: 12px;
    text-transform: uppercase;
    color: #f87171;
    font-weight: 600;
    margin: 6px 0;
}
.holiday-desc {
    color: #7f1d1d;
    font-size: 14px;
    margin-bottom: 4px;
}
.holiday-link {
    color: #2563eb !important;
    font-weight: 600;
    text-decoration: underline;
}

/* Warning Info text block */
.warning-text {
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}
.warning-text strong {
    color: #0f172a;
}

/* Autofund Action Box */
.autofund-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}
.auto-fund-text {
    color: #334155;
    font-size: 14px;
    margin: 0 0 12px 0;
}
.btn-auto-tutorial {
    display: block;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
}
.btn-auto-tutorial:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Sign-off styling */
.thank-you-text {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Main Core Dismiss Action Button */
.btn-close-main {
    width: 100%;
    background: #4fa7ff;
    border: none;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-close-main:hover {
    background: #006eff;
    color: #1e293b;
}

/* Container Layout */
.tambah {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 35px 25px 25px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    animation: popupSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modern Spinner Design */
.loading-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}
.spinner-ring {
    width: 60px;
    height: 60px;
    border: 5px solid #f1f5f9;
    border-top: 5px solid #22c55e; /* Premium Emerald Success Green */
    border-radius: 50%;
    animation: spinAnimation 1s linear infinite;
}

@keyframes spinAnimation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography styles */
.tambah .notice-title {
    color: #0f172a;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.tambah .notice-subtitle {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

/* Fallback Card Element */
.fallback-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    max-width: 450px;
    margin: 0 auto;
}
#p1 {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Interactive Code Copy Component */
.copy-box {
    background: #0f172a; 
    color: #38bdf8;     
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 15px;
    
    /* Change these two lines */
    display: flex;
    justify-content: center; /* Centers items horizontally */
    align-items: center;
    gap: 10px;               /* Adds a clean space between text and icon */
    
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid #1e293b;
    word-break: break-all;
}
.copy-box:hover {
    background: #1e293b;
    transform: scale(1.01);
}
.copy-box:active {
    transform: scale(0.99);
}
.copy-icon {
    font-size: 16px;
    margin-left: 10px;
    opacity: 0.7;
}

/* Secondary Button design style */
.btn-copy-action {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.btn-copy-action:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Upgraded Snackbar CSS */
#snackbar {
    visibility: hidden;
    min-width: 200px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 12px;
    position: fixed;
    z-index: 100000;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from { bottom: 20px; opacity: 0; }
    to { bottom: 40px; opacity: 1; }
}
@keyframes fadeout {
    from { bottom: 40px; opacity: 1; }
    to { bottom: 20px; opacity: 0; }
}