/* ===== BASIC STYLES ===== */
body {
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== MAIN IMAGE SECTION ===== */
.main-image {
    max-width: 1200px;
    width: 100%;
    height: 400px;
    margin: 0 auto; 
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.main-image::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    content: '';
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
}

.nav-item a {
    text-decoration: none;
    font-size: 14px;
}

.nav-item a:hover {
    color: grey !important;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-wrapper-search {
    height: 150px;
    overflow: hidden;
}

/* ===== LIST GROUP STYLING ===== */
.list-group {
    height: calc(100% - 50px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.list-group::-webkit-scrollbar {
    width: 6px;
}

.list-group::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.list-group::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.list-group::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* List Group Heights */
.custom-list-group-baak,
.custom-list-group-pegawai,
.custom-list-group-jurusan,
.custom-list-group,
.custom-list-group-mahasiswa,
.custom-list-group-lain {
    max-height: 450px;
}

/* Menu Cepat Styling */
.custom-list-group .list-group-item {
    padding: 12px 15px;
    background-color: #cd853f;
    border: none;
    margin-bottom: 2px;
    color: white;
    transition: all 0.3s ease;
}

.custom-list-group .list-group-item:hover {
    background-color: #b8860b;
    transform: translateX(5px);
}

.custom-list-group .list-group-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.custom-list-group .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    margin-left: 5px;
    background-color: #0056b3 !important;
}

/* General List Items */
.list-group-item {
    border: none;
    padding: 12px 0;
    color: #333;
    background: transparent;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    color: #004a8e;
    padding-left: 10px;
}

.list-group-item i {
    margin-right: 10px;
    color: #004a8e;
    font-size: 1.1rem;
    width: 20px;
    transition: all 0.3s ease;
}

.list-group-item:hover i {
    transform: translateX(3px);
}

/* ===== MENU TITLE ===== */
.menu-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #004a8e !important;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #004a8e;
}

.menu-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: #004a8e;
}

/* ===== SEARCH BOX ===== */
.search-box {
    position: relative;
}

.search-title {
    color: #004a8e;
    font-size: 1.1rem;
}

.search-input-group .form-control {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input-group .form-control:focus {
    border-color: #004a8e;
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 142, 0.1);
}

.search-input-group .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #004a8e;
    border: none;
    transition: all 0.3s ease;
}

.search-input-group .btn-primary:hover {
    background-color: #003972;
    transform: translateX(3px);
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
    text-align: center;
}

.counter-display {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 1rem 0;
}

.counter-display .digit {
    background: linear-gradient(145deg, #004a8e, #003972);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.4rem;
    min-width: 35px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.counter-display .digit:hover {
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #f8f8f8; 
    color: #333;
}

.footer .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.footer .border-bottom {
    border-color: #ddd !important; 
}

.small-text {
    font-size: 0.85rem;
    color: #555;
}

.footer a {
    color: #0056b3 !important; 
}

.footer a:hover {
    color: #003d82;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .main-image {
        height: calc(400px * 0.8); 
    }
}

@media (max-width: 768px) {
    .main-image {
        height: calc(400px * 0.6);
    }
    
    .menu-title {
        font-size: 1.1rem;
    }
    
    .search-input-group .form-control,
    .search-input-group .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .counter-display .digit {
        padding: 6px 10px;
        font-size: 1.2rem;
        min-width: 30px;
    }
}

body.halamanLogin {
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}