/* Modern Admin Panel Sidebar */
.ipp_navbar {
    display: flex;
    width: 260px;
    min-height: 100vh;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    flex-shrink: 0;
    background: #16365b;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

/* Logo Section */
.ipp_heading {
    padding: 20px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #16365b;
}

.ipp_heading a {
    display: block;
}

.ipp_heading img {
    width: 100%;
    max-width: 220px;
    height: auto;
    padding: 0;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    background: #16365b;
    border-radius: 12px;
}

.ipp_heading:hover img {
    transform: scale(1.02);
}

/* Navigation Links Container */
.ipp_navlinks {
    width: 100%;
    padding: 16px 0;
}

.ipp_navlinks.mb-5 {
    margin-bottom: 0 !important;
    flex: 1;
    padding-top: 8px;
}

/* Section Divider */
.nav-section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 20px;
}

/* Navigation Link Item */
.ipp_navlink {
    display: flex;
    height: auto;
    width: 100%;
    padding: 14px 24px;
    align-items: center;
    gap: 14px;
    border: none;
    border-left: 4px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 2px 0;
}

.ipp_navlink::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--color-theme-light-blue, #4A73A5);
    border-radius: 0 4px 4px 0;
    transition: height 0.2s ease;
}

.ipp_navlink:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: transparent;
}

.ipp_navlink:hover::before {
    height: 60%;
}

.ipp_navlink.active {
    background: rgba(74, 115, 165, 0.2);
    border-left-color: transparent;
}

.ipp_navlink.active::before {
    height: 100%;
    background: #5b9bd5;
}

/* Icon Styles */
.ipp_navlink i,
.ipp_navlink svg {
    width: 20px;
    height: 20px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ipp_navlink:hover i,
.ipp_navlink:hover svg {
    color: #5b9bd5;
    transform: scale(1.1);
}

.ipp_navlink.active i,
.ipp_navlink.active svg {
    color: #5b9bd5;
}

/* Text Styles */
.ipp_navlink p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ipp_navlink:hover p {
    color: #ffffff;
    transform: translateX(2px);
}

.ipp_navlink.active p {
    color: #ffffff;
    font-weight: 600;
}

/* Badge for notifications */
.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}

/* Partner Link Style */
.ipp_navlink.partner-link {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 12px 12px 12px;
    border-radius: 10px;
    width: calc(100% - 24px);
    padding: 12px 16px;
    border-left: none;
}

.ipp_navlink.partner-link::before {
    display: none;
}

.ipp_navlink.partner-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ipp_navlink.partner-link i {
    color: rgba(255, 255, 255, 0.7);
}

.ipp_navlink.partner-link p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Section Label */
.nav-section-label {
    padding: 16px 24px 8px 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.nav_footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.nav_footer p {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

.nav_footer b {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* User Info Section (optional) */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 0 12px 12px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.nav-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A73A5 0%, #5b9bd5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.nav-user-details {
    flex: 1;
    min-width: 0;
}

.nav-user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Horizontal layout (if needed) */
.horizontal {
    display: flex;
    padding: 32px 0px;
    flex-direction: row;
    justify-content: flex-start;
}

/* Scrollable navigation area */
.ipp_navbar > div:first-child {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar */
.ipp_navbar > div:first-child::-webkit-scrollbar {
    width: 4px;
}

.ipp_navbar > div:first-child::-webkit-scrollbar-track {
    background: transparent;
}

.ipp_navbar > div:first-child::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.ipp_navbar > div:first-child::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .ipp_navbar {
        width: 240px;
    }
}

/* Tooltip on hover (for collapsed state if implemented) */
.ipp_navlink[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a2e;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animation for page load */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ipp_navlink {
    animation: slideInLeft 0.3s ease forwards;
}

.ipp_navlink:nth-child(1) { animation-delay: 0.05s; }
.ipp_navlink:nth-child(2) { animation-delay: 0.1s; }
.ipp_navlink:nth-child(3) { animation-delay: 0.15s; }
.ipp_navlink:nth-child(4) { animation-delay: 0.2s; }
.ipp_navlink:nth-child(5) { animation-delay: 0.25s; }
.ipp_navlink:nth-child(6) { animation-delay: 0.3s; }
.ipp_navlink:nth-child(7) { animation-delay: 0.35s; }
.ipp_navlink:nth-child(8) { animation-delay: 0.4s; }
.ipp_navlink:nth-child(9) { animation-delay: 0.45s; }
.ipp_navlink:nth-child(10) { animation-delay: 0.5s; }
