/*------------------------------------------------------------------
    File Name   : custom-template.css
    Added By    : Ashish
    PURPOSE     : Style For template modification & Brand Theme Alignment
    Date        : 14-April-2026
-------------------------------------------------------------------*/

/* Cohesive Deep Midnight Blue Sidebar and Header (No Grey/Charcoal) */
.vertical-header {
background: linear-gradient(90deg, #1654A5 0%, #0F3460 60%, #000000 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(3, 15, 38, 0.25) !important;
}

.aside-bar {
    background-color: #030f26 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Sidebar Navigation Items Styling */
#sidebarnav {
    margin-top: 15px;
}

#sidebarnav .sidebar-item {
    margin: 4px 12px;
}

#sidebarnav .sidebar-link {
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    padding: 10px 16px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    margin-right: 12px !important;
    /* Pull right edge in to show round curve */
}

#sidebarnav .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* Active Navigation Item Styling matching brand colors */
.sidebar-link-current.active,
#sidebarnav .sidebar-link.active {
    background: linear-gradient(90deg, #1654a5 0%, rgba(22, 84, 165, 0.25) 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left: none !important;
    /* Removed left highlight line */
    border-radius: 8px !important;
    /* Symmetrical curve on both sides */
}

.sidebar-link-current.active iconify-icon,
#sidebarnav .sidebar-link.active iconify-icon {
    color: #ffffff !important;
}

/* Small Sidebar Cap Headers */
.sidebar-nav-main {
    color: #64748b !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    padding: 12px 28px 4px !important;
}

.sidebar-nav-main iconify-icon {
    color: #64748b !important;
}

/* Page wrapper card tweaks */
.main-card {
    border-color: var(--bs-secondary) !important;
}

.main-wrapper-card {
    background-color: #ffffff !important;
}

/* Collapsed Sidebar (mini-sidebar) layout fixes */
body[data-sidebartype="mini-sidebar"] .user-profile {
    display: none !important;
}

/* 1. When mini-sidebar is NOT hovered (collapsed icons state) */
body[data-sidebartype="mini-sidebar"] .left-sidebar:not(:hover) #sidebarnav .sidebar-item {
    margin: 6px 0 !important;
    display: flex;
    justify-content: center;
}

body[data-sidebartype="mini-sidebar"] .left-sidebar:not(:hover) #sidebarnav .sidebar-link {
    padding: 10px 0 !important;
    width: 42px !important;
    height: 42px !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
}

body[data-sidebartype="mini-sidebar"] .left-sidebar:not(:hover) #sidebarnav .sidebar-link.active {
    background: #1654a5 !important;
    /* Solid block for collapsed icon view */
    border-left: none !important;
    border-radius: 12px !important;
}

/* 2. When mini-sidebar IS hovered (temporarily expanded text state) */
body[data-sidebartype="mini-sidebar"] .left-sidebar:hover #sidebarnav .sidebar-item {
    margin: 4px 12px !important;
    display: block !important;
}

body[data-sidebartype="mini-sidebar"] .left-sidebar:hover #sidebarnav .sidebar-link {
    padding: 10px 16px !important;
    width: auto !important;
    height: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    display: flex !important;
    margin-right: 12px !important;
    /* Pull right edge in to show round curve */
}

body[data-sidebartype="mini-sidebar"] .left-sidebar:hover #sidebarnav .sidebar-link.active {
    background: linear-gradient(90deg, #1654a5 0%, rgba(22, 84, 165, 0.25) 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left: none !important;
    /* Removed left highlight line */
    border-radius: 8px !important;
    /* Symmetrical curve on both sides */
}

/* Force header logo text to render in premium bold weight */
.logo-text {
    font-weight: 800 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}