/* Modern Sidebar Styles - Matching Dashboard Theme */

/* Main Sidebar Container */
.modern-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15) !important;
    border-right: none !important;
}

/* Logo Section */
.modern-sidebar .side-bar-logo {
    padding: 20px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}

.modern-sidebar .side-bar-logo img {
    height: 38px;
    width: auto;
    max-width: 180px;
    filter: brightness(0) invert(1);
}

/* Scrollbar */
.modern-sidebar::-webkit-scrollbar {
    width: 4px;
}

.modern-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.modern-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modern-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Menu Container */
.modern-sidebar .side-bar-manu {
    padding: 16px 12px !important;
    margin-top: 0 !important;
}

/* Menu Items */
.modern-sidebar .side-bar-manu li {
    margin: 4px 0 !important;
}

.modern-sidebar .side-bar-manu > ul > li > a {
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.modern-sidebar .side-bar-manu > ul > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--clr-primary) 0%, #ff9f43 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.modern-sidebar .side-bar-manu > ul > li > a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(4px);
}

.modern-sidebar .side-bar-manu > ul > li > a:hover::before {
    width: 100%;
    opacity: 0.15;
}

/* Active State */
.modern-sidebar .side-bar-manu > ul > li.active > a {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #ff9f43 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(252, 128, 25, 0.4);
}

.modern-sidebar .side-bar-manu > ul > li.active > a::before {
    display: none;
}

/* Icons */
.modern-sidebar .side-bar-manu li a .sidebar-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px !important;
    flex-shrink: 0;
}

.modern-sidebar .side-bar-manu li a .sidebar-icon svg {
    width: 20px !important;
    height: 20px !important;
    color: currentColor;
}

.modern-sidebar .side-bar-manu li a .sidebar-icon svg path {
    stroke: currentColor !important;
}

/* Title Text */
.modern-sidebar .side-bar-manu li a .title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Arrow */
.modern-sidebar .side-bar-manu .dropdown::before {
    content: '' !important;
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    transition: all 0.3s ease;
    font-family: inherit !important;
}

.modern-sidebar .side-bar-manu .dropdown.active::before {
    transform: translateY(-50%) rotate(45deg);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Dropdown Menu */
.modern-sidebar .side-bar-manu .dropdown-menu {
    background: transparent !important;
    border: none !important;
    padding: 4px 0 4px 20px !important;
    margin: 0 !important;
    border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
    margin-left: 26px !important;
}

.modern-sidebar .side-bar-manu .dropdown-menu li {
    margin: 2px 0 !important;
}

.modern-sidebar .side-bar-manu .dropdown-menu li a {
    padding: 10px 16px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.modern-sidebar .side-bar-manu .dropdown-menu li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding-left: 20px !important;
}

.modern-sidebar .side-bar-manu .dropdown-menu li a.active {
    color: var(--clr-primary) !important;
    background: rgba(252, 128, 25, 0.15) !important;
    font-weight: 500 !important;
}

/* Badge New */
.modern-sidebar .badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Close Button */
.modern-sidebar .close-btn {
    color: #fff !important;
    opacity: 0.7;
}

.modern-sidebar .close-btn:hover {
    opacity: 1;
}

/* Collapsed State */
.modern-sidebar.active {
    width: 70px !important;
}

.modern-sidebar.active .side-bar-logo img {
    width: 40px;
}

.modern-sidebar.active .side-bar-manu > ul > li > a .title,
.modern-sidebar.active .badge-new {
    display: none !important;
}

.modern-sidebar.active .side-bar-manu .dropdown::before {
    display: none !important;
}

.modern-sidebar.active .side-bar-manu .dropdown-menu {
    display: none !important;
}

.modern-sidebar.active:hover {
    width: 280px !important;
}

.modern-sidebar.active:hover .side-bar-logo img {
    width: auto;
}

.modern-sidebar.active:hover .side-bar-manu > ul > li > a .title,
.modern-sidebar.active:hover .badge-new {
    display: inline-flex !important;
}

.modern-sidebar.active:hover .side-bar-manu .dropdown::before {
    display: block !important;
}

.modern-sidebar.active:hover .side-bar-manu .dropdown.active .dropdown-menu {
    display: block !important;
}

/* Responsive */
@media (max-width: 1150px) {
    .modern-sidebar {
        left: -100%;
    }
    
    .modern-sidebar.active {
        left: 0 !important;
        width: 280px !important;
    }
}

/* Animation for menu items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modern-sidebar .side-bar-manu > ul > li {
    animation: slideIn 0.3s ease forwards;
}

.modern-sidebar .side-bar-manu > ul > li:nth-child(1) { animation-delay: 0.05s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(2) { animation-delay: 0.1s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(3) { animation-delay: 0.15s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(4) { animation-delay: 0.2s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(5) { animation-delay: 0.25s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(6) { animation-delay: 0.3s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(7) { animation-delay: 0.35s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(8) { animation-delay: 0.4s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(9) { animation-delay: 0.45s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(10) { animation-delay: 0.5s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(11) { animation-delay: 0.55s; }
.modern-sidebar .side-bar-manu > ul > li:nth-child(12) { animation-delay: 0.6s; }


/* ============================================
   Modern Header Styles
   ============================================ */

.header-bg {
    background: #fff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
}

.main-header-section {
    padding: 12px 24px !important;
    background: #fff !important;
    border-left: none !important;
}

.header-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.sidebar-opner {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-opner:hover {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #ff9f43 100%);
}

.sidebar-opner:hover i {
    color: #fff !important;
}

.sidebar-opner i {
    font-size: 18px !important;
    color: #374151 !important;
    margin-right: 0 !important;
}

.view-website {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: linear-gradient(135deg, rgba(252, 128, 25, 0.1) 0%, rgba(255, 159, 67, 0.1) 100%) !important;
    border-radius: 10px !important;
    color: var(--clr-primary) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.view-website:hover {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #ff9f43 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 128, 25, 0.3);
}

.view-website:hover svg path {
    stroke: #fff;
}

.view-website svg {
    width: 18px;
    height: 18px;
}

.view-website p {
    margin: 0 !important;
    color: inherit !important;
}

/* Language Dropdown */
.language-dropdown {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.3s ease !important;
}

.language-dropdown:hover,
.language-dropdown:focus {
    border-color: var(--clr-primary) !important;
    background: #fff !important;
}

.language-dropdown .flag-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.language-dropdown::after {
    display: none !important;
}

/* Notification */
.custom-notification-wrapper {
    position: relative;
}

.custom-notification-toggle {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f9fafb !important;
    border-radius: 12px !important;
    position: relative;
    transition: all 0.3s ease !important;
}

.custom-notification-toggle:hover {
    background: linear-gradient(135deg, rgba(252, 128, 25, 0.1) 0%, rgba(255, 159, 67, 0.1) 100%) !important;
}

.custom-notification-count {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 50% !important;
    padding: 0 4px !important;
}

.custom-notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #f3f4f6;
    z-index: 1000;
    overflow: hidden;
}

.custom-notification-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-notification-header p {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

.custom-notification-header .read-btn {
    font-size: 13px;
    color: var(--clr-primary);
    font-weight: 500;
}

.custom-notification-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.custom-notification-item {
    margin: 4px 0;
}

.custom-notification-link {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-notification-link:hover {
    background: #f9fafb;
}

.custom-notification-link strong {
    display: block;
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    margin-bottom: 4px;
}

.custom-notification-time {
    font-size: 12px;
    color: #6b7280;
}

.custom-notification-footer {
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.custom-view-all {
    font-size: 14px;
    color: var(--clr-primary);
    font-weight: 500;
}

/* Profile Dropdown */
.profile-info > a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 12px !important;
    background: #f9fafb !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.profile-info > a:hover {
    background: #f3f4f6 !important;
}

.profile-info > a img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
}

.profile-text .name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.3 !important;
}

.profile-text .text {
    font-size: 12px !important;
    color: #6b7280 !important;
    line-height: 1.3 !important;
}

.profile-info .dropdown-menu {
    min-width: 200px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.profile-info .dropdown-menu li {
    margin: 2px 0 !important;
    border-bottom: none !important;
}

.profile-info .dropdown-menu li a {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #374151 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
}

.profile-info .dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(252, 128, 25, 0.1) 0%, rgba(255, 159, 67, 0.1) 100%) !important;
    color: var(--clr-primary) !important;
}

.profile-info .dropdown-menu li a i {
    width: 18px;
    text-align: center;
    color: #6b7280;
}

.profile-info .dropdown-menu li a:hover i {
    color: var(--clr-primary);
}
