/* ===============================
   FIX HEADER
================================ */

/* ================================
   HEADER / NAVBAR
================================ */
.app-header {
    background-color: #f3f4f6; /* sedikit lebih gelap dari body */
    border-bottom: 1px solid #d0d5dd;
}

    /* brand */
    .app-header .navbar-brand {
        font-weight: 600;
    }

    /* nav links */
    .app-header .nav-link {
        color: #374151; /* slate-700 */
    }

        .app-header .nav-link:hover {
            color: #111827; /* slate-900 */
        }

/*.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;*/ /* di atas konten */
/*}*/

.app-content {
    padding-top: 80px; /* tinggi header */
}

.app-header {
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Optional: smooth shadow saat scroll */
/*.app-header {
    background: #fff;
}*/

/* ===============================
   FOOTER
================================ */
.app-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
}

    .app-footer a {
        text-decoration: none;
    }

        .app-footer a:hover {
            text-decoration: underline;
        }

.settings-sticky {
    position: sticky;
    top: 90px; /* sesuaikan tinggi header fixed */
}

#logoPreview,
#signaturePreview {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #logoPreview img,
    #signaturePreview img {
        max-height: 80px;
        max-width: 100%;
    }

.preview-highlight {
    animation: flash 0.8s ease-in-out;
}

@keyframes flash {
    0% {
        background-color: #fff;
    }

    50% {
        background-color: #f6f9ff;
    }

    100% {
        background-color: #fff;
    }
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.brand-gradient {
    font-weight: 700;
    font-size: 1.4rem;
    /* Gradient warna logo */
    background: linear-gradient(90deg, #1e3a8a 0%, #22d3ee 100%);
    /* Trik agar text pakai gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
}