/**
 * Professional Sidebar Styling
 * Modern, clean design with smooth animations
 * Author: XTreders Development Team
 * Date: October 2025
 */

/* ============================================
   SIDEBAR CONTAINER
   ============================================ */
.pro-sidebar.tag_navbar_top_side {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e0e4e8;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 70px !important;
    /* Narrow width for icon-only design */
}

.pro-sidebar .sidebar_innr {
    padding: 12px 8px;
    gap: 4px;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.sidebar-section {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.sidebar-section:not(:last-child):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.08) 50%, 
        transparent 100%
    );
}

.sidebar-section.main-nav {
    padding-top: 4px;
}

.sidebar-section.secondary-nav {
    padding-top: 8px;
}

/* ============================================
   NAVIGATION ITEMS
   ============================================ */
.pro-sidebar .sidebar_innr > .btn,
.sidebar-section > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px;
    margin: 4px auto;
    border-radius: 12px;
    line-height: 1.5;
    min-height: 52px;
    width: 52px;
    font-weight: 500;
    font-size: 15px;
    color: #2c3e50;
    text-decoration: none;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Hover Effects */
.pro-sidebar .sidebar_innr > .btn:hover,
.sidebar-section > .btn:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.05);
}

.pro-sidebar .sidebar_innr > .btn:active,
.sidebar-section > .btn:active {
    transform: scale(0.98) translateX(3px);
}

/* Active State */
.pro-sidebar .sidebar_innr > .btn.active,
.sidebar-section > .btn.active {
    background: rgba(var(--main-color-rgb, 68, 108, 179), 0.1);
    color: var(--main-color, #446cb3);
    font-weight: 600;
}

/* ============================================
   ICON WRAPPER
   ============================================ */
.pro-sidebar .icon-wrapper {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pro-sidebar .btn:hover .icon-wrapper {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Icon Wrapper - Simple Monochrome Design */
.pro-sidebar .btn .icon-wrapper {
    background: rgba(0, 0, 0, 0.06);
    /* Removed all color gradients - using simple gray background */
}

.pro-sidebar .btn:hover .icon-wrapper {
    background: rgba(0, 0, 0, 0.1);
}

.pro-sidebar .btn.active .icon-wrapper {
    background: var(--main-color, #446cb3);
}

/* Icon SVG Styling */
.pro-sidebar .icon-wrapper svg {
    width: 20px;
    height: 20px;
    margin: 0;
    display: block;
}

.pro-sidebar .icon-wrapper svg path {
    fill: #444444;
    /* Dark gray icons instead of white */
}

.pro-sidebar .btn:hover .icon-wrapper svg path {
    fill: #222222;
}

.pro-sidebar .btn.active .icon-wrapper svg path {
    fill: #ffffff;
}

/* ============================================
   NAVIGATION LABELS - HIDDEN
   ============================================ */
.pro-sidebar .nav-label {
    display: none;
    /* Labels hidden for cleaner icon-only design */
}

/* ============================================
   SIDEBAR FOOTER
   ============================================ */
.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-footer .see-more-btn {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.sidebar-footer .see-more-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    transform: none;
}

.sidebar-footer .more-icon {
    background: linear-gradient(135deg, #636F7E 0%, #4a5568 100%);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1200px) {
    .pro-sidebar.tag_navbar_top_side {
        width: 220px;
    }
    
    .pro-sidebar .nav-label {
        font-size: 14px;
    }
    
    .pro-sidebar .icon-wrapper {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
.pro-sidebar .sidebar_innr::-webkit-scrollbar {
    width: 6px;
}

.pro-sidebar .sidebar_innr::-webkit-scrollbar-track {
    background: transparent;
}

.pro-sidebar .sidebar_innr::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.pro-sidebar .sidebar_innr::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
body.night .pro-sidebar.tag_navbar_top_side {
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    border-right-color: #2d2d2d;
}

body.night .pro-sidebar .sidebar_innr > .btn,
body.night .sidebar-section > .btn {
    color: #e0e0e0;
}

body.night .pro-sidebar .sidebar_innr > .btn:hover,
body.night .sidebar-section > .btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

body.night .sidebar-section:not(:last-child):after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    );
}

body.night .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.night .sidebar-footer .see-more-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.night .sidebar-footer .see-more-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   BADGE & NOTIFICATION SUPPORT (Future)
   ============================================ */
.pro-sidebar .nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pro-sidebar .btn {
    animation: slideInLeft 0.3s ease forwards;
}

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

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.pro-sidebar .btn:focus {
    outline: 2px solid var(--main-color, #446cb3);
    outline-offset: 2px;
}

.pro-sidebar .btn:focus:not(:focus-visible) {
    outline: none;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .pro-sidebar.tag_navbar_top_side {
        border-right-width: 2px;
    }
    
    .pro-sidebar .sidebar_innr > .btn,
    .sidebar-section > .btn {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pro-sidebar .btn,
    .pro-sidebar .icon-wrapper,
    .pro-sidebar .nav-label {
        animation: none !important;
        transition: none !important;
    }
}
