@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #fafbfe;
}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #0e2238;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}


#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar-wrapper {
    min-width: 250px;
    max-width: 250px;
    background: #fff;
    border-right: 1px solid #dee2e6;
}

#page-content-wrapper {
    width: 100%;
    padding: 20px;
    margin-top:170px
}

/* Toggled state - hide sidebar */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

#sidebar:not(.expand) .sidebar-dropdown a.sidebar-link span {
    display: inline-block;
}


.supplier-sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(14, 34, 56, 0.95) 0%, rgba(14, 34, 56, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.supplier-sidebar.collapsed {
    width: 100px;
}

.supplier-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.supplier-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
}

.supplier-toggle-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supplier-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.supplier-toggle-btn:hover::before {
    opacity: 1;
}

.supplier-sidebar-title {
    position: relative;
    opacity: 1;
    transition: all 0.3s ease;
}

.supplier-sidebar.collapsed .supplier-sidebar-title {
    opacity: 0;
    transform: translateX(-20px);
}

.title-text {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
}

.title-accent {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin-top: 5px;
    border-radius: 2px;
}

.supplier-list {
    padding: 20px 0;
    max-height: calc(100vh - 120px);

}

.supplier-list::-webkit-scrollbar {
    width: 4px;
}

.supplier-list::-webkit-scrollbar-track {
    background: transparent;
}

.supplier-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.supplier-section {
    margin-bottom: 15px;
}

.section-divider {
    padding: 10px 20px 5px;
    margin-bottom: 10px;
}

.divider-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* .supplier-sidebar.collapsed .divider-text {
    opacity: 0;
} */

.supplier-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 3px 15px;
    overflow: hidden;
    margin-top: 10px;

}

.supplier-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.supplier-item:hover::before,
.supplier-item.active::before {
    transform: scaleY(1);
}

.supplier-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 5px;
}

.supplier-item:hover .supplier-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.supplier-item.active .supplier-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #0e2238;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.supplier-name {
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600
}


/*

.supplier-item.active, .supplier-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    padding: 6px 0px;
    border-radius: 10px;
}

.active-pulse {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
    animation: activePulse 2s infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    margin-right: 10px
}

.supplier-sidebar.collapsed .active-pulse {
    opacity: 0;
}

@keyframes activePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.item-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.supplier-item:hover .item-glow {
    opacity: 1;
} */
