* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #F3F6FA;
    color: #263445;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


/* =====================================
   SIDEBAR
===================================== */

.sidebar {
    width: 245px;
    min-width: 245px;
    height: 100vh;
    background: #0B1F33;
    color: white;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
}

.brand {
    text-align: center;
    margin-bottom: 40px;
}

.brand h2 {
    font-size: 25px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.brand p {
    color: #AAB8C8;
    font-size: 12px;
    margin-top: 7px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 13px 15px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: #D5DFEA;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #193650;
    color: white;
}

.nav-btn.active {
    background: #24577F;
    color: white;
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 19px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 15px 5px 0;
    border-top: 1px solid #294056;
    text-align: center;
    color: #91A2B4;
    font-size: 11px;
    letter-spacing: 1px;
}


/* =====================================
   MAIN CONTENT
===================================== */

.main-content {
    flex: 1;
    min-width: 0;
    height: 100vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* =====================================
   PAGE HEADER
===================================== */

.page-header {
    flex-shrink: 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 27px;
    color: #0B1F33;
    font-weight: 650;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 14px;
    color: #788798;
}


/* =====================================
   DASHBOARD GRID
===================================== */

#homePage {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* =====================================
   DASHBOARD CARDS
===================================== */

.dashboard-card {
    background: #FFFFFF;
    padding: 25px;
    min-height: 225px;
    border-radius: 10px;
    border: 1px solid #E3E9EF;
    box-shadow: 0 3px 10px rgba(11, 31, 51, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 31, 51, 0.09);
    border-color: #C9D7E4;
}

.dashboard-card h3 {
    font-size: 17px;
    font-weight: 650;
    color: #142B40;
    margin-bottom: 9px;
}

.dashboard-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #7A8796;
    margin-bottom: 20px;
}


/* =====================================
   CARD ICONS
===================================== */

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 19px;
}

.card-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sales-icon {
    background: #EAF1F8;
    color: #315E88;
}

.operations-icon {
    background: #EEF1F3;
    color: #566B7C;
}

.profitability-icon {
    background: #F5F0E8;
    color: #96733C;
}

.inventory-icon {
    background: #EAF2EF;
    color: #4C7867;
}

.product-icon {
    background: #F0EDF5;
    color: #75618C;
}

.tradeshow-icon {
    background: #F4EFEB;
    color: #96745C;
}


/* =====================================
   OPEN REPORT BUTTON
===================================== */

.dashboard-card button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding: 11px 13px;
    background: #F1F5F9;
    color: #17466A;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.dashboard-card button:hover {
    background: #17466A;
    color: white;
}

.dashboard-card button span {
    font-size: 18px;
}


/* =====================================
   POWER BI REPORT
===================================== */

#reportPage {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.report-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: white;
    border-radius: 8px;
}

.report-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}


/* =====================================
   SCROLLBAR
===================================== */

#homePage::-webkit-scrollbar {
    width: 5px;
}

#homePage::-webkit-scrollbar-thumb {
    background: #C5CED8;
    border-radius: 10px;
}


/* =====================================
   RESPONSIVE DESIGN
===================================== */

@media (max-width: 1100px) {

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        width: 215px;
        min-width: 215px;
    }
}

@media (max-width: 650px) {

    body {
        overflow: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 18px;
    }

    .brand {
        margin-bottom: 20px;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        height: auto;
        padding: 18px;
        overflow: visible;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    #reportPage {
        height: 75vh;
        min-height: 500px;
    }

    .page-header h1 {
        font-size: 23px;
    }
}
