/* Admin Dashboard Custom Style */

html, body {
    height: auto !important;     /* biar mengikuti isi konten */
    min-height: 100vh;           /* tetap minimal 1 layar penuh */
    overflow-y: auto !important; /* aktifkan scroll vertical */
}
.admin-dashboard {
    height: auto !important;     /* jangan pakai fixed height */
    min-height: 100vh;
}
.main-content {
    height: auto !important;
    min-height: 100vh;
    padding-bottom: 100px;       /* spasi bawah biar ga kejepit */
}

.admin-dashboard .sidebar {
    min-height: 100vh;
    transition: all 0.3s ease-in-out;
}

.admin-dashboard .sidebar .logo-img {
    width: 100px;
    height: auto;
}

.admin-dashboard .sidebar .nav-link {
    padding: 12px 15px;
    transition: 0.3s;
    border-radius: 6px;
}

.admin-dashboard .sidebar .nav-link:hover,
.admin-dashboard .sidebar .nav-link.active {
    background-color: #495057;
    font-weight: bold;
}

.main-content {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    border-radius: 8px;
}

.stat-card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
    transform: scale(1.03);
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.header-actions-fixed { position: fixed; top: 0; right: 0; z-index: 1100; padding: .5rem; }
@supports (padding: max(0px)) {
  .header-actions-fixed {
    padding-top: max(.5rem, env(safe-area-inset-top));
    padding-right: max(.5rem, env(safe-area-inset-right));
  }
}

/* Highlight efek */
.section-highlight.highlighted {
    animation: highlightFade 1.5s ease-in-out;
}
@keyframes highlightFade {
    0%   { background-color: #fff3cd; }
    50%  { background-color: #ffeeba; }
    100% { background-color: transparent; }
}
.nav-link.active {
    background-color: #495057 !important;
    border-radius: 4px;
}
/* Sticky header tabel */
.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}
/* Scroll-to-top button */
#scrollTopBtn {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    bottom: 20px;
    right: 25px;
    z-index: 2000;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: #dc3545;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    transition: opacity 0.3s ease-in-out;
}
#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}
