@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    --black-color: #262626;
    --blue-color: #247BA0;
    --orange-color: #e49273;
    --brown-color: #A37A74;
    --light-blue: #9AADBF;
    --light-orange: #FFF5EE;
    --white-color: #f2f4f7;
    --green-color: #249672;
}
* {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
}
body {
    display: flex;
}
.sidebar {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    height: 100vh;
    padding: 0 1rem;
    overflow: hidden;
    overflow-y: auto;
    /* overflow-x: auto; */
    transition: all 0.5s linear;
    background: var(--black-color);
}
.sidebar:hover {
    width: 235px;
    transition: 0.5s;
}
.logo {
    top: 15px;
    height: 70px;
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 40px;
}
.fa-xmark {
    cursor: pointer;
    color: var(--light-orange);
}
.fa-xmark:hover {
    color: var(--orange-color);
}
.logo a {
    background: linear-gradient(to right, var(--green-color), var(--light-blue), var(--light-orange), var(--orange-color), var(--brown-color), var(--light-blue), var(--green-color));
    background-clip: text;   
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: first baseline;
    justify-content: space-around;
    gap: 0.7rem;
    padding-right: 7px;
}
.logo a span {
    overflow: hidden;
    line-height: 1;
}
.logo a span:hover {
    animation-play-state: paused;
}
.logo a i {
    font-size: 20px;
}
.menu {
    height: 88%;
    padding-top: 10px;
    position: relative;
    list-style: none;
}
.menu li {
    padding: 20px;
    margin: 13px 0;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}
.menu li:hover, 
.active {
    background: var(--orange-color);
}
.menu a {
    color: var(--white-color);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.menu a i {
    font-size: 1.5rem;
}
.menu-icon i {
    font-size: 1.5rem;
    cursor: pointer;
}
.logout {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}


.main-content {
    position: relative;
    background-color: #313131;
    width: 100vw;
    padding: 1.0rem;
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 2rem;
    margin-bottom: 1rem;
    height: 70px;
}
.header-title {
    color: var(--black-color);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.fa-user-alt {
    color: var(--brown-color);
}
.search-box {
    background: rgb(237, 237, 237);
    border-radius: 15px;
    color: var(--black-color);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
}
.search-box input {
    background: transparent;
    padding: 6px;
}
.search-box i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.5s ease-out;
}
.search-box i:hover {
    transform: scale(1.2);
}

.card-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-button, 
.finance-button,
.order-button {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1.5rem;
}
.main-title {
    color: var(--brown-color);
    padding-bottom: 10px;
    font-size: 20px;
}
.order-button button {
    background: var(--blue-color);
    color: var(--white-color);
}
.order-button button:hover {
    background:#144459;
}
.finance-button button {
    font-size: medium;
    font-weight: 600;
    background: var(--brown-color);
    cursor: pointer;
    transition: all 0.5s;
    color: var(--light-orange);
    padding: 12px 13px;
    border-radius: 5px;
}
.finance-button button:hover {
    background: #634844;
}

.add-button, .download-button {
    font-size: medium;
    font-weight: 600;
    background: var(--green-color);
    cursor: pointer;
    transition: all 0.5s;
    color: var(--white-color);
    padding: 12px 13px;
    border-radius: 5px;
}
.add-button:hover, 
.download-button:hover {
    background: #145440;
    border-radius: 19px;
}


.form-popup {
    bottom: 2;
    right: 15px;
    z-index: 9;
}
.form-container {
    display: none;
    margin-top: 5px;
    padding: 1rem;
    background-color: white;
    border: 3px solid lightgrey;
    border-radius: 3px;
}
.form-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: 100%;
}
.first-col, .second-col, .third-col {
    width: 48%;
}
.order-first-col, .order-second-col, .order-third-col {
    width: 32%;
}
label {
    margin-bottom: 10px;
    display: block;
}
.form-container input[type=text], 
.form-container input[type=date],
.form-container input[type=number],
.form-container select {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}
.form-container input[type=text]:focus, 
.form-container input[type=date]:focus,
.form-container input[type=number]:focus {
    background-color: #ddd;
    outline: none;
}
.button-col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.form-container .btn {
    background-color: var(--green-color);
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 30%;
    margin-bottom:10px;
    opacity: 0.8;
    font-size: 15px;
}
.form-container .cancel {
    background-color: var(--orange-color);
}
.form-container .btn:hover, .open-button:hover {
    opacity: 1;
}


.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* justify-content: center; */
    gap: 1rem;
}
.card-wrapper a {
    text-decoration: none;
    color: var(--black-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    width: 290px;
    /* height: 150px; */
    border-radius: 10px;
    transition: all 0.5s ease-in-out;
}
.card-wrapper a:hover {
    transform: translateY(-5px);
}
.card-wrapper a:first-child {
    background-color: #24967259;
    border-left: 8px solid #249672;
}
.card-wrapper a:nth-child(2) {
    background-color: #A37A7459;
    border-left: 8px solid #A37A74;
}
.card-wrapper a:nth-child(3) {
    background-color: #247BA059;
    border-left: 8px solid #247BA0;
}
.card-wrapper a:nth-child(4) {
    background-color: #e4927359;
    border-left: 8px solid #e49273;
}
.card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.amount {
    display: flex;
    flex-direction: column;
}
.title {
    font-size: 12px;
    font-weight: 500;
}
.amount-value {
    font-size: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
}
.icon {
    color: var(--light-orange);
    padding: 1.0rem;
    height: 50px;
    width: 50px;
    text-align: center;
    background-color: var(--brown-color);
    border-radius: 50%;
    font-size: 1.1rem;
}
.card-detail {
    font-size: 17px;
    color: #63484460;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
}

/* ---- Charts ---- */
.charts-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.charts-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1.2rem;
}
.charts-card {
    background-color: #FFF5EE;
    width: 600px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: -7px 4px 7px -2px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease-in-out;
}
.charts-card:hover {
    transform: translateY(-6px);
}
.chart-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.table-wrapper {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 2rem;
    height: 90%;
}
.table-container {
    margin-top: 5px;
    max-width: 100%;
    overflow-x: auto;
}
.table-container button {
    color: var(--brown-color);
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead {
    background-color: var(--black-color);
    color: var(--white-color);
}
th {
    cursor: pointer;
    transition: background-color 0.5s;
    padding: 15px;
    text-align: left;
}
th:hover {
    color: var(--brown-color);
}
tbody {
    background: rgb(237, 237, 237);
}
td {
    padding: 15px;
    font-size: 14px;
    color: var(--black-color);
}
td span {
    padding: 5px;
    background: transparent;
}
tr:nth-child(even) {
    background: white;
}
tfoot {
    background: #313131;
    font-weight: bold;
    color: var(--white-color);
}
tfoot td {
    padding: 15px;
    color: var(--orange-color);
    font-weight: 600;
    font-size: 15px;
}
#total-revenue {
    color: #33d8a4;
}
.tr-amount {
    color: #e8754c;
    font-weight: 700;
}
.order-total {
    color: #38b48d;
    font-weight: 700;
}
.status {
    border-radius: 10px;
    color: var(--black-color);
    width: 73px;
    display: flex;
    justify-content: center;
    padding: 2px;
}
.pending {
    background: #e4927380;
}
.processing {
    background: #e4cf7380;
}
.shipped {
    background: #24967280;
}
.delivered {
    background: #9AADBF30;
    color: #63484460;
}

.edit-icon{
    padding-right: 1rem;
}
.action i {
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.5s ease-out;
}
.action i:hover {
    transform: scale(1.2);
}

.guide-container, .about-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.about-container a {
    text-decoration: none;
    color: var(--blue-color);
}
.about-container a:hover {
    color: var(--brown-color);
}
p, ol {
    padding-bottom: 1rem;
    padding-top: 10px;
    font-size: large;
    text-align: justify;
    line-height: 1.8;
}
ol {
    padding-left: 4rem;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1rem;
    gap: 2rem;
    list-style: none;
}
.contact-icon a {
    text-decoration: none;
    color: var(--blue-color);
}
.fa-linkedin,
.fa-square-github,
.fa-envelope {
    font-size: 1.8rem;
}
.fa-linkedin:hover,
.fa-square-github:hover,
.fa-envelope:hover {
    color: var(--brown-color);
}



/* ---------- SCROLLBARS ---------- */

::-webkit-scrollbar {
    width: 6px;
    height: 5px;
}
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #a5aaad;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: rgb(195, 191, 191);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #a5aaad;
}


/* ---------- MEDIA QUERIES ---------- */

/* Default styles for larger screens */
@media screen and (min-width: 992px) {
    .sidebar {
        display: flex;
        position: sticky;
    }
    .main-content {
        margin-left: 0;
    }
}



/* Media query for smaller screens */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        position: fixed;
        width: 190px;
    }
    .sidebar:hover {
        width: 210px;
    }

    .main-content {
        margin-left: 0;
        position: inherit;
    }
}


/* Medium <= 992px */
/* @media screen and (max-width: 992px) {
    .grid-container {
      grid-template-columns: 1fr;
      grid-template-rows: 0.2fr 3fr;
      grid-template-areas:
        "header"
        "main";
    }
  
    #sidebar {
      display: none;
    }
    .menu-icon {
      display: inline;
    }
    .logo > span {
      display: inline;
    }
} */
  
  /* Small <= 768px */
/* @media screen and (max-width: 768px) {
    .main-cards {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 0;
    }
  
    .charts {
      grid-template-columns: 1fr;
      margin-top: 30px;
    }
} */
  
  /* Extra Small <= 576px */
/* @media screen and (max-width: 576px) {
    .header-left {
      display: none;
    }
} */


