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

:root{
    --color-primary: #6C9BCF;
    --color-danger: #FF0060;
    --color-success: #1B9C85;
    --color-warning: #F7D060;
    --color-pink: #F8C8DC;
    --color-white: #202528;
    --color-white-variant:#2d3438;
    --color-info-dark: #7d8da1;
    --color-dark: #edeffd;
    --color-light: rgba(0, 0, 0, 0.4);
    --color-dark-variant: #a3bdcc;
    --color-background: #181a1e;
    --color-accent: #19ff70;
    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 1.2rem;

    --card-padding: 1.8rem;
    --padding-1: 1.2rem;

    --box-shadow: 0 2rem 3rem var(--color-light);
}


.light-mode-variables{
    --color-background: #f6f6f9;
    --color-white: #fff;
    --color-white-variant:#e0dede;
    --color-dark: #363949;
    --color-dark-variant: #677483;
    --color-light: rgba(132, 139, 200, 0.18);
    --box-shadow: 0 2rem 3rem var(--color-light);
}

*{
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: 0;
    border: 0;
    text-decoration: none;
    box-sizing: border-box;
}

html{
    font-size: 14px;
}
.settings-sec button{
    font-family: 'Poppins', sans-serif;
}
body{
    width: 100vw;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    user-select: none;
    overflow-x: hidden;
    color: var(--color-dark);
    background-color: var(--color-background);
}

a{
    color: var(--color-dark);
}

img{
    display: block;
    width: 100%;
    object-fit: cover;
}

h1{
    font-weight: 800;
    font-size: 1.8rem;
}

h2{
    font-weight: 600;
    font-size: 1.4rem;
}

h3{
    font-weight: 500;
    font-size: 0.87rem;
}

small{
    font-size: 0.76rem;
}

p{
    color: var(--color-dark-variant);
}

b{
    color: var(--color-dark);
}

.text-muted{
    color: var(--color-info-dark);
}

.primary{
    color: var(--color-primary);
}

.danger{
    color: var(--color-danger);
}

.success{
    color: var(--color-success);
}

.warning{
    color: var(--color-warning);
}

.container{
    display: grid;
    width: 96%;
    margin: 0 auto;
    gap: 1.8rem;
    grid-template-columns: 12rem auto 23rem;
}

aside{
    height: 100vh;
}

aside .toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
}

aside .toggle .logo{
    display: flex;
    gap: 0.5rem;
}

aside .toggle .logo img{
    width: 2rem;
    height: 2rem;
}

aside .toggle .close{
    padding-right: 1rem;
    display: none;
}

aside .sidebar{
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    border-radius: 15px;
    height: 88vh;
    position: relative;
    top: 1.5rem;
    transition: all 0.3s ease;
    
}

aside .sidebar:hover{
    box-shadow: none;
}

aside .sidebar a{
    display: flex;
    align-items: center;
    color: var(--color-info-dark);
    height: 3.7rem;
    gap: 1rem;
    position: relative;
    margin-left: 2rem;
    transition: all 0.3s ease;
}

aside .sidebar a span{
    font-size: 1.6rem;
    transition: all 0.3s ease;
}
/*
aside .sidebar a:last-child{
    position: absolute;
    bottom: 2rem;
    width: 100%;
}*/
aside .sidebar img{
    height: 24px;
    width: 24px;
}
aside .sidebar a.active{
    width: 100%;
    color: var(--color-primary);
    background-color: var(--color-light);
    margin-left: 0;
}

aside .sidebar a.active::before{
    content: '';
    width: 6px;
    height: 18px;
    background-color: var(--color-primary);
}

aside .sidebar a.active span{
    color: var(--color-primary);
    margin-left: calc(1rem - 3px);
}

aside .sidebar a:hover{
    color: var(--color-primary);
}

aside .sidebar a:hover span{
    margin-left: 0.6rem;
}

aside .sidebar .message-count{
    background-color: var(--color-danger);
    padding: 2px 6px;
    color: var(--color-white);
    font-size: 11px;
    border-radius: var(--border-radius-1);
}

main{
    margin-top: 1.4rem;
}

main .profit-rates{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
}
main .analyse{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
main .analyse > div{
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

main .analyse > div:hover{
    box-shadow: none;
}

main .analyse > div .status{
    display: flex;
    align-items: center;
    justify-content: space-between;
}



main .analyse h3{
    margin-left: 0.6rem;
    font-size: 1rem;
}

main .analyse .progresss{
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

main .analyse svg{
    width: 7rem;
    height: 7rem;
}

main .analyse svg circle{
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transform: translate(5px, 5px);
}

main .analyse .sales svg circle{
    stroke: var(--color-success);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .analyse .visits svg circle{
    stroke: var(--color-danger);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .analyse .searches svg circle{
    stroke: var(--color-primary);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .analyse .user-info-1 svg circle{
    stroke: var(--color-success);
    stroke-dashoffset: -30;
}

main .analyse .user-info-2 svg circle{
    stroke: var(--color-danger);
    stroke-dashoffset: -30;
}

main .analyse .progresss .percentage{
    position: absolute;
    top: -3px;
    left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

main .new-users{
    margin-top: 1.3rem;
}

main .new-users .user-list{
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

main .new-users .user-list:hover{
    box-shadow: none;
}

main .new-users .user-list .user{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main .new-users .user-list .user img{
    width: 5rem;
    height: 5rem;
    margin-bottom: 0.4rem;
    border-radius: 50%;
}

main .recent-orders{
    margin-top: 1.3rem;
}

main .recent-orders h2{
    margin-bottom: 0.8rem;
}

main .recent-orders table{
    background-color: var(--color-white);
    width: 100%;
    padding: var(--card-padding);
    text-align: center;
    box-shadow: var(--box-shadow);
    border-radius: var(--card-border-radius);
    transition: all 0.3s ease;
    font-size: 15px;
}

main .analyse .recent-order table {
    background-color: var(--color-white);
    width: 100%;
    min-width: 400px; /* prevents squishing columns too much */
    padding: var(--card-padding);
    text-align: center;
    border-radius: var(--card-border-radius);
    transition: all 0.3s ease;
    font-size: 15px;
    border-collapse: collapse;
}
main .recent-orders table:hover{
    box-shadow: none;
}

main table tbody td{
    height: 2.8rem;
    border-bottom: 1px solid var(--color-light);
    color: var(--color-dark-variant);
}

main table tbody tr:last-child td{
    border: none;
}

main .recent-orders a{
    text-align: center;
    display: block;
    margin: 1rem auto;
    color: var(--color-primary);
}

.right-section{
    margin-top: 1.4rem;
}

.right-section .nav{
    display: flex;
    justify-content: end;
    gap: 2rem;
}

.right-section .nav button{
    display: none;
}

.right-section .dark-mode{
    background-color: var(--color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1.6rem;
    width: 4.2rem;
    cursor: pointer;
    border-radius: var(--border-radius-1);
}

.right-section .dark-mode span{
    font-size: 1.2rem;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-section .dark-mode span.active{
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--border-radius-1);
}

.right-section .nav .profile{
    display: flex;
    gap: 2rem;
    text-align: right;
}

.right-section .nav .profile .profile-photo{
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    overflow: hidden;
}

.right-section .user-profile{
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.right-section .user-profile:hover{
    box-shadow: none;
}

.right-section .user-profile img{
    width: 11rem;
    height: auto;
    margin-bottom: 0.8rem;
    border-radius: 50%;
}

.right-section .user-profile h2{
    margin-bottom: 0.2rem;
}

.right-section .reminders{
    margin-top: 2rem;
}

.right-section .reminders .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.right-section .reminders .header span{
    padding: 10px;
    box-shadow: var(--box-shadow);
    background-color: var(--color-white);
    border-radius: 50%;
}

.right-section .reminders .notification{
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
    padding: 1.4rem var(--card-padding);
    border-radius: var(--border-radius-2);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.right-section .reminders .notification:hover{
    box-shadow: none;
}

.right-section .reminders .notification .content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    width: 100%;
}

.right-section .reminders .notification .icon{
    padding: 0.6rem;
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: 20%;
    display: flex;
}

.right-section .reminders .notification.deactive1 .icon{
    background-color: var(--color-success);
}

.right-section .reminders .notification.deactive2 .icon{
    background-color: var(--color-danger);
}
.right-section .reminders .notification.deactive3 .icon{
    background-color: var(--color-pink);
}

.right-section .reminders .add-reminder{
    background-color: var(--color-white);
    border: 2px dashed var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.right-section .reminders .add-reminder:hover{
    background-color: var(--color-primary);
    color: white;
}

.right-section .reminders .add-reminder div{
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

main .search-tab{
    display: flex;
}

main .search-tab > div{
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

main .search-tab > div:hover{
    box-shadow: none;
}

main .search-tab > div .status{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pers-sec {
    width: 100%;
    position: relative;
    display: block;
    justify-content: space-around;
  }
  

.search-sec {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-around;
  }



.searchForm{
    width: 60%;
}
  .searchTerm{
    width: 60%;
    padding-left: 20px;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-dark-variant);
    color: var(--color-dark);
  }
  .searchButton {
    width: 80px;
    padding-top: 5px;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    text-align: center;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 20px;
    transform: translateX(-15px);
  }
input[type=text]
{
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.searchTerm:focus{
    color: var(--color-dark);
  }

  .flex{
    display: flex;
    justify-content: space-around;
  }

  .block{
    display: block;
  }
/*Check Buttons*/

.lns-checkbox {
    display: inline-flex;
    color: var(--color-dark);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    align-items: center;
    line-height: 1;
    padding: 5px 7px 5px 7px;
    user-select: none;
  
    @media (min-width: 992px) {
      font-size: 1.25rem;
    }
  
    span {
      position: relative;
      display: flex;
      align-items: center;
    }
  
    input[type="checkbox"] {
      position: absolute;
      clip: rect(1px, 1px, 1px, 1px);
      padding: 0;
      border: 0;
      height: 1px;
      width: 1px;
      overflow: hidden;
  
      &:checked + span::after {
        background-color: var(--color-primary);
      }
  
      &:checked + span {
        color: var(--color-primary);
      }
  
      &:focus + span::before {
        border-color: var(--color-primary);
      }
  
      &:disabled {
        opacity: .85;
        & + span {
          color: #9a9a88;
        }
      }
    }
  
    span::before {
      content: "";
      display: inline-block;
      border-radius: 3px;
      background-color: #414051;
      margin-right: 8px;
      height: 16px;
      width: 16px;
      border: 1px solid transparent;
    }
  
    span::after {
      content: "";
      display: inline-block;
      height: 12px;
      width: 12px;
      border-radius: 3px;
      background-color: transparent;
      left: 3px;
      position: absolute;
    }
  }
  
/*User Details*/
main .search-sec h3{
    margin-left: 0.6rem;
    font-size: 1rem;
}

main .search-sec .progresss{
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

main .search-sec svg{
    width: 7rem;
    height: 7rem;
}

main .search-sec svg circle{
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transform: translate(5px, 5px);
}

main .search-sec svg circle{
    stroke: var(--color-success);
    stroke-dashoffset: -30;
}

main .search-sec .progresss .percentage{
    position: absolute;
    top: -3px;
    left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

main .search-sec > div .status{
    display: flex;
    align-items: center;
    justify-content: space-between;
}



main .search-sec h3{
    margin-left: 0.6rem;
    font-size: 1rem;
}

/*Products*/
main .products{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.6rem;
}

main .products > div{
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

main .products > div:hover{
    box-shadow: none;
}

main .products > div .status{
    display: flex;
    align-items: center;
    justify-content: space-between;
}



main .products h3{
    margin-left: 0.6rem;
    font-size: 1rem;
}

main .products .progresss{
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

main .products svg{
    width: 7rem;
    height: 7rem;
}

main .products svg circle{
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transform: translate(5px, 5px);
}

main .products .sales svg circle{
    stroke: var(--color-success);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .products .visits svg circle{
    stroke: var(--color-danger);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .products .searches svg circle{
    stroke: var(--color-primary);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .products .user-info-1 svg circle{
    stroke: var(--color-success);
    stroke-dashoffset: -30;
}

main .products .user-info-2 svg circle{
    stroke: var(--color-danger);
    stroke-dashoffset: -30;
}

main .products .progresss .percentage{
    position: absolute;
    top: -3px;
    left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
/* Settings*/
.search-tab {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

/* Base layout */
.add-item-sec {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* For mobile: reduce width slightly with padding */
@media screen and (max-width: 768px) {
  .add-item-sec {
    padding: 0 10px;
    max-width: 80vw;
  }
}
.add-item-sec form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    box-sizing: border-box;
}

/* Make all form controls full-width */
.add-item-sec input[type="text"],
.add-item-sec input[type="number"],
.add-item-sec textarea,
.add-item-sec select {
    width: 100%;
    max-width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: var(--border-radius-1);
    background-color: var(--color-white-variant);
    color: var(--color-dark);
    box-sizing: border-box;
}

/* Submit & Add Variant buttons */
.add-item-sec button[type="submit"],
.add-item-sec button[type="button"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--color-danger);
    color: white;
    font-family: "Poppins";
    border-radius: var(--card-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-item-sec button[type="submit"]:hover {
    background-color: var(--color-success);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

/* 🔁 Stack dropdowns vertically on screens <= 768px */
@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }
}
.form-row label {
    margin-top: 20px;
    display: block;
    font-weight: 500;
    font-size: 16px;
}


main .proxy-manage{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
main .proxy-manage > div{
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

main .proxy-manage > div:hover{
    box-shadow: none;
}

main .proxy-manage > div .status{
    display: flex;
    align-items: center;
    justify-content: space-between;
}



main .proxy-manage h3{
    margin-left: 0.6rem;
    font-size: 1rem;
}

main .proxy-manage .progresss{
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

main .proxy-manage svg{
    width: 7rem;
    height: 7rem;
}

main .proxy-manage svg circle{
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transform: translate(5px, 5px);
}

main .proxy-manage .sales svg circle{
    stroke: var(--color-success);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .proxy-manage .visits svg circle{
    stroke: var(--color-danger);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .proxy-manage .searches svg circle{
    stroke: var(--color-primary);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

main .proxy-manage .user-info-1 svg circle{
    stroke: var(--color-success);
    stroke-dashoffset: -30;
}

main .proxy-manage .user-info-2 svg circle{
    stroke: var(--color-danger);
    stroke-dashoffset: -30;
}

main .proxy-manage .progresss .percentage{
    position: absolute;
    top: -3px;
    left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/*Responsive*/
@media screen and (max-width: 1200px) {
    .container{
        width: 95%;
        grid-template-columns: 7rem auto 23rem;
    }

    aside .logo h2{
        display: none;
    }

    aside .sidebar h3{
        display: none;
    }

    aside .sidebar a{
        width: 5.6rem;
    }

    aside .sidebar a:last-child{
        position: relative;
        margin-top: 1.8rem;
    }

    main .analyse{
        grid-template-columns: 1fr;
        gap: 0;
    }
    main .profit-rates{
        grid-template-columns: 1fr;
        gap: 0;
    }
    main .new-users .user-list .user{
        flex-basis: 40%;
    }

    main .recent-orders {
        width: 94%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 2rem 0 0 0.8rem;
    }

    main .recent-orders table{
        width: 83vw;
    }
    
    main table thead tr th:last-child,
    main table thead tr th:first-child{
        display: none;
    }

    main table tbody tr td:last-child,
    main table tbody tr td:first-child{
        display: none;
    }

}

@media screen and (max-width: 768px) {
    .container{
        width: 100%;
        grid-template-columns: 1fr;
        padding: 0 var(--padding-1);
    }

    aside{
        position: fixed;
        background-color: var(--color-white);
        width: 15rem;
        z-index: 3;
        box-shadow: 1rem 3rem 4rem var(--color-light);
        height: 100vh;
        left: -100%;
        display: none;
        animation: showMenu 0.4s ease forwards;
    }

    @keyframes showMenu {
       to{
        left: 0;
       } 
    }

    aside .logo{
        margin-left: 1rem;
    }

    aside .logo h2{
        display: inline;
    }

    aside .sidebar h3{
        display: inline;
    }

    aside .sidebar a{
        width: 100%;
        height: 3.4rem;
    }

    /*aside .sidebar a:last-child{
        position: absolute;
        bottom: 5rem;
    }*/
aside .sidebar {
    overflow-y: auto;
}
    aside .toggle .close{
        display: inline-block;
        cursor: pointer;
    }

    main{
        margin-top: 8rem;
        padding: 0 1rem;
    }

    main .new-users .user-list .user{
        flex-basis: 35%;
    }

    main .recent-orders{
        position: relative;
        margin: 3rem 0 0 0;
        width: 100%;
    }

    main .recent-orders table{
        width: 100%;
        margin: 0;
    }

    .right-section{
        width: 94%;
        margin: 0 auto 4rem;
    }

    .right-section .nav{
        position: fixed;
        top: 0;
        left: 0;
        align-items: center;
        background-color: var(--color-white);
        padding: 0 var(--padding-1);
        height: 4.6rem;
        width: 100%;
        z-index: 2;
        box-shadow: 0 1rem 1rem var(--color-light);
        margin: 0;
    }

    .right-section .nav .dark-mode{
        width: 4.4rem;
        position: absolute;
        left: 66%;
    }

    .right-section .profile .info{
        display: none;
    }

    .right-section .nav button{
        display: inline-block;
        background-color: transparent;
        cursor: pointer;
        color: var(--color-dark);
        position: absolute;
        left: 1rem;
    }

    .right-section .nav button span{
        font-size: 2rem;
    }

}
