@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=REM:ital,wght@0,100..900;1,100..900&display=swap');
body{
    background-color:#f0f1f2;
    margin: 0px;
    width: 100%;
}
.main{
    display: flex;
     background-color:#f0f1f2;
    
}
.sidebar{
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height:100vh;
    gap: 20px;
    padding: 20px;
    border-radius: 0px 10px 10px 0px;

}
.list{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    line-height: 3;
    gap: 100px;
}
.list ul{
    list-style-type: none;
    padding: 10px;
}
.list ul li{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    font-family: "Inter", sans-serif;
    color: black;
    font-size: 16px;
}
.list ul li img{
    filter: brightness(2) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}
.list ul li:hover img, .list ul li:hover{
    filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(7461%) hue-rotate(205deg) brightness(101%) contrast(101%);
    cursor: pointer;

}
.maincontent{
    width: 100%;
}
.maincontent .navbar{
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    margin-left: 2px;
}
.maincontent .navbar input {
    border: 2px solid #F0F1F3;
    padding: 5px;
    width: 400px;
    color: #858D9D;
    font-family: "Inter", sans-serif;
    font-size: 16px;
}
.maincontent .navbar input::placeholder{
    padding-left: 30px
}
.search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}
.sale-main{
    display: flex;
    padding: 20px;
    gap:2rem;
}
.sale{
    background: #fff;
    width: 85%;
    padding: 20px 0px 20px 10px;
    border-radius: 10px 10px 10px 10px;
}

.sale-items{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
}
.inventory{
    background: #fff;
    width: 40%;
    padding: 20px 0px 20px 10px;
    border-radius: 10px 10px 10px 10px;
}
.inventory-item{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.sale-list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 1rem;
    border-right: 1px solid #F0F1F3;
}
.sale-list img{
    width:30px;
    height: 30px;
}
.sale-list ul{
    list-style-type: none;
    display: flex;
    gap: 2rem;
    padding: 0px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
}
.inventory-list ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
}
.inventory-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-right: 1px solid #F0F1F3;
}
.inventory-list:nth-child(2) {
  border-right: none;
}
.inventory-list img{
    width:30px;
    height: 30px;
}

.sale h2, .inventory h2{
     font-family: "Inter", sans-serif;
     font-size: 20px;
}


.purchase-main{
    display: flex;
    padding: 0px 20px 20px 20px;
    gap:2rem;
}
.purchase{
    background: #fff;
    width: 85%;
    padding: 20px 0px 20px 10px;
    border-radius: 10px 10px 10px 10px;
}

.purchase-item{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
}
.product{
    background: #fff;
    width: 40%;
    padding: 20px 0px 20px 10px;
    border-radius: 10px 10px 10px 10px;
}
.product-item{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.purchase-list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 1rem;
    border-right: 1px solid #F0F1F3;
}
.purchase-list img{
    width:30px;
    height: 30px;
}
.purchase-list ul{
    list-style-type: none;
    display: flex;
    gap: 2rem;
    padding: 0px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
}
.product-list ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
}
.product-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-right: 1px solid #F0F1F3;
}
.product-list:nth-child(2) {
  border-right: none;
}
.product-list img{
    width:30px;
    height: 30px;
}

.purchase h2, .product h2{
     font-family: "Inter", sans-serif;
     font-size: 20px;
}


 .chart-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
            padding: 20px;
            max-width: 900px;
            height: 360px;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .chart-header h3 {
            font-size: 18px;
            margin: 0;
            color: #333;
            font-weight: 600;
        }

        .filter-btn {
            background: #f0f4ff;
            border: 1px solid #cfd8ea;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            color: #555;
        }

        .filter-btn:hover {
            background: #e6efff;
        }

        .chart-body {
            display: flex;
            gap: 15px;
            position: relative;
        }

        .y-axis {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 220px;
            padding-right: 15px;
            font-size: 12px;
            color: #888;
            min-width: 50px;
        }

        .chart-grid {
            flex: 1;
            position: relative;
            display: flex;
            align-items: flex-end;
            height: 220px;
            border-left: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
            gap: 25px;
            padding: 0 15px;
            background: repeating-linear-gradient(
                to top,
                transparent,
                transparent 45px,
                #f3f4f6 46px
            );
        }

        .bar-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            flex: 1;
            height: 100%;
        }

        .bars-wrapper {
            display: flex;
            gap: 4px;
            align-items: flex-end;
            height: 280px;
            justify-content: center;
        }

        .bar {
            width: 16px;
            border-radius: 4px 4px 0 0;
            transition: opacity 0.3s ease;
        }

        .bar:hover {
            opacity: 0.8;
        }

        .bar.purchase {
            background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
        }

        .bar.sales {
            background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
        }

        .month {
            font-size: 12px;
            color: #6b7280;
            margin-top: 8px;
            font-weight: 500;
        }

        .chart-legend {
            display: flex;
            gap: 24px;
            margin-top: 24px;
            font-size: 14px;
            color: #555;
           margin-left: 4.2rem;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .legend-circle {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .legend-circle.purchase-graph {
            background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
        }

        .legend-circle.sales {
            background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
        }

/* ordedr chart css */

  .order-chart-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            height: 360px;
        }

        .order-chart-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin-bottom: 24px;
        }

        .order-chart-wrapper {
            position: relative;
            width: 100%;
            height: 235px;
            margin-bottom: 20px;
        }

        .order-chart-grid {
            position: absolute;
            top: 0;
            left: 60px;
            right: 20px;
            bottom: 0px;
        }

        .order-grid-line {
            stroke: #e5e5e5;
            stroke-width: 1;
            stroke-dasharray: 2,2;
        }

        .order-y-axis {
               position: absolute;
               top: -15px;
               bottom: 30px;
               width: 60px;
               display: flex;
               justify-content: space-between;
               padding: 10px 0;
               flex-direction: column;
               left: -10px;
        }

        .order-y-axis span {
            font-size: 12px;
            color: #666;
            text-align: right;
            padding-right: 10px;
        }

        .order-x-axis {
            position: absolute;
            bottom: 0;
            left: 60px;
            right: 20px;
            height: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 10px;
        }

        .order-x-axis span {
            font-size: 14px;
            color: #666;
        }

        .order-chart-area {
            position: absolute;
            top: 10px;
            left: 60px;
            right: 20px;
            bottom: 95px;
        }

        .order-line-path {
            fill: none;
            stroke-width: 3;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .order-ordered-line {
            stroke: #D97706;
        }

        .order-delivered-line {
            stroke: #60A5FA;
        }

        .order-legend {
            display: flex;
            gap: 24px;
            justify-content: center;
            margin-top: 16px;
        }

        .order-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #666;
        }

        .order-legend-circle {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .order-ordered-circle {
            background-color: #D97706;
        }

        .order-delivered-circle {
            background-color: #60A5FA;
        }

        .order-tooltip {
            position: absolute;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 10;
        }

        .order-hover-dot {
            fill: white;
            stroke-width: 3;
            r: 4;
            opacity: 0;
            transition: opacity 0.2s;
        }

.sales-purchase{
    display: flex;
    padding: 0px 20px 20px 20px;
    gap: 2rem;
}
.sale-chart{
    width: 66%;
}
.order-graph{
    width: 31%;
}
.stock{
    display: flex;
    gap: 2rem;
    margin-bottom: 20px;
}
.selling-stock{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 20px;
    width: 64%;
    margin-left: 20px;
     height: 330px;   
}
.stock-heading{
    display: flex;
    justify-content: space-between;
}
.stock-heading h2{
    font-family: "Inter", sans-serif;
    font-size: 20px;
    color: #383E49;
    font-weight: 500;
}
.stock-heading button{
    border: none;
    background: #fff;
    color: #0F50AA;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}
.selling-stock .table th{
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #5D6679;
}
.selling-stock .table td{
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #666666;
}
.selling-stock .table tr{
    height: 60px;
}

.quantity-stock{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 20px;
    width: 30%;
    height: 330px;
}
.quantity-heading{
    display: flex;
    justify-content: space-between;
}
.quantity-heading h2{
    font-family: "Inter", sans-serif;
    font-size: 20px;
    color: #383E49;
    font-weight: 500;
}
.quantity-heading button{
    border: none;
    background: #fff;
    color: #0F50AA;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}
.table{
    margin-top: 20px;
}
.quantity-stock .table button{
    background: #FEECEB;
    border: none;
    border-radius: 50%;
    color: #AA3028;
    font-family: 'Inter';
    font-size: 14px;
}
.quantity-stock .table tr{
    border: none;
    border-style:hidden;
    height: 20px;
}
.item-names{
    font-size: 16px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #383E49;
}
.items-qut{
    font-size: 12px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #667085;
}
.quantity-stock .table img{
    width: 60px;
    height: 70px;
}