/* Sidebar style */
.sidebar {
    background-color: #080808;
    height: 100vh;
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    font-size: 0.85rem; /* Ukuran font dasar diperkecil */
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 100px;
}

/* Content style */
.main-content {
    margin-left: 100px;
    transition: margin-left 0.3s ease;
    padding: 20px;
    flex-grow: 1;
}

.main-content.expanded {
    margin-left: 70px;
}

/* Toggle button style */
.toggle-sidebar {
    background-color: #da9100;
    color: #080808;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    width: auto;
}



.toggle-sidebar:hover {
    background-color: #da9100;
}

/* Profile section styles */
.admin-profile {
    text-align: center;
    margin-bottom: 15px; /* Diperkecil */
    width: 100%;
    padding: 0 10px;
}

.admin-profile i {
    font-size: 3rem; /* Diperkecil */
    color: white;
}

.admin-profile h5 {
    color: white;
    margin-top: 8px; /* Diperkecil */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
    font-size: 0.9rem; /* Ukuran font diperkecil */
}

.sidebar.collapsed .admin-profile h5 {
    opacity: 0;
    height: 0;
    margin: 0;
}

/* Menu item styles */
.nav-link {
    color: white;
    padding: 10px 8px; /* Diperkecil */
    margin-bottom: 6px; /* Diperkecil */
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    width: 90%;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.85rem; /* Ukuran font diperkecil */
}

.nav-link:hover, .nav-link.active {
    background-color: #da9100;
    color: #080808;
}

.nav-link i {
    font-size: 1.1rem; /* Diperkecil */
    margin-right: 8px; /* Diperkecil */
    min-width: 25px;
    text-align: center;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Logout button */
.logout-button {
    background-color: #da9100;
    color: #080808;
    border: none;
    border-radius: 8px;
    padding: 8px; /* Diperkecil */
    width: 90%;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 15px; /* Diperkecil */
    font-size: 0.85rem;
}

.logout-button:hover {
    background-color: #ffc107;
}

.sidebar.collapsed .logout-button span {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
        left: -220px;
    }

    .sidebar.mobile-visible {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
        background-color: #da9100;
        color: #080808;
        border: none;
        border-radius: 4px;
        padding: 8px;
        cursor: pointer;
    }
}

/* Tooltips for collapsed sidebar */
.tooltip-sidebar {
    position: relative;
}

.tooltip-sidebar:hover:after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1001;
    margin-left: 10px;
    font-size: 0.85rem;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.sidebar:not(.collapsed) .tooltip-sidebar:hover:after {
    display: none;
}

.sidebar .text-white h2 {
    color: white !important;
}
