:root {
    --navy: #10243A;
    --navy-light: #193650;
    --teal: #13B8A6;
    --teal-dark: #0D9F91;
    --background: #F4F7FA;
    --white: #FFFFFF;
    --text: #243447;
    --muted: #8492A3;
    --border: #E8EDF2;
    --green: #16A36A;
    --orange: #F59E0B;
    --red: #E05252;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--background);
    color: var(--text);
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
select {
    font-family: inherit;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 265px;
    min-width: 265px;
    background: var(--navy);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 20px;
    min-height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px;
    margin-bottom: 35px;
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--teal);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.brand-dot {
    color: var(--teal);
}

.shop-profile {
    display: flex;
    align-items: center;
    padding: 13px 11px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    margin-bottom: 32px;
}

.shop-avatar {
    width: 42px;
    height: 42px;
    background: #D5F4EF;
    color: #087E72;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 11px;
    flex: 1;
}

.shop-info strong {
    font-size: 14px;
}

.shop-info span {
    font-size: 11px;
    color: #B3C3D0;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35D69D;
    margin-right: 4px;
}

.shop-arrow {
    color: #9EAFBD;
    font-size: 11px;
}

.nav-label {
    font-size: 10px;
    font-weight: 800;
    color: #8093A5;
    letter-spacing: 1.3px;
    padding: 0 12px;
    margin-bottom: 12px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu-scroll {
    min-height: 0;
}

.nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border-radius: 9px;
    color: #B6C4D0;
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.nav-link > i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.nav-link:hover {
    background: rgba(255,255,255,.07);
    color: white;
}

.nav-link.active {
    background: var(--teal);
    color: var(--navy);
    font-weight: 800;
}

.nav-count {
    margin-left: auto;
    background: rgba(255,255,255,.13);
    color: white;
    border-radius: 20px;
    min-width: 23px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
}

.nav-count.orange {
    background: #F59E0B;
    color: #392607;
}

.settings-label {
    margin-top: 34px;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
    flex-shrink: 0;
}

.logout {
    border-top: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
    padding-top: 18px;
    color: #F3A1A1;
}

/* MAIN CONTENT */

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 88px;
    padding: 0 38px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 15px;
}

.breadcrumb {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
}

.breadcrumb strong {
    color: var(--text);
}

.topbar h1 {
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--navy);
}

.topbar-right {
    gap: 22px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: white;
    color: #647587;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    background: #F05B5B;
    border: 1px solid white;
    border-radius: 50%;
}

.top-divider {
    height: 34px;
    width: 1px;
    background: var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #DCE9F4;
    color: #214D70;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-details strong {
    font-size: 12px;
}

.user-details span {
    font-size: 11px;
    color: var(--muted);
}

.user-arrow {
    font-size: 10px;
    color: var(--muted);
    margin-left: 5px;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--navy);
    font-size: 21px;
    cursor: pointer;
}

/* CONTENT */

.content-wrapper {
    padding: 32px 38px;
    max-width: 1700px;
    margin: auto;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 27px;
}

.welcome-section h2 {
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 7px;
}

.welcome-section h2 span {
    font-size: 22px;
}

.welcome-section p {
    color: var(--muted);
    font-size: 13px;
}

.seller-announcements-section {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(20, 42, 64, .04);
}

.seller-announcements-heading {
    margin-bottom: 15px;
}

.seller-announcements-heading .section-eyebrow {
    color: var(--teal-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.seller-announcements-heading h2 {
    margin: 5px 0;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.seller-announcements-heading p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.seller-announcement-list {
    display: grid;
    gap: 12px;
}

.seller-announcement-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #FCFDFE;
}

.seller-announcement-card h3 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.seller-announcement-date {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.seller-announcement-message {
    margin: 10px 0 13px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.seller-feedback-form {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.seller-feedback-form textarea {
    width: 100%;
    min-height: 82px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

.seller-feedback-form textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(19, 184, 166, .13);
}

.seller-feedback-form button {
    justify-self: start;
    min-height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    background: var(--navy);
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.seller-feedback-form button:hover:not(:disabled) {
    background: var(--navy-light);
}

.seller-feedback-status {
    min-height: 15px;
    color: var(--muted);
    font-size: 10px;
}

.seller-feedback-status.success {
    color: var(--green);
}

.seller-feedback-status.error {
    color: var(--red);
}

.seller-announcement-status {
    padding: 15px;
    border-radius: 9px;
    background: #F7F9FB;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.seller-announcement-status.error {
    background: #FFF4F1;
    color: var(--red);
}

.primary-button {
    min-height: 45px;
    padding: 0 19px;
    background: var(--teal);
    color: var(--navy);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 800;
    transition: .2s;
}

.primary-button:hover {
    background: #0FA594;
    transform: translateY(-2px);
}

/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 22px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 19px;
    min-width: 0;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 17px;
}

.stat-icon.revenue {
    color: #0D9B88;
    background: #DDF7F1;
}

.stat-icon.orders {
    color: #3678C9;
    background: #E6F0FF;
}

.stat-icon.products {
    color: #B97C16;
    background: #FFF3D9;
}

.stat-icon.customers {
    color: #8B68C6;
    background: #F0E9FF;
}

.stat-icon.visits {
    color: #C35B8B;
    background: #FCEAF2;
}

.stat-icon.followers {
    color: #16835D;
    background: #E1F7EE;
}

.stat-period {
    color: var(--muted);
    font-size: 10px;
    background: #F5F7F9;
    border-radius: 20px;
    padding: 6px 9px;
}

.stat-label {
    color: #738293;
    font-size: 12px;
    margin-bottom: 7px;
}

.stat-card h3 {
    font-family: "Manrope", sans-serif;
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.stat-card h3 span {
    font-size: 13px;
    font-weight: 600;
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    font-size: 10px;
    flex-wrap: wrap;
}

.stat-footer.positive {
    color: var(--green);
}

.stat-footer.neutral {
    color: #B77B1D;
}

.stat-footer span {
    color: var(--muted);
}

/* PANELS */

.middle-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 22px;
    min-width: 0;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.panel-heading h3 {
    font-family: "Manrope", sans-serif;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 5px;
}

.panel-heading p {
    color: var(--muted);
    font-size: 11px;
}

.period-select {
    padding: 9px 11px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #657587;
    font-size: 10px;
    outline: none;
}

.dashboard-data-status {
    margin: -12px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-data-status:empty {
    display: none;
}

.dashboard-data-status.error {
    color: var(--red);
}

.chart-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 23px;
}

.chart-summary strong {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 23px;
}

.chart-growth {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    background: #E5F7EE;
    padding: 5px 8px;
    border-radius: 20px;
}

.chart {
    display: flex;
    height: 215px;
    margin-top: 20px;
}

.chart-y-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 12px 25px 0;
    color: #A0ACB8;
    font-size: 9px;
}

.chart-content {
    flex: 1;
    position: relative;
    min-width: 0;
}

.chart-grid-lines {
    position: absolute;
    inset: 0 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-grid-lines span {
    border-top: 1px dashed #E8EDF2;
}

.sales-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 215px;
    margin-top: 20px;
    padding: 16px 8px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}

.sales-chart-item {
    display: flex;
    flex: 1 0 38px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 38px;
    height: 100%;
}

.sales-chart-value,
.sales-chart-label {
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.sales-chart-bar {
    width: 24px;
    min-height: 2px;
    margin-top: auto;
    border-radius: 5px 5px 0 0;
    background: var(--teal);
}

.sales-chart-empty {
    margin: auto;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    align-self: center;
}

.chart-x-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: #A0ACB8;
    font-size: 9px;
}

/* QUICK ACTIONS */

.quick-actions {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #F0F3F6;
}

.quick-action:last-child {
    border-bottom: none;
}

.quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.quick-icon.teal {
    background: #DDF7F1;
    color: #0D9B88;
}

.quick-icon.blue {
    background: #E6F0FF;
    color: #3678C9;
}

.quick-icon.orange {
    background: #FFF3D9;
    color: #B97C16;
}

.quick-icon.purple {
    background: #F0E9FF;
    color: #8B68C6;
}

.quick-action > div:nth-child(2) {
    flex: 1;
}

.quick-action strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    margin-bottom: 4px;
}

.quick-action span {
    color: var(--muted);
    font-size: 10px;
}

.quick-action .arrow {
    color: #A9B4BF;
    font-size: 10px;
}

/* BOTTOM SECTION */

.bottom-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 20px;
}

.view-all {
    color: #0C9E91;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.view-all i {
    margin-left: 4px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 590px;
}

thead {
    background: #F7F9FB;
}

th {
    color: #8795A4;
    font-size: 9px;
    font-weight: 700;
    text-align: left;
    padding: 12px 10px;
    white-space: nowrap;
}

td {
    padding: 14px 10px;
    border-bottom: 1px solid #F0F3F6;
    font-size: 10px;
    color: #6D7B8A;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

.order-id {
    color: var(--navy);
    font-weight: 800;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

.customer-avatar {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
}

.avatar-one {
    background: #FCE4DC;
    color: #B65D3D;
}

.avatar-two {
    background: #DDEBFC;
    color: #3B70B3;
}

.avatar-three {
    background: #E9E1FA;
    color: #7957B2;
}

.avatar-four {
    background: #F9EFCF;
    color: #A27B1B;
}

.avatar-five {
    background: #DDF3E5;
    color: #338252;
}

.amount {
    color: var(--navy);
    font-weight: 800;
}

.status {
    display: inline-block;
    border-radius: 20px;
    padding: 6px 9px;
    font-size: 9px;
    font-weight: 700;
}

.status.pending {
    background: #FFF3D9;
    color: #B77B1D;
}

.status.completed {
    background: #DDF5E8;
    color: #20804C;
}

.status.shipping {
    background: #E4EEFF;
    color: #3D72B9;
}

.status.cancelled {
    background: #FCE5E5;
    color: #C34B4B;
}

/* POPULAR PRODUCTS */

.product-list {
    margin-top: 18px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid #F0F3F6;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 43px;
    height: 43px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.product-image-one {
    background: #E7EEF8;
    color: #456B9A;
}

.product-image-two {
    background: #FCEBD9;
    color: #BD7830;
}

.product-image-three {
    background: #F0E8FA;
    color: #8762B7;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-details strong {
    display: block;
    font-size: 11px;
    color: var(--text);
    margin-bottom: 4px;
}

.product-details > span {
    display: block;
    font-size: 9px;
    color: var(--muted);
}

.product-progress {
    height: 4px;
    background: #EDF1F4;
    border-radius: 10px;
    margin-top: 9px;
    overflow: hidden;
}

.product-progress span {
    display: block;
    height: 100%;
    background: var(--teal);
    border-radius: 10px;
}

.product-sales {
    text-align: right;
    min-width: 35px;
}

.product-sales strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
}

.product-sales span {
    color: var(--muted);
    font-size: 9px;
}

/* FOOTER */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 0 5px;
    color: #9AA6B2;
    font-size: 10px;
}

/* OVERLAY */

.overlay {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 1250px) {
    .sidebar {
        width: 235px;
        min-width: 235px;
    }

    .content-wrapper {
        padding: 28px 25px;
    }

    .topbar {
        padding: 0 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .middle-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        top: 0;
        bottom: auto;
        left: -270px;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        transition: left .3s ease;
        width: 255px;
        min-width: 255px;
        padding: 27px 17px 20px;
    }

    .sidebar-menu-scroll {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .brand {
        padding: 0 10px;
        margin-bottom: 35px;
    }

    .shop-profile {
        padding: 13px 10px;
        margin-bottom: 31px;
    }

    .navigation {
        gap: 5px;
    }

    .navigation .nav-link {
        min-height: 44px;
        padding: 0 12px;
        gap: 12px;
        font-size: 12px;
    }

    .navigation .nav-link > i {
        width: 18px;
        font-size: 14px;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-bottom {
        padding-top: 25px;
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .sidebar-bottom .logout {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-top: 0;
        color: #F3A1A1;
        font-size: 12px;
    }

    .overlay.visible {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(9, 25, 41, .5);
    }

    .menu-toggle {
        display: block;
    }

    .topbar {
        height: 76px;
        padding: 0 20px;
    }

    .content-wrapper {
        padding: 25px 20px;
    }
}

@media (max-width: 560px) {
    .topbar {
        padding: 0 14px;
    }

    .topbar h1 {
        font-size: 17px;
    }

    .breadcrumb {
        font-size: 9px;
    }

    .topbar-right {
        gap: 10px;
    }

    .top-divider,
    .user-details,
    .user-arrow {
        display: none;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

    .content-wrapper {
        padding: 22px 14px;
    }

    .welcome-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .welcome-section h2 {
        font-size: 22px;
    }

    .welcome-section p {
        font-size: 12px;
        line-height: 1.6;
    }

    .primary-button {
        width: 100%;
        min-height: 47px;
    }

    .stats-grid {
        gap: 11px;
    }

    .stat-card {
        padding: 14px 12px;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .stat-period {
        font-size: 8px;
        padding: 5px 6px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-card h3 {
        font-size: 19px;
    }

    .stat-footer {
        font-size: 8px;
        gap: 3px;
    }

    .panel {
        padding: 16px 13px;
    }

    .seller-announcements-section {
        padding: 16px;
    }

    .panel-heading h3 {
        font-size: 13px;
    }

    .panel-heading p {
        font-size: 9px;
        line-height: 1.5;
    }

    .period-select {
        max-width: 145px;
        font-size: 9px;
    }

    .chart-summary strong {
        font-size: 20px;
    }

    .chart {
        height: 190px;
    }

    .quick-action {
        gap: 9px;
    }

    .quick-action strong {
        font-size: 10px;
    }

    .quick-action span {
        font-size: 9px;
    }

    .dashboard-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 23px;
    }
}