/* Sidebar Container */

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
    left: 0;
    top: 0;
}


.sidebar.collapsed {
    transform: translateX(-280px);
}

/* Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 0 20px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #d32f2f;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.company-tagline {
    font-size: 12px;
    opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0 20px;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* Login Section */
.login-section {
    margin-top: 20px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}


.login-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    /* sebelumnya 15px */
    background: white;
    color: #d32f2f;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    /* sedikit lebih kecil */
    font-weight: 600;
    /* agar teks tetap tegas tapi tidak terlalu tebal */
    font-size: 15px;
    /* sedikit lebih kecil dari default */
    transition: all 0.3s ease;
}


.login-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
    }

    .sidebar.collapsed {
        transform: translateX(-250px);
    }
}

