/* --- SIDEBAR --- */
.sidebar {
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f0f0f0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
    padding-left: 10px;
}

.main-logo {
    width: 45px;
    height: auto;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
}

.rs-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.rs-sub {
    font-size: 14px;
    color: var(--primary-teal);
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 12px;
    color: var(--primary-teal-dark);
    font-weight: 600;
    font-size: 14px;
    /* Animasi transisi halus selama 0.3 detik */
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- ANIMASI HOVER (Hanya saat diarahkan kursor) --- */
.nav-item:hover {
    background-color: var(--primary-teal-dark); /* Berubah jadi hijau tua */
    color: #ffffff; /* Teks berubah jadi putih */
    transform: translateY(-2px); /* Efek sedikit terangkat */
    box-shadow: 0 8px 20px rgba(0, 89, 89, 0.25);
}

.nav-item.active:hover {
    background-color: var(--primary-teal-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 89, 89, 0.25);
}

/* Mengubah ikon menjadi putih saat menu di-hover */
.nav-item:hover img {
    filter: brightness(0) invert(1);
}

.nav-item.active:not(:hover) img {
    filter: none;
}

.nav-item .icon-box {
    width: 30px;
    display: flex;
    justify-content: center;
    margin-right: 15px;
}

.nav-item .icon-box img {
    height: 22px;
    width: auto;
    transition: filter 0.3s ease;
}

.logout-button {
    width: 100%;
    height: 45px;

    background: #FF4D4F;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    margin-top: 20px;

    box-shadow: 0 10px 24px rgba(255, 77, 79, 0.28);

    transition: all 0.3s ease;
}

.logout-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;

    filter: brightness(0) invert(1);
}

.logout-button:hover {
    background: #ff3b3d;
    transform: translateY(-2px);
}