/* style-admin.css */

.navbar-brand img {
    max-width: 40px;
    margin-right: 10px;
}
.navbar-brand {
    display: flex;
    align-items: center;
}
.profile-dropdown img {
    max-width: 30px;
    border-radius: 50%;
}
.navbar {
    background-color: #343a40; /* Dark color for navbar */
    z-index: 1040; /* Ensure navbar is above sidebar */
}
.navbar .navbar-brand, .navbar .nav-link, .navbar .dropdown-item {
    color: #fff !important;
}
.sidebar {
    position: fixed;
    top: 56px; /* Height of the navbar */
    bottom: 0;
    left: 0;
    width: 220px; /* Width of the sidebar */
    padding: 48px 0 0; /* Space for the fixed navbar */
    z-index: 1030; /* Ensure sidebar is behind navbar */
    border-right: 1px solid #eee;
    background-color: #f8f9fa; /* Light color for sidebar */
}
.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin: 5px 10px;
    border-radius: 5px;
}
.sidebar .nav-link i {
    margin-right: 15px; /* Adding space between icon and text */
}
.sidebar .nav-link:hover {
    color: #fff;
    background-color: #007bff;
}
.sidebar .nav-link.active {
    color: #fff;
    background-color: #007bff;
    font-weight: bold;
}
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40;
    z-index: 1050; /* Ensure footer menu is above both navbar and sidebar */
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}
.footer-menu a {
    color: #fff;
    text-decoration: none;
}
.footer-menu a:hover {
    text-decoration: none;
    color: #f8f9fa;
}
.footer-menu .nav-link i {
    font-size: 1.5rem;
}
.dropdown-menu {
    background-color: #343a40; /* Ganti warna latar belakang dropdown menu */
}
.dropdown-menu a {
    color: #fff !important; /* Ubah warna teks menjadi putih */
}
.dropdown-menu a:hover {
    background-color: #007bff !important; /* Warna latar belakang saat hover */
}

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #343a40; /* Ganti warna latar belakang saat tampilan mobile */
    }
    .navbar-collapse .navbar-nav .nav-link {
        color: #fff !important; /* Ubah warna teks agar terlihat jelas */
    }
    .dropdown-menu {
        background-color: #343a40; /* Ganti warna latar belakang dropdown menu */
    }
    .navbar .dropdown-menu {
        background-color: #343a40; /* Latar belakang dropdown menu untuk tampilan desktop */
    }
}

.app-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.app-icons a {
    text-align: center;
    width: calc(33.33% - 20px);
    margin: 10px;
    text-decoration: none;
    color: #343a40;
}

.app-icons a:hover {
    color: #007bff;
}

.app-icons i {
    display: block;
    font-size: 3rem;
    margin-bottom: 10px;
}

.app-icons span {
    font-size: 1rem;
}
.img-preview {
    max-width: 150px; /* Batasi lebar gambar */
    max-height: 150px; /* Batasi tinggi gambar */
    display: block; /* Buat gambar tampil sebagai blok */
    margin: 0 auto; /* Pusatkan gambar */
}
