@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-white: #fff;
    --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: 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);
}

.dark-mode-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);
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: 0;
    border: 0;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

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: #000;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
    color: #000;
}

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;
}

/* Sidebar drawer when activated via hash or JS */
body.show-sidebar aside {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200000;
    box-shadow: 1rem 3rem 4rem var(--color-light);
    transform: translateX(-110%);
    transition: transform 0.35s ease;
    width: 12rem;
    /* fixed width when sliding in */
}

body.show-sidebar aside.open {
    transform: translateX(0);
}

/* Full-page sidebar content (iframe) */
.sidebar-content {
    display: none;
}

aside.full {
    width: 100vw;
    left: 0;
}

aside.full .sidebar {
    display: none;
}

aside.full .sidebar-content {
    display: block;
    width: 100vw;
    height: 100vh;
}

.sidebar-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ensure iframe sits below the aside toggle/close control */
.sidebar-content iframe {
    position: relative;
    z-index: 1;
}

/* prevent background scroll and layout shifts while sidebar open */
body.show-sidebar {
    overflow: hidden;
}

/* When sidebar is shown full-screen, hide the rest of the page content to avoid stacking issues */
body.show-full-sidebar .container>*:not(aside) {
    visibility: hidden;
    pointer-events: none;
}

/* make inner sidebar use the same width when open */
body.show-sidebar aside.open .sidebar {
    width: 12rem;
}

/* show the close button when sidebar drawer is active */
body.show-sidebar aside .toggle .close {
    display: inline-block;
    cursor: pointer;
}

/* overlay when sidebar open */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 199999;
}

body.show-sidebar #overlay {
    opacity: 1;
    visibility: visible;
}

aside .toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
}

/* ensure the toggle (close button) stays above the iframe when full */
body.show-sidebar aside .toggle {
    position: relative;
    z-index: 200001;
}

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;
    width: 8vh;
    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 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);
}

.settings-panel {
    position: fixed;
    inset: 0;
    z-index: 210000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 1.5rem;
}

.settings-panel.active {
    display: flex;
}

.settings-panel__card {
    width: min(36rem, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.6rem;
    padding: 2rem;
    box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.12);
    color: var(--color-dark);
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
}


.settings-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.settings-panel__header h3 {
    font-size: 1.35rem;
}

.settings-panel__header button {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-dark);
}

.settings-panel__section {
    margin-top: 1.4rem;
}

.settings-panel__section h4 {
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.theme-option {
    background-color: var(--color-white);
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--color-dark);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-option:hover,
.theme-option.active {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    background-color: var(--color-light);
}

.reset-button {
    margin-top: 1rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--color-danger);
    color: var(--color-white);
    cursor: pointer;
    font-weight: 600;
}

.reset-button:hover {
    background-color: #ff567b;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.switch-label input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--color-primary);
}

.settings-panel__admin-events {
    margin-top: 1.4rem;
    padding: 1.3rem;
    background: rgba(245, 247, 252, 0.95);
    border-radius: 1.2rem;
    border: 1px solid rgba(108, 108, 108, 0.08);
}

.settings-panel__event-form {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.settings-panel__event-form input,
.settings-panel__event-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--color-dark);
    resize: vertical;
}

.settings-panel__event-list {
    display: grid;
    gap: 0.85rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--color-white);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.event-item h5 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.event-item p {
    margin-top: 0.3rem;
    color: var(--color-info-dark);
}

.event-header {
    display: grid;
    gap: 0.2rem;
}

.small-button {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--color-dark);
    padding: 0.65rem 0.85rem;
    border-radius: 0.9rem;
    cursor: pointer;
    min-width: 5rem;
}

.small-button:hover {
    background: rgba(108, 92, 231, 0.08);
}

.events-page {
    padding: 2rem 1.4rem;
    max-width: 52rem;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
}


.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.events-header p {
    margin-top: 0.35rem;
    color: var(--color-info-dark);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--color-white);
    color: var(--color-dark);
}

.back-link:hover {
    transform: translateY(-1px);
}

.events-list {
    display: grid;
    gap: 1rem;
}

@media (max-width: 720px) {
    .events-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.theme-starry-night {
    --color-background: #0b1b3f;
    --color-white: #eef5ff;
    --color-dark: #f5f9ff;
    --color-dark-variant: #b6c8f2;
    --color-primary: #98ddff;
    --color-info-dark: #9ba9dc;
    --color-light: rgba(168, 204, 255, 0.18);
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 18%),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.2), transparent 15%),
        linear-gradient(180deg, #08112f 0%, #111e4c 50%, #152656 100%);
    background-attachment: fixed;
}

.theme-sunset {
    --color-background: #fdebd3;
    --color-white: #fffaf6;
    --color-dark: #3b1f12;
    --color-dark-variant: #744b2e;
    --color-primary: #ff8b5c;
    --color-info-dark: #a36c4e;
    --color-light: rgba(255, 197, 150, 0.2);
    background-image: linear-gradient(180deg, #fff3ec 0%, #fdd6b0 35%, #f5a97d 100%);
}

.theme-neon {
    --color-background: #050814;
    --color-white: #f0f8ff;
    --color-dark: #b8e7ff;
    --color-dark-variant: #7cd1ff;
    --color-primary: #6c5ce7;
    --color-info-dark: #98a0d0;
    --color-light: rgba(108, 92, 231, 0.18);
    background-image: radial-gradient(circle at top left, rgba(108, 92, 231, 0.35), transparent 18%),
        radial-gradient(circle at 80% 15%, rgba(255, 52, 183, 0.22), transparent 15%),
        linear-gradient(180deg, #070c1d 0%, #141a3c 35%, #0e1230 100%);
}

.theme-ocean-glow {
    --color-background: #012d4b;
    --color-white: #eef9ff;
    --color-dark: #e2f5ff;
    --color-dark-variant: #a4d8ff;
    --color-primary: #5cd1ff;
    --color-info-dark: #7aaed5;
    --color-light: rgba(94, 206, 255, 0.18);
    background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.18), transparent 20%),
        linear-gradient(180deg, #01345f 0%, #024a7a 40%, #01638f 100%);
}

.theme-forest-mist {
    --color-background: #142b1c;
    --color-white: #eef6ec;
    --color-dark: #d8e7d3;
    --color-dark-variant: #9bb99b;
    --color-primary: #7ec1a5;
    --color-info-dark: #8eaf99;
    --color-light: rgba(134, 182, 143, 0.2);
    background-image: linear-gradient(180deg, #172f23 0%, #1c4b33 40%, #2d6a4c 100%);
}

.theme-cyberpunk {
    --color-background: #090912;
    --color-white: #f8f7ff;
    --color-dark: #d8f7ff;
    --color-dark-variant: #a9c7ff;
    --color-primary: #ff3eb8;
    --color-info-dark: #7b7cff;
    --color-light: rgba(255, 62, 184, 0.18);
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 62, 184, 0.2), transparent 20%),
        radial-gradient(circle at 75% 15%, rgba(52, 255, 255, 0.18), transparent 15%),
        linear-gradient(180deg, #07090f 0%, #11122c 40%, #120935 100%);
}

.theme-crystal-cove {
    --color-background: #061a2f;
    --color-white: #e9f5ff;
    --color-dark: #c8e4ff;
    --color-dark-variant: #9ccae3;
    --color-primary: #66c3ff;
    --color-info-dark: #7daed0;
    --color-light: rgba(102, 195, 255, 0.16);
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 18%),
        linear-gradient(180deg, #04162a 0%, #0d2d4d 50%, #133b63 100%);
}

.theme-solar-flare {
    --color-background: #2b0600;
    --color-white: #fff6ea;
    --color-dark: #ffd8ab;
    --color-dark-variant: #ffba68;
    --color-primary: #ff8c42;
    --color-info-dark: #d98f73;
    --color-light: rgba(255, 140, 66, 0.16);
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 183, 102, 0.22), transparent 18%),
        linear-gradient(180deg, #2b0600 0%, #531600 40%, #8f3d0b 100%);
}

.theme-lunar-lush {
    --color-background: #0b1621;
    --color-white: #eef7ff;
    --color-dark: #d7e9ff;
    --color-dark-variant: #92b3d4;
    --color-primary: #87d1ff;
    --color-info-dark: #7ba5bd;
    --color-light: rgba(135, 209, 255, 0.16);
    background-image: radial-gradient(circle at 50% 30%, rgba(135, 209, 255, 0.18), transparent 22%),
        linear-gradient(180deg, #081426 0%, #0d2c46 45%, #12365a 100%);
}

.theme-rainforest {
    --color-background: #102a18;
    --color-white: #ecf7ea;
    --color-dark: #cde9cc;
    --color-dark-variant: #86b28e;
    --color-primary: #57b76d;
    --color-info-dark: #7fa887;
    --color-light: rgba(87, 183, 109, 0.18);
    background-image: linear-gradient(180deg, #0f2917 0%, #173c26 45%, #225837 100%);
}

.theme-vintage-paper {
    --color-background: #f4ecd8;
    --color-white: #fff8ed;
    --color-dark: #5c4329;
    --color-dark-variant: #8a6b4f;
    --color-primary: #d18f46;
    --color-info-dark: #947753;
    --color-light: rgba(209, 143, 70, 0.16);
    background-image: linear-gradient(180deg, #f4ecd8 0%, #eed5ac 50%, #cfad79 100%);
}

.theme-galaxy-mist {
    --color-background: #08101e;
    --color-white: #ebf0ff;
    --color-dark: #cfd9ff;
    --color-dark-variant: #8fa5d0;
    --color-primary: #96b9ff;
    --color-info-dark: #8ba2db;
    --color-light: rgba(150, 185, 255, 0.14);
    background-image: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 20%),
        radial-gradient(circle at 80% 15%, rgba(255, 180, 255, 0.14), transparent 18%),
        linear-gradient(180deg, #05101a 0%, #0d2141 45%, #122955 100%);
}

.theme-neon-edge .analyse>div,
.theme-neon-edge .new-users,
.theme-neon-edge .recent-orders,
.theme-neon-edge .right-section .nav,
.theme-neon-edge .user-profile,
.theme-neon-edge .sidebar {
    box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.35), 0 0 22px rgba(108, 92, 231, 0.18);
    border: 1px solid rgba(108, 92, 231, 0.22);
}

.theme-shadow-depth .analyse>div,
.theme-shadow-depth .new-users,
.theme-shadow-depth .recent-orders,
.theme-shadow-depth .right-section .nav,
.theme-shadow-depth .user-profile,
.theme-shadow-depth aside .sidebar {
    box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.30);
}

.theme-header-blur .right-section .nav,
.theme-header-blur .settings-panel__card,
.theme-header-blur .sidebar,
.theme-header-blur .user-profile {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
}

.theme-button-fade .theme-option,
.theme-button-fade button,
.theme-button-fade a {
    transition: opacity 0.35s ease, transform 0.25s ease;
}

.theme-button-fade .theme-option:hover,
.theme-button-fade button:hover,
.theme-button-fade a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.theme-grain-texture::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.28;
    z-index: 200000;
}

.theme-midnight-aurora {
    --color-background: #06101c;
    --color-white: #e8f6ff;
    --color-dark: #d6e8ff;
    --color-dark-variant: #aac5e0;
    --color-primary: #8fe2ff;
    --color-info-dark: #84afc8;
    --color-light: rgba(143, 226, 255, 0.18);
    background-image: radial-gradient(circle at 25% 15%, rgba(143, 226, 255, 0.24), transparent 18%),
        radial-gradient(circle at 75% 20%, rgba(215, 125, 255, 0.2), transparent 20%),
        linear-gradient(180deg, #06101c 0%, #0c2047 50%, #11276f 100%);
}

.theme-soft-glow {
    filter: saturate(1.08) brightness(1.02);
}

.theme-floaty-particles {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 12%),
        radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 15%),
        linear-gradient(180deg, transparent 0%, transparent 100%);
    background-size: 15rem 15rem, 8rem 8rem, cover;
    background-position: 10% 10%, 70% 20%, center;
}

.theme-high-contrast {
    --color-background: #000000;
    --color-white: #ffffff;
    --color-dark: #ffffff;
    --color-dark-variant: #e4e4e4;
    --color-primary: #00ffd7;
    --color-info-dark: #99ffea;
    --color-light: rgba(0, 255, 215, 0.15);
}

.theme-reduced-motion *,
.theme-reduced-motion *::before,
.theme-reduced-motion *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
}

.theme-cozy-layout main,
.theme-cozy-layout .right-section,
.theme-cozy-layout .sidebar {
    gap: 2.5rem;
}

.theme-cozy-layout main .analyse>div,
.theme-cozy-layout .new-users,
.theme-cozy-layout .recent-orders,
.theme-cozy-layout .right-section .user-profile {
    padding: 2.5rem;
}

.theme-cozy-layout h1,
.theme-cozy-layout h2,
.theme-cozy-layout h3,
.theme-cozy-layout p,
.theme-cozy-layout small {
    line-height: 1.7;
}

.theme-glass-cards .analyse>div,
.theme-glass-cards .new-users,
.theme-glass-cards .recent-orders,
.theme-glass-cards .right-section .nav,
.theme-glass-cards .right-section .user-profile {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.theme-large-text {
    font-size: 1rem;
}

.theme-large-text h1,
.theme-large-text h2,
.theme-large-text h3,
.theme-large-text h4,
.theme-large-text p,
.theme-large-text small {
    transform: scale(1.05);
}

main {
    margin-top: 1.4rem;
}

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 .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;
}

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-success);
    border-radius: 20%;
    display: flex;
}

.right-section .reminders .notification.deactive .icon {
    background-color: var(--color-danger);
}

.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>a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.right-section .reminders .add-reminder>a div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}


@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 .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 .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;
    }

}