@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;
    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;
}
.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;
    padding-bottom: 200px;
    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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.menu-icon i {
    font-size: 1.5rem;
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.sidebar-close {
    color: var(--light-orange);
}
.sidebar-close:hover {
    color: var(--orange-color);
}
.sidebar-close i {
    font-size: 1.3rem;
}
.logout {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.header-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}
.header-tool-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: var(--black-color);
}
.header-tool-button:hover {
    background: rgb(237, 237, 237);
}
.language-picker {
    position: relative;
    width: auto;
}
.language-toggle,
.language-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.language-toggle {
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #e3e6ea;
    background: #ffffff;
    color: var(--black-color);
    box-shadow: 0 8px 18px rgba(38, 38, 38, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}
.language-toggle:hover,
.language-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(228, 146, 115, 0.45);
    background: #fff8f5;
    box-shadow: 0 12px 24px rgba(38, 38, 38, 0.12);
}
.language-toggle__icon,
.language-toggle__code {
    display: inline-flex;
    align-items: center;
}
.language-toggle__icon {
    flex: 0 0 auto;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    color: inherit;
    font-size: 1.15rem;
    box-shadow: none;
}
.language-toggle__icon--header {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.language-toggle__code {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    min-width: 44px;
    height: 100%;
    justify-content: center;
    padding: 0 0 0 6px;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}
.language-toggle__code::after {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}
.language-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    display: none;
    padding: 0.45rem;
    border-radius: 12px;
    border: 1px solid #ece3df;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(38, 38, 38, 0.14);
    z-index: 20;
    transform-origin: top left;
    overflow: hidden;
    min-width: 168px;
}
.language-menu.is-open {
    display: block;
    animation: language-menu-pop 0.18s ease-out;
}
.language-option {
    justify-content: flex-start;
    position: relative;
    min-height: 44px;
    padding: 11px 12px 11px 42px;
    background: transparent;
    color: var(--black-color);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.language-option::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(163, 122, 116, 0.45);
    transform: translateY(-50%);
    transition: all 0.18s ease;
}
.language-option.is-active {
    background: transparent;
    color: var(--black-color);
    transform: none;
}
.language-option.is-active::before {
    border-color: rgba(163, 122, 116, 0.45);
    background: transparent;
}
.language-option:hover::before {
    border-color: var(--orange-color);
    background: radial-gradient(circle at center, var(--orange-color) 0 48%, transparent 54%);
}
@keyframes language-menu-pop {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.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;
    transition: all 0.5s ease-out;
}
.search-box i:hover {
    transform: scale(1.2);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.page-feedback {
    min-height: 0;
    margin: 0 0 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.page-feedback.is-success,
.page-feedback.is-error {
    padding: 0.85rem 1rem;
}
.page-feedback.is-success {
    background: #e7f7f1;
    color: #145440;
    border: 1px solid #bfe9d9;
}
.page-feedback.is-error {
    background: #fdecec;
    color: #8b1e1e;
    border: 1px solid #f3bcbc;
}
.site-footer {
    background: #ffffff;
    color: var(--black-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-footer p {
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.site-footer__links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-footer__links a,
.footer-link-button {
    color: var(--blue-color);
    text-decoration: none;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.site-footer__links a:hover,
.footer-link-button:hover {
    color: var(--brown-color);
}
.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    width: min(460px, calc(100vw - 2rem));
    background: #fff;
    color: var(--black-color);
    border-left: 6px solid var(--blue-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
}
.cookie-banner[hidden] {
    display: none;
}
.cookie-banner__content h2 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}
.cookie-banner__content p {
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.cookie-banner__content a {
    color: var(--blue-color);
    font-weight: 700;
}
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.cookie-banner__actions .download-button,
.cookie-banner__actions .cookie-banner__secondary {
    min-width: 130px;
}
.cookie-banner__secondary {
    background: var(--orange-color);
    color: var(--white-color);
    padding: 12px 13px;
    border-radius: 5px;
    cursor: pointer;
    font-size: medium;
    font-weight: 600;
}
.cookie-banner__secondary:hover {
    background: #b86e51;
}

.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;
}
.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 {
    transition: background-color 0.5s;
    padding: 15px;
    text-align: left;
}
th:hover {
    color: var(--brown-color);
}
.sort-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
[aria-sort="ascending"] .sort-button::after {
    content: " \2191";
}
[aria-sort="descending"] .sort-button::after {
    content: " \2193";
}
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 button {
    background: transparent;
    color: var(--brown-color);
    cursor: pointer;
}
.action i {
    font-size: 1rem;
    transition: all 0.5s ease-out;
}
.action button:hover i,
.action button:focus-visible i {
    transform: scale(1.2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--orange-color);
    outline-offset: 3px;
}

.sidebar button:focus-visible,
.header-wrapper button:focus-visible,
.table-wrapper button:focus-visible {
    outline-color: var(--blue-color);
}

.guide-container, .about-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.privacy-container {
    margin-bottom: 1rem;
}
.privacy-container a,
.about-container a {
    text-decoration: none;
    color: var(--blue-color);
}
.privacy-container a:hover,
.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;
    }

    .cookie-banner {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .site-footer {
        align-items: flex-start;
    }
}


/* 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;
    }
} */
