/* =========================================================
   CALC PORTAL - COMMON APPLICATION STYLES
   ========================================================= */


/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */

:root {

    --calc-purple: #6747c7;
    --calc-purple-light: #7d62dc;

    --calc-dark: #172445;

    --calc-page-bg: #f7f9fd;
    --calc-border: #dfe4ee;

    --calc-header-height: 125px;
    --calc-sidebar-width: 235px;

    --calc-card-radius: 10px;
}


/* =========================================================
   PAGE
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

}


body.calc-body {

    min-height: 100vh;

    background: var(--calc-page-bg);

    color: var(--calc-dark);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================================
   COMPLETE APPLICATION SHELL

   Header
   --------------------
   Work Area
       Sidebar | Body
   --------------------
   Footer
   ========================================================= */

.calc-app-shell {

    min-height: 100vh;

    display: grid;

    grid-template-rows:
        auto
        1fr
        auto;
}


/* =========================================================
   TOP BAND
   ========================================================= */

.calc-top-band {

    width: 100%;

    background: #ffffff;

    position: sticky;

    top: 0;

    z-index: 1000;

    border-radius: 0;
}


/* Header content */

.calc-top-row {

    height: var(--calc-header-height);

    display: grid;

    grid-template-columns:
        190px
        minmax(0, 1fr)
        190px;

    align-items: center;

    padding: 0 28px;

    box-sizing: border-box;
}


/* =========================================================
   COMPANY LOGO - LEFT
   ========================================================= */

.top-company-logo {

    display: flex;

    justify-content: flex-start;

    align-items: center;
}


.company-logo {

 	

    height: auto;

    object-fit: contain;
}


/* =========================================================
   HORIZONTAL NAVIGATION
   ========================================================= */

.top-navigation {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 0;
}


/* Horizontal navigation links */

.calc-nav .nav-link {

    color: #172445;

    font-size: 14px;

    font-weight: 500;

    padding: 10px 12px;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}


.calc-nav .nav-link i {

    margin-right: 6px;

    font-size: 15px;
}


.calc-nav .nav-link:hover {

    color: var(--calc-purple);
}


.calc-nav .logout-link {

    color: #dc3545;
}


.calc-nav .logout-link:hover {

    color: #bd2533;
}


/* =========================================================
   PRODUCT LOGO - RIGHT
   ========================================================= */

.top-product-logo {

    display: flex;

    justify-content: flex-end;

    align-items: center;
}


.calc-logo {



    height: auto;

    object-fit: contain;
}


/* =========================================================
   PURPLE HEADER SEPARATOR
   Always full width
   ========================================================= */

.top-purple-line {

    width: 100%;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #5e43c5,
            #7d62dc
        );
}


/* =========================================================
   BODY / WORK AREA
   ========================================================= */

.calc-work-area {

    width: 100%;

    display: grid;

    grid-template-columns: 1fr;

    min-height: 0;
}


/* Vertical navigation enabled */

.calc-work-area.with-sidebar {

    grid-template-columns:
        var(--calc-sidebar-width)
        minmax(0, 1fr);
}


/* =========================================================
   VERTICAL MENU AREA
   ========================================================= */

.calc-side-area {

    min-height: 100%;

    background: #ffffff;

    border-right:
        1px solid var(--calc-border);

    box-shadow:
        2px 0 8px
        rgba(20, 35, 70, 0.04);
}


/* Vertical navigation */

.sidebar-nav {

    position: sticky;

    top:
        calc(
            var(--calc-header-height) + 3px
        );

    padding: 16px 0 25px 0;
}


/* Individual vertical menu item */

.sidebar-link {

    min-height: 48px;

    display: flex;

    align-items: center;

    padding: 8px 22px;

    border-left:
        4px solid transparent;

    color: #172445;

    font-size: 17px;

    font-weight: 500;

    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}


/* Icons */

.sidebar-link i {

    width: 26px;

    margin-right: 10px;

    color: #435681;

    font-size: 20px;

    text-align: center;
}


/* Hover */

.sidebar-link:hover {

    color: var(--calc-purple);

    background: #f5f2ff;

    border-left-color:
        var(--calc-purple);
}


.sidebar-link:hover i {

    color: var(--calc-purple);
}


/* Logout */

.sidebar-logout,
.sidebar-logout i {

    color: #dc3545;
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.calc-page-content {

    min-width: 0;

    width: 100%;

    background: var(--calc-page-bg);

    box-sizing: border-box;
}


/* =========================================================
   STANDARD CARD CORNERS
   Used throughout Login, Register, Admin and Calculator
   ========================================================= */

.card,
.calc-card {

    border-radius:
        var(--calc-card-radius);

    overflow: hidden;
}


/*
   Ensures BOTH top corners of Bootstrap card headers
   are identical.
*/

.card > .card-header:first-child {

    border-radius:
        var(--calc-card-radius)
        var(--calc-card-radius)
        0
        0 !important;
}


/*
   Ensures BOTH bottom corners are identical.
*/

.card > .card-body:last-child {

    border-radius:
        0
        0
        var(--calc-card-radius)
        var(--calc-card-radius);
}


/* =========================================================
   LOGIN / REGISTRATION CARD CORNER PROTECTION

   These rules intentionally standardise both sides so
   login.css cannot accidentally create only one round corner.
   ========================================================= */


/* =========================================================
   LINKS
   ========================================================= */

a {

    text-decoration: none;
}


a:hover {

    text-decoration: none;
}


/* =========================================================
   FOOTER
   Always the final FULL-WIDTH band
   ========================================================= */

.calc-footer {

    width: 100%;

    margin: 0;

    padding: 17px 0;

    box-sizing: border-box;

    background: #212529;

    color: #ffffff;

    text-align: center;

    font-size: 13px;

    border-radius: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    :root {

        --calc-sidebar-width: 220px;
    }


    .calc-top-row {

        grid-template-columns:
            160px
            minmax(0, 1fr)
            160px;

        padding-left: 18px;

        padding-right: 18px;
    }


    .calc-nav .nav-link {

        padding-left: 8px;

        padding-right: 8px;

        font-size: 12px;
    }




}


@media (max-width: 992px) {

    .calc-top-row {

        grid-template-columns:
            130px
            minmax(0, 1fr)
            130px;

        padding-left: 12px;

        padding-right: 12px;
    }




 


    .sidebar-link {

        padding-left: 15px;

        padding-right: 15px;
    }

}