/**
 * Ajanta ERP - Modern Sleek Sidebar Navigation
 * Clean, lightweight, professional modern SaaS aesthetics
 * Color palette: Theme Gray & Vibrant Royal Blue (#3592df / #2563eb)
 */

/* ==========================================================================
   Sidebar Container & Wrapper
   ========================================================================== */
.pc-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #eef2f6 !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pc-sidebar .navbar-wrapper {
    background: #ffffff !important;
}

.pc-sidebar .m-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: none !important;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* ==========================================================================
   Navbar Content & Scrolling
   ========================================================================== */
.pc-sidebar .navbar-content {
    padding: 12px 14px 24px 14px !important;
}

.pc-sidebar .pc-navbar {
    display: flex;
    flex-direction: column;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* ==========================================================================
   Category / Section Captions
   ========================================================================== */
.pc-sidebar .pc-caption {
    padding: 22px 12px 8px 12px !important;
    margin-top: 6px !important;
    margin-bottom: 2px !important;
}

.pc-sidebar .pc-caption:first-child {
    padding-top: 8px !important;
    margin-top: 0 !important;
}

.pc-sidebar .pc-caption label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #94a3b8 !important;
    display: block;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Menu Items & Links
   ========================================================================== */
.pc-sidebar .pc-item {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 10px !important;
    position: relative;
    list-style: none !important;
}

.pc-sidebar .pc-item .pc-link {
    display: flex !important;
    align-items: center !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: relative;
    border: 1px solid transparent !important;
}

/* Clear legacy pseudo elements */
.pc-sidebar .pc-navbar>.pc-item>.pc-link::before,
.pc-sidebar .pc-navbar>.pc-item>.pc-link::after,
.pc-sidebar .pc-navbar>.pc-item.active>.pc-link::before,
.pc-sidebar .pc-navbar>.pc-item.active:not(.pc-hasmenu)>.pc-link::before,
.pc-sidebar .pc-navbar>.pc-item.active:not(.pc-hasmenu)>.pc-link::after {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   Icons
   ========================================================================== */
.pc-sidebar .pc-item .pc-link svg {
    margin-right: 12px !important;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease, fill 0.2s ease !important;
}

.pc-sidebar .pc-item .pc-link svg path,
.pc-sidebar .pc-item .pc-link svg circle,
.pc-sidebar .pc-item .pc-link svg rect,
.pc-sidebar .pc-item .pc-link svg line,
.pc-sidebar .pc-item .pc-link svg polyline {
    transition: stroke 0.2s ease, fill 0.2s ease !important;
}

/* Default icon stroke/fill soft slate */
.pc-sidebar .pc-item:not(.active) .pc-link svg [stroke="#1C274C"],
.pc-sidebar .pc-item:not(.active) .pc-link svg [stroke="currentColor"] {
    stroke: #64748b !important;
}

.pc-sidebar .pc-item:not(.active) .pc-link svg [fill="#1C274C"],
.pc-sidebar .pc-item:not(.active) .pc-link svg [fill="currentColor"] {
    fill: #64748b !important;
}

/* ==========================================================================
   Hover State
   ========================================================================== */
.pc-sidebar .pc-item:not(.active) .pc-link:hover {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}

.pc-sidebar .pc-item:not(.active) .pc-link:hover svg {
    transform: translateX(2px);
}

.pc-sidebar .pc-item:not(.active) .pc-link:hover svg [stroke="#1C274C"],
.pc-sidebar .pc-item:not(.active) .pc-link:hover svg [stroke="currentColor"] {
    stroke: #2563eb !important;
}

.pc-sidebar .pc-item:not(.active) .pc-link:hover svg [fill="#1C274C"],
.pc-sidebar .pc-item:not(.active) .pc-link:hover svg [fill="currentColor"] {
    fill: #2563eb !important;
}

/* ==========================================================================
   Active State (Theme Gray Background + Premium Blue Accent)
   ========================================================================== */
.pc-sidebar .pc-item.active .pc-link {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.09) 0%, rgba(241, 245, 249, 0.9) 100%) !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
}

/* Left Indicator Bar on active */
.pc-sidebar .pc-item.active .pc-link::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    left: -8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 18px !important;
    background: #2563eb !important;
    border-radius: 0 4px 4px 0 !important;
}

.pc-sidebar .pc-item.active .pc-link svg [stroke="#1C274C"],
.pc-sidebar .pc-item.active .pc-link svg [stroke="currentColor"] {
    stroke: #2563eb !important;
}

.pc-sidebar .pc-item.active .pc-link svg [fill="#1C274C"],
.pc-sidebar .pc-item.active .pc-link svg [fill="currentColor"] {
    fill: #2563eb !important;
}