/* Efek Fade-Out untuk Halaman Depan/Login saat tombol submit diklik */
.page-exit {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Efek Fade-In saat Halaman Dashboard pertama dibuka */
body {
  animation: pageEnter 0.5s ease-out forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Animation: Elemen Dashboard muncul bertahap */
.sidebar {
  animation: slideRight 0.5s ease-out;
}

.main-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efek Zoom Presentation pada Card */
.card-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.card-zoom-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    width: 65%;
    max-width: 750px;
    transform: scale(0.85) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-zoom-overlay.active .card-zoom-box {
    transform: scale(1) translateY(0);
}

.card-zoom-close {
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.card-zoom-close:hover {
    color: #000;
}