/* TailAdmin White Sidebar Theme */

/* Main Sidebar Container */
.side-bar {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb;
    box-shadow: none !important;
    width: 260px !important;
}

/* Content Container - Match sidebar width */
.section-container {
    padding-left: 260px !important;
}

/* Scrollbar Styling for White Theme */
.side-bar::-webkit-scrollbar {
    width: 4px;
}

.side-bar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.side-bar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.side-bar::-webkit-scrollbar-track {
    background: #f3f4f6;
}

/* Logo Area */
.side-bar-logo {
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.side-bar-logo img {
    height: 40px;
    width: auto;
}

/* Text-based Logo */
.logo-text-link {
    text-decoration: none !important;
    display: block;
}

.logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
    letter-spacing: -0.5px;
    display: block;
    transition: color 0.2s ease;
}

.logo-text-link:hover .logo-text {
    color: #4338ca !important;
}

/* Menu Section */
.side-bar-manu {
    padding: 12px 12px;
}

/* Menu Items */
.side-bar-manu li {
    margin: 2px 0 !important;
}

.side-bar-manu li a {
    color: #374151 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

/* Hover State */
.side-bar-manu li a:hover {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
}

/* Active State - Only for links with .active class */
.side-bar-manu li.active > a,
.side-bar-manu li > a.active {
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
}

/* Icons - Using IMG tags with SVG */
.side-bar-manu li a .sidebar-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.side-bar-manu li a .sidebar-icon img {
    width: 20px;
    height: 20px;
    /* Gray filter for default state */
    filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(495%) hue-rotate(181deg) brightness(92%) contrast(87%);
    transition: filter 0.2s ease;
}

.side-bar-manu li a:hover .sidebar-icon img {
    /* Darker gray on hover */
    filter: brightness(0) saturate(100%) invert(24%) sepia(7%) saturate(738%) hue-rotate(181deg) brightness(96%) contrast(92%);
}

.side-bar-manu li.active a .sidebar-icon img,
.side-bar-manu li a.active .sidebar-icon img {
    /* Indigo filter for active state */
    filter: brightness(0) saturate(100%) invert(35%) sepia(89%) saturate(1756%) hue-rotate(231deg) brightness(92%) contrast(91%);
}

/* Change SVG icon colors for inline SVGs (if any) */
.side-bar-manu li a .sidebar-icon svg,
.side-bar-manu li a .sidebar-icon svg path {
    fill: #6b7280 !important;
}

.side-bar-manu li a:hover .sidebar-icon svg,
.side-bar-manu li a:hover .sidebar-icon svg path {
    fill: #374151 !important;
}

.side-bar-manu li.active a .sidebar-icon svg,
.side-bar-manu li a.active .sidebar-icon svg,
.side-bar-manu li.active a .sidebar-icon svg path,
.side-bar-manu li a.active .sidebar-icon svg path {
    fill: #4f46e5 !important;
}

.side-bar-manu li a .sidebar-icon svg {
    stroke: #6b7280 !important;
}

.side-bar-manu li a:hover .sidebar-icon svg {
    stroke: #374151 !important;
}

.side-bar-manu li.active a .sidebar-icon svg,
.side-bar-manu li a.active .sidebar-icon svg {
    stroke: #4f46e5 !important;
}

/* Dropdown Items */
.side-bar-manu .dropdown {
    position: relative !important;
}

.side-bar-manu .dropdown > a {
    position: relative !important;
}

/* Dropdown Arrow */
.side-bar-manu .dropdown::before {
    content: "\f105" !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
    position: absolute !important;
    right: 15px !important;
    font-size: 16px !important;
    display: block !important;
    z-index: 3 !important;
    top: 10px !important;
    transition: transform 0.2s ease !important;
}

.side-bar-manu .dropdown.active::before {
    transform: rotate(90deg) !important;
    color: #4f46e5 !important;
}

/* Remove default blue background from dropdown parent */
.side-bar-manu .dropdown.active > a {
    background-color: transparent !important;
    color: #374151 !important;
}

/* Only show blue when the parent link itself has .active class */
.side-bar-manu .dropdown > a.active {
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
}

/* Dropdown Menu */
.side-bar-manu .dropdown ul {
    background-color: transparent !important;
    padding-left: 32px !important;
    margin-top: 4px !important;
}

.side-bar-manu .dropdown ul li a {
    font-size: 14px !important;
    padding: 8px 12px !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
}

/* Dropdown menu hover and active states */
.side-bar-manu .dropdown ul li a:hover {
    color: #374151 !important;
    background-color: #f9fafb !important;
}

.side-bar-manu .dropdown ul li.active a,
.side-bar-manu .dropdown ul li a.active {
    color: #4f46e5 !important;
    background-color: #eef2ff !important;
}

/* Version Text */
.version-text {
    color: #9ca3af !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* Close Button */
.close-btn {
    color: #6b7280 !important;
}

.close-btn:hover {
    color: #374151 !important;
}

/* Remove before pseudo element on hover/active */
.side-bar-manu li:hover:before,
.side-bar-manu li.active:before {
    display: none !important;
}
