/* ========================================
   TOP BAR - Link ke Website Utama Kampus
   Warna: Putih dengan text/icon Orange
   ======================================== */

.topbar-ufdk {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    height: 36px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.topbar-ufdk .container {
    max-width: 1140px;
    height: 100%;
    display: flex;
    align-items: center;
}

.topbar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff9000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.topbar-link:hover {
    background: rgba(255, 144, 0, 0.1);
    color: #e68000;
    text-decoration: none;
}

.topbar-link i {
    font-size: 16px;
    color: #ff9000;
}

.topbar-divider {
    color: #d1d5db;
    font-weight: 300;
    margin: 0 2px;
}

/* ========================================
   NAVBAR POSITION - Account for Topbar
   ======================================== */

.navbar-custom {
    top: 36px !important;
    position: fixed !important;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    transition: top 0.3s ease, transform 0.3s ease;
}

/* Navbar scroll state - when scrolling down, hide topbar */
.navbar-custom.scrolled {
    top: 0 !important;
}

/* Topbar hide on scroll */
.topbar-ufdk.hidden {
    transform: translateY(-100%);
}

/* ========================================
   BODY PADDING - Account for Topbar + Navbar
   ======================================== */

body, 
body.ppid-site {
    padding-top: 116px !important; /* 36px topbar + 80px navbar */
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991px) {
    .topbar-ufdk {
        height: 32px;
    }
    
    .navbar-custom {
        top: 32px !important;
    }
    
    body, 
    body.ppid-site {
        padding-top: 100px !important;
    }
    
    .topbar-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .topbar-ufdk {
        height: 30px;
    }
    
    .navbar-custom {
        top: 30px !important;
    }
    
    body, 
    body.ppid-site {
        padding-top: 95px !important;
    }
    
    .topbar-left {
        display: none;
    }
    
    .topbar-right {
        width: 100%;
        justify-content: flex-end;
        gap: 2px;
    }
    
    .topbar-link {
        font-size: 11px;
        padding: 4px 8px;
        gap: 4px;
    }
    
    .topbar-link span {
        display: none;
    }
    
    .topbar-link i {
        font-size: 16px;
    }
    
    .topbar-divider {
        margin: 0 1px;
    }
}

@media (max-width: 480px) {
    .topbar-link {
        padding: 4px 6px;
    }
    
    .topbar-link i {
        font-size: 15px;
    }
}

/* ========================================
   HIDE SCROLLBAR - SEMUA HALAMAN FRONTEND
   COMPLETELY REMOVE - NO SCROLLBAR AT ALL
   ======================================== */

/* Global scrollbar removal */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: scroll;
}

html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Force hide on all containers */
.container,
.container-fluid,
section,
.section,
main,
article,
aside,
div {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.container::-webkit-scrollbar,
.container-fluid::-webkit-scrollbar,
section::-webkit-scrollbar,
.section::-webkit-scrollbar,
main::-webkit-scrollbar,
article::-webkit-scrollbar,
aside::-webkit-scrollbar,
div::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}
