/* =========================================================
   MSD SOLUTION - SOFTWARE INTERFACE SHOWCASE
   ========================================================= */

.interface-page {
    background: #f5f6fa;
    padding: 70px 0 90px;
    font-family: 'Poppins', sans-serif;
}

/* Heading */

.interface-heading {
    max-width: 1200px;
    margin: 0 auto 35px;
    padding: 0 20px;
}

.interface-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 7px 13px;
    border-radius: 30px;
    background: #e9eefc;
    color: #3f51b5;
}

.interface-heading h1 {
    margin: 14px 0 8px;
    font-size: 34px;
    color: #1f2937;
}

.interface-heading p {
    margin: 0;
    max-width: 700px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   APPLICATION WINDOW
   ========================================================= */

.app-window {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: auto;
    display: flex;
    min-height: 720px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 41, 59, .12);
}


/* Sidebar */

.app-sidebar {
    width: 225px;
    flex-shrink: 0;
    background: #172033;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.app-brand {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.app-logo {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    color: #172033;
}

.app-brand strong {
    display: block;
    font-size: 13px;
}

.app-brand small {
    display: block;
    margin-top: 2px;
    font-size: 8px;
    color: #9ba6ba;
}

.sidebar-section {
    padding: 25px 12px;
}

.sidebar-section > span {
    padding: 0 10px;
    display: block;
    margin-bottom: 12px;
    color: #69758c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.app-menu {
    width: 100%;
    border: 0;
    background: transparent;
    color: #9ba6ba;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 11px;
    margin-bottom: 3px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    text-align: left;
    transition: .2s;
}

.app-menu i {
    width: 18px;
    text-align: center;
}

.app-menu:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
}

.app-menu.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.demo-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.demo-avatar,
.mini-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.demo-avatar {
    width: 32px;
    height: 32px;
    background: #fff;
    color: #172033;
    font-size: 10px;
}

.demo-user strong {
    display: block;
    font-size: 10px;
}

.demo-user small {
    color: #78859a;
    font-size: 8px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.app-content {
    flex: 1;
    min-width: 0;
    background: #f7f8fb;
}

.app-topbar {
    height: 78px;
    padding: 0 25px;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-text {
    color: #9aa1ae;
    font-size: 11px;
}

.breadcrumb-text strong {
    color: #252b36;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.demo-live {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    color: #596273;
}

.demo-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.notification-btn {
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.top-user {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: #525866;
}

.mini-avatar {
    width: 28px;
    height: 28px;
    background: #edf0f6;
    color: #596273;
    font-size: 8px;
}

.mobile-menu-btn {
    display: none;
}


/* =========================================================
   PAGE
   ========================================================= */

.demo-page {
    display: none;
    padding: 25px;
}

.demo-page.active-page {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.page-header h2 {
    margin: 0;
    color: #252b36;
    font-size: 20px;
}

.page-header p {
    margin: 4px 0 0;
    color: #8b93a1;
    font-size: 10px;
}

.date-filter,
.report-actions button {
    border: 1px solid #e5e8ed;
    background: #fff;
    padding: 8px 12px;
    border-radius: 7px;
    color: #687181;
    font-family: inherit;
    font-size: 9px;
}

.report-actions {
    display: flex;
    gap: 8px;
}

.report-actions button {
    cursor: pointer;
}

.report-actions button:hover {
    background: #f4f5f8;
}


/* =========================================================
   KPI
   ========================================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 15px;
}

.kpi-card {
    padding: 17px;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.sales-icon {
    background: #eef4ff;
    color: #4675d9;
}

.transaction-icon {
    background: #f1efff;
    color: #755dd8;
}

.store-icon {
    background: #eaf9f2;
    color: #2b9a68;
}

.stock-icon {
    background: #fff6e8;
    color: #d78a24;
}

.kpi-card span {
    display: block;
    font-size: 9px;
    color: #89919e;
}

.kpi-card strong {
    display: block;
    margin: 3px 0;
    font-size: 16px;
    color: #252b36;
}

.kpi-card small {
    font-size: 8px;
    color: #8a929e;
}

.positive {
    color: #21a366 !important;
}

.warning {
    color: #dc921f !important;
}


/* =========================================================
   PANELS
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.demo-panel {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 11px;
    margin-bottom: 15px;
    overflow: hidden;
}

.panel-header {
    padding: 17px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    margin: 0;
    color: #252b36;
    font-size: 12px;
}

.panel-header span {
    display: block;
    margin-top: 3px;
    color: #9299a5;
    font-size: 8px;
}

.panel-header select {
    border: 1px solid #e7eaf0;
    padding: 6px 9px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 8px;
    color: #687181;
}


/* =========================================================
   CHART
   ========================================================= */

.fake-chart {
    height: 245px;
    padding: 5px 20px 20px 10px;
    display: flex;
}

.chart-y {
    width: 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    color: #a0a7b2;
    font-size: 7px;
}

.chart-area {
    position: relative;
    flex: 1;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #eef1f5;
}

.grid-line:nth-child(1) {
    top: 5%;
}

.grid-line:nth-child(2) {
    top: 33%;
}

.grid-line:nth-child(3) {
    top: 61%;
}

.grid-line:nth-child(4) {
    top: 89%;
}

.chart-bars {
    position: absolute;
    left: 0;
    right: 0;
    top: 5%;
    bottom: 11%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 6px;
}

.bar {
    width: 5%;
    min-width: 8px;
    max-width: 20px;
    background: #536edb;
    border-radius: 3px 3px 0 0;
    opacity: .85;
}

.chart-labels {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    color: #9da4ae;
    font-size: 7px;
}


/* =========================================================
   STORE LIST
   ========================================================= */

.store-list {
    padding: 0 18px 12px;
}

.store-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.store-row:last-child {
    border-bottom: 0;
}

.rank {
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f4f8;
    border-radius: 6px;
    color: #737b89;
    font-size: 8px;
    font-weight: 700;
}

.store-info {
    flex: 1;
}

.store-info strong {
    display: block;
    color: #4c5461;
    font-size: 9px;
}

.store-info small {
    color: #a0a6af;
    font-size: 7px;
}

.store-row > strong {
    font-size: 9px;
    color: #343b47;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.demo-table th {
    background: #fafbfc;
    color: #858d9a;
    text-align: left;
    font-size: 8px;
    font-weight: 600;
    padding: 11px 18px;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.demo-table td {
    color: #646c79;
    font-size: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f2f5;
}

.demo-table td strong {
    color: #424956;
}

.status {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 7px;
    font-weight: 600;
}

.status.success {
    background: #eaf8f1;
    color: #299466;
}

.status.pending {
    background: #fff6e6;
    color: #d18b28;
}

.status.danger {
    background: #fff0f0;
    color: #d45555;
}

.view-all {
    border: 0;
    background: transparent;
    color: #536edb;
    font-family: inherit;
    font-size: 8px;
    cursor: pointer;
}


/* =========================================================
   REPORT SUMMARY
   ========================================================= */

.report-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.report-summary > div {
    background: #fff;
    border: 1px solid #edf0f4;
    padding: 16px;
    border-radius: 9px;
}

.report-summary span {
    display: block;
    color: #9299a5;
    font-size: 8px;
}

.report-summary strong {
    display: block;
    margin-top: 5px;
    color: #303743;
    font-size: 13px;
}

.summary-warning strong {
    color: #d58a25;
}


/* =========================================================
   COMING SOON
   ========================================================= */

.coming-soon {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coming-soon > i {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #edf1fc;
    color: #536edb;
    font-size: 25px;
    margin-bottom: 18px;
}

.coming-soon h2 {
    margin: 0;
    color: #343b47;
    font-size: 18px;
}

.coming-soon p {
    color: #9299a5;
    font-size: 10px;
}

.coming-soon span {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 15px;
    background: #f0f2f6;
    color: #808895;
    font-size: 8px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .app-sidebar {
        width: 190px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .report-summary {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .interface-page {
        padding-top: 35px;
    }

    .interface-heading h1 {
        font-size: 26px;
    }

    .app-window {
        width: calc(100% - 20px);
    }

    .app-sidebar {
        width: 58px;
    }

    .app-brand {
        justify-content: center;
        padding: 0;
    }

    .app-brand > div:last-child,
    .sidebar-section > span,
    .app-menu span,
    .demo-user > div:last-child {
        display: none;
    }

    .app-menu {
        justify-content: center;
    }

    .sidebar-bottom {
        padding: 10px;
    }

    .demo-user {
        justify-content: center;
    }

    .demo-page {
        padding: 15px;
    }

    .top-user span,
    .demo-live {
        display: none;
    }

    .kpi-grid,
    .report-summary {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: flex-start;
        gap: 10px;
    }

    .date-filter {
        display: none;
    }

}