*{
    margin: 0;
    padding: 0;
    font-family: poppins;
    box-sizing: border-box;
    /* border: 2px solid; */
    transition: 0.7s;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 5px; /* Width of the scrollbar */
    height: 12px; /* Height of the scrollbar (for horizontal scrollbar) */
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1; /* Light background for the track */
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #d0d0d0; /* Darker thumb color on hover */

    border-radius: 10px;
    transition: background 0.3s ease; /* Smooth transition for thumb color */
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0; /* Darker thumb color on hover */
  }
  
  /* Optional: For horizontal scrollbars */
  ::-webkit-scrollbar-horizontal {
    height: 8px;
  }
  
  ::-webkit-scrollbar-track-horizontal {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb-horizontal {
    background: #888;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb-horizontal:hover {
    background: #555;
  }
  
.none {
    display: none;
}
.left-tab-toggle {
    background-color: #d1e5fe;
    color: #333333;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}


.edit-card {
    width: 350px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-card input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
}

.edit-card input:focus {
    border-color: #3498db;
}

.edit-card button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.edit-card button:hover {
    background-color: #27ae60;
}


.container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    z-index: 5;
}
.container input {
    margin-bottom: 15px;
}
.container.show {
    opacity: 1;
    pointer-events: all;
}
.container .headers {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}
.container #close {
    color: white;
    font-size: 32px;
    position: absolute;
    right: 30px;
    top: 20px;
    cursor: pointer;
}

/* ==========
popups
========= */

.pop-ups {
    position: absolute;
    right: 20px;
    top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 8;
}
.pop-ups  .pop {
    position: relative;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    animation: show_popup 0.5s ease backwards;
    padding: 15px 0px;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)

}
.pop-ups .pop  img {
    width: 35px;
    margin-right: 10px;
    margin-left: 20px;
}
.pop-ups  .pop::before {
    position: absolute;
    content: " ";
    height: 3px;
    background-color: #3498db;
    width: 100%;
    bottom: 0;
    animation : width 6s forwards

}

.pop-ups  .pop #cancle {
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
}
.pop-ups .pop.hide{
    animation: hide_popup 1s forwards;
}

@keyframes show_popup {
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(0px);
    }
}
@keyframes width {
    100%{
        width: 0px;
    }
}
@keyframes hide_popup {
    0%{
        transform: translateX(0px);
    }
    100%{
        transform: translateX(calc(100% + 20px));
    }
}
#toti {
    font-weight: 450;
}



/* ============================================== */
/* ================
variables
================ */

:root {
    --primary-color : #ccc;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* ========================
header
======================== */

.header  {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background-color: #EAF3FF ; */
    padding: 30px 50px;
}

.header ion-icon {
    display: none;
}
.header .name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #4361EE;
}

.header .user{
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .user .user-name{
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
}
.header .user-icon {
    width: 45px;
}

/* main container */

.main-container {
    display: flex;
    width: 100%;
    /* height: 92vh; */
}

.main-container .right-container {
    background-color: #d1e5fe;
    /* height: 92vh; */
    width: 100%;
    padding: 30px 30px;
    border-radius: 13px;
    transition: 0.5s ease-in;
    padding-bottom: 40px;
}


.main-container .left-container {
    padding-left: 30px;
    padding-top: 20px;
    background-color: #f5f5f5;
    width: 17%;
    height: 92vh;
}


.main-container .left-container .icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}


.main-container .left-container .icons .icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    padding: 20px 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    color: #4361EE;
    cursor: pointer;

}
.main-container .left-container .icons .icon ion-icon {
    font-size: 1.4rem;
}

.main-container .right-container .dashboard {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    gap: 30px;
    width: 100%;
}


.main-container .right-container .dashboard  .frame{
    /* width: 290px; */
    background-color: #fff;
    padding: 20px 20px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.main-container .right-container .dashboard  .frame #icon {
    width: 60px;
    height: 60px;
    /* background-color: #dae4f0; */

}

.main-container .right-container .dashboard  .frame p {
    font-weight: 500;
    color: #555;
}
.main-container .right-container .dashboard  .frame #t-item, #cat, #stock-val, #cat-val, #t-amt{
    color: #4361EE;
}

.main-container .right-container .dashboard  .frame .txt:nth-child(2) {
    font-weight: 600;
}


/* ======================
graphs
====================== */

.right-container .graphs {
    width: 100%;

}

.right-container .graphs {
    display: flex;
    /* align-items: center; */
    gap: 36px;
}

.right-container .graphs .graph-lines {
    width: 79.8%;
    /* height: 350px; */
    background-color: #fff;
    margin-top: 20px;
    border-radius: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.right-container .graphs .pi-chart {
    width: 20%;
    height: 350px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 13px;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}


.right-container .graphs .graph-lines .line {
    width: 100%;
    height: 100%;
    max-width: 100%;
 }

 .right-container .graphs .graph-lines .pi {
    width: 100%;
    height: 100%;
    max-width: 100%;
 }


.right-container .graphs .pi-chart .details {
    display: flex;
    flex-direction: column;
    height: 120px;
    /* align-items: center; */
    /* justify-content: space-between; */
    gap: 10px;
    /* padding: 0px 10px; */
    overflow: auto;
    margin-top: 10px;
}

.right-container .graphs .pi-chart .details .detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    background-color:#fff;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 5px;
}

/* ==================
table
================== */
.right-container .table-container {
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 13px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    /* max-width: 600px; */
    margin-top: 20px;
    height: 320px;
    overflow-x: auto;

  }

  .table-container h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }

  .right-container .table-container table {
    width: 100%;
    /* height: 100%; */
    border-collapse: collapse;
    text-align: left;
    overflow-x: auto;
  }
  .right-container .table-container #td1 .low-stock {
    width: 60px;
    border: 2px dotted red;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .right-container .table-container table #in-img {
    width: 40px;
    height: 40px;
  }
  th, td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
  }

  th {
    color: #555;
    font-weight: 600;
  }

  tr:hover {
    background-color: #f5f5f5;
  }

  td {
    color: #666;
  }

  td:last-child {
    font-weight: bold;
    color: #333;
  }
#td1-tbody #num{
}
  #td1-tbody img {
    width: 40px;
  }
  #td1-tbody tr #num p{
    border: 2px dotted red;
    text-align: center;
    width: 60px;
    padding: 3px 0px;
    border-radius: 20px;
    color: red;
  }
/* ===================
inventory
=================== */

.main-container .right-container .inventory {
    display: none;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 13px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
}

.main-container .right-container .inventory .in-header {
    font-size: 1.2rem;
    font-weight: 500;
    color:#333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-container .right-container .inventory .in-header img {
    width: 30px;
}


.main-container .right-container .inventory .search-section {
    display: flex;
    align-items: center;
    border: 1px solid rgb(201, 200, 200);
    margin-top: 20px;
    padding: 10px 10px;
    border-radius: 5px;
    height: 60px;

}
 .inventory .search-section #inse, input {
    outline: none;
    border: none;
    font-size: 0.94rem;
}
.main-container .right-container .inventory .search-section select {
    width: 13%;
}
.main-container .right-container .inventory .search-section .search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.main-container .right-container .inventory .search-section .search input {
    width: 94%;
    padding: 0 20px;

}

.main-container .right-container .inventory .search-section .search ion-icon {
    font-size: 1.2rem;
}

.main-container .right-container .inventory .table-container {
    height: 500px
}
.main-container .right-container .inventory .table-container table {
    max-height: 500px;
}

.main-container .right-container .inventory .table-container table tbody tr .ops {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 71.2px;
}

.main-container .right-container .inventory .table-container table tbody tr .ops .op {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background-color: red;
    width: 30px;
    height: 30px;
    font-weight: 500;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.main-container .right-container .inventory .table-container table tbody tr .ops .op:nth-child(1) {
    background-color: green;
}

/* ==============
add items
============== */
.main-container .right-container .add-items-iv {
    display: none;
    /* background-color: #fff; */
    /* height: 100%; */
    /* padding: 20px 20px; */
    border-radius: 13px;
    /* box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); */

}

.main-container .right-container .add {
    display: flex; 
    /* align-items: center; */
    /* justify-content: center;*/
    gap: 50px;
}

.main-container .right-container .add-items-iv .in-header {
    display: flex;
    gap: 10px;
    font-weight: 500;
    color: #333;
}

.main-container .right-container .add-items-iv .in-header p {
    font-size: 1.2rem;
}

.main-container .right-container .add-items-iv .in-header img {
    width: 25px;
    height: 25px;
}
.main-container .right-container .add-items-iv  .add {
    margin-top: 20px;
}
.main-container .right-container .add-items-iv .upload {
    width: 40%;
    height: 400px;
    background-color: #fff;
    border-radius: 13px;
    border: 1px solid rgb(251, 251, 251);
    padding: 10px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) */
    position: relative;
}

.main-container .right-container .add-items-iv .upload #imagePreview {
    display: none;
    width: 100%;
    height: 80%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 13px;
    z-index: 3;
}

.main-container .right-container .add-items-iv .upload input {
    position: absolute;
    bottom: 20px;
}

.main-container .right-container .add-items-iv .inventory-form {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    gap: 30px;
    width: 60%;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 13px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) */
}

  .inventory-form input, #category {
    height: 60px;
    border: 1px solid rgb(201, 200, 200);
    padding: 0px 20px;
    border-radius: 13px;
}

.main-container .right-container .add-items-iv .inventory-form button {
    width: 150px;
    outline: none;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    background:#3498db;
    border-radius: 13px;
    color: white;
}
.in-se {
    height: 100%;
}


  /* media query for large device */

  @media(max-width : 1290px) {
    .main-container .right-container {
        width: 92%;
    }
    .main-container .left-container {
        padding-left: 10px;
        width: 8%;

    }

    .right-container .graphs .graph-lines {
        overflow: hidden;
    }

    .right-container .graphs .pi-chart {
        overflow: hidden;
    }

    .main-container .right-container .dashboard {
        display: flex;
        align-items: center;

        gap: 20px;
    }

    .main-container .right-container .dashboard  .frame {
        gap: 10px;
    }

    .main-container .left-container .icons #icon-name {
        display: none;
    }

    .right-container .graphs .graph-lines #curve_chart {
        width: 100%;
    }
  }

  @media(max-width : 1170px) {
    .right-container .graphs .pi-chart .details .detail {
        font-size: 0.8rem;
    }
    .right-container .graphs .graph-lines {
        width: 70%;
    }
    .right-container .graphs  .pi-chart {
        width: 30%;
    }
    .main-container .right-container .dashboard {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    .main-container .right-container .dashboard .frame {
        /* width: 40%; */
        /* width: 300px; */
    }
  }

  @media(max-width : 930px) {
    .main-container .left-container {
        width: 10%;
    }
    .main-container .left-container .icons .icon {
        padding: 10px;
    }
    .right-container .graphs .graph-lines {
        width: 60%;
    }
    .right-container .graphs  .pi-chart {
        width: 40%;
    }
    .main-container .right-container .add-items-iv .upload {
        overflow: hidden;
        width: 350px;
    }
    .main-container .right-container .add {
        display: flex;
        gap: 20px;
    }
  }


  @media(max-width: 545px) {
    body{
        overflow-x: hidden;
    }
    td {
        font-size: 0.9rem;
    }
    .header {
        padding: 0px 20px;
    }
    .header ion-icon {
        display: block;
        font-size: 2rem;
        color: #4361EE;
    }
    .main-container {
        display: flex;
        flex-direction: column;
        height: 300px;
    }
    .main-container .left-container {
        width: 100%;
        /* height: 100vh; */
        position: fixed;
        width: 100%;
        height: 60px;
        padding: 0;
        bottom: 10px;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
    }
    .main-container .right-container .inventory {
        padding: 20px 15px;
    }
    .main-container .right-container {
        width: 100%;
        padding: 20px 15px;
    }
    .main-container .left-container .icons {
        margin-top: 0;
        display: flex;
        flex-direction: row;
        gap: 40px;
        background-color: red;
        width: 85%;
        padding: 5px 20px;
        background-color: transparent;
        backdrop-filter: blur(100px);
        border-radius: 30px;
        border: 1px solid #ccc;
    }
    .main-container .left-container .icons .icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-container .left-container .icons .icon:nth-child(1)  {
        background-color: transparent;
        box-shadow: none;
    }

    .inventory-form input, #category {
        height: 50px;
    }

    .main-container .right-container .dashboard .frame{
        width: 100%;
        display: flex;
        gap: 30px;
       /* align-items: center;
        justify-content: space-between;
        padding: 20px 50px; */
    }
    .right-container .graphs {
        display: flex;
        flex-direction: column;
    }
    .right-container .graphs .graph-lines {
        width: 100%;
        height: 400px;
    }
    .right-container .graphs  .pi-chart {
        width: 100%;
        margin-top: 0;
    }
    .right-container .inventory {
        padding: 20px;
    }
    .main-container .right-container .add  {
        display: flex;
        flex-direction: column;
    }
    .main-container .right-container .add-items-iv .upload {
        width: 100%;
    }
    .main-container .right-container .add-items-iv .inventory-form {
        width: 100%;
        display: flex;
        gap: 25px;
    }
  }