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

:root {
    --color-primary: #7380ec;
    --color-danger: #ff7782;
    --color-success: #41f1b6;
    --color-warning: #ffbb55;
    --color-white: #fff;
    --color-info-light: #dce1eb;
    --color-info-dark: #7d8da1;
    --color-dark: #363949;
    --color-light: rgba(132, 139, 200, 0.18);
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;

    --card-border-radius: 1.2rem;
    --border-radius-1: 0.5rem;
    --border-radius-2: 0.8rem;

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

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

.dark-theme-variables {
    --color-background: #181a1e;
    --color-white: #202528;
    --color-dark: #edeffd;
    --color-dark-variant: #a3bdcc;
    --color-light: rgba(0,0,0,0.4);
    --box-shadow: 0 2rem 3rem var(--color-light);
}

/* BASIC RESET */
* {
    padding: 0;
    margin: 0;
    outline: 0;
    appearance: none;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--color-background);
    overflow-x: hidden;
    color: var(--color-dark);
}

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

/* SIDEBAR */
aside {
    height: 100vh;
}

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

aside .logo {
    display: flex;
    gap: 0.8rem;
}

aside .logo img {
    width: 2.5rem;
    height: 2.5rem;
}

aside .close {
    display: none;
}

aside .sidebar {
    display: flex;
    flex-direction: column;
    height: 86vh;
    position: relative;
    top: 3rem;
}

aside .sidebar a {
    display: flex;
    align-items: center;
    color: var(--color-info-dark);
    height: 3.5rem;
    gap: 1rem;
    padding-left: 2rem;
    transition: all 0.2s ease;
}

aside .sidebar a:hover {
    background: var(--color-light);
    color: var(--color-primary);
    border-left: 5px solid var(--color-primary);
}

aside .sidebar a.active {
    background: var(--color-light);
    color: var(--color-primary);
    border-left: 5px solid var(--color-primary);
}

.sidebar a .material-icons-sharp {
    font-size: 1.6rem;
}

.message-count {
    background: var(--color-danger);
    color: #fff;
    padding: 2px 7px;
    border-radius: var(--border-radius-2);
    font-size: 12px;
}

/* MAIN CONTENT */
main {
    margin-top: 1.4rem;
}

main h1 {
    font-size: 2rem;
}

main .date input {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-2);
    background: var(--color-white);
    margin-top: 1rem;
}

.insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 1.5rem;
}

.insights > div {
    background: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    transition: 0.3s ease;
}

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

.insights span {
    font-size: 2rem;
}

.insights .middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insights svg {
    height: 7rem;
    width: 7rem;
}

.insights circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 10;
    stroke-linecap: round;
    transform: translate(5px, 5px);
}

.insights .number p {
    font-size: 1.4rem;
    font-weight: 600;
}

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

/* RECENT ORDERS TABLE */
.recent-orders {
    margin-top: 2rem;
}

.recent-orders table {
    background: var(--color-white);
    width: 100%;
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.recent-orders table:hover {
    box-shadow: none;
}

.recent-orders table tbody td {
    height: 2.8rem;
    border-bottom: 1px solid var(--color-light);
}

.recent-orders table tbody tr:last-child td {
    border-bottom: none;
}

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

/* RIGHT SIDE */
.right {
    margin-top: 1.4rem;
}

/* TOP BAR */
.right .top {
    display: flex;
    justify-content: end;
    gap: 2rem;
}

#menu-btn {
    display: none;
}

.theme-toggler {
    background: var(--color-light);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    border-radius: var(--border-radius-2);
    height: 2rem;
    width: 5rem;
}

.theme-toggler span {
    font-size: 1.5rem;
    width: 50%;
    text-align: center;
}

.theme-toggler span.active {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius-2);
}

/* PROFILE */
.profile {
    display: flex;
    gap: 1rem;
    text-align: right;
}

.profile-photo img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

/* RECENT UPDATES */
.recent-updates {
    margin-top: 2rem;
}

.update {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.update .profile-photo img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

/* SALES ANALYTICS */
.sales-analytics {
    margin-top: 2rem;
    font-size : 0.9rem;
}

.sales-analytics .item {
    display: flex;
    background: var(--color-white);
    padding: 0.5rem;
    border-radius: var(--border-radius-2);
    margin-bottom: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: 0.2s;
    
}

.sales-analytics .item:hover {
    box-shadow: none;
}

.sales-analytics .icon {
    padding: 0.5rem;
    border-radius: var(--border-radius-1);
    background: 5var(--color-light);
    font-size: 10px;     /* icon size */
    
    
}

.add-product {
    text-align: center;
    padding: 2rem;
    cursor: pointer;
}
