/* =========================================================
   RDEX INTEGRATED SYSTEMS
   MODERN CORPORATE ERP DESIGN
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    background: #f4f6f8;
    color: #1f2937;
}

body {
    min-height: 100vh;
}


/* =========================================================
   APP
========================================================= */

.app {
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #f7f9fb 0%,
            #eef2f5 100%
        );
}


/* =========================================================
   HEADER
========================================================= */

.header {

    min-height: 76px;

    position: relative;

    display: flex;

    align-items: center;

    padding: 12px 24px;

    background: #ffffff;

    border-bottom: 1px solid #dfe4e8;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.05);

    z-index: 20;
}


/* =========================================================
   SYSTEM TITLE
========================================================= */

.system-title {

    position: absolute;

    left: 24px;
    top: 12px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: #64748b;
}


/* =========================================================
   COMPANY NAME
========================================================= */

.company-name {

    width: 100%;

    text-align: center;

    padding-top: 8px;

    font-size: 21px;

    font-weight: 700;

    letter-spacing: 0.3px;

    color: #075e36;
}


/* =========================================================
   USER AREA
========================================================= */

.user-area {

    position: absolute;

    right: 24px;
    top: 20px;

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;

    color: #334155;
}

.user-area > span:first-child {

    font-weight: 600;

    color: #1e293b;
}

.user-role {

    padding: 5px 9px;

    background: #edf7f1;

    border: 1px solid #c9e6d5;

    border-radius: 20px;

    color: #08752d;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.user-area a {

    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    color: #b42318;

    text-decoration: none;

    border-radius: 5px;

    font-weight: 600;

    transition: 0.15s ease;
}

.user-area a:hover {

    background: #fff1f0;

    color: #8f1d14;
}


/* =========================================================
   TOP MODULE NAVIGATION
========================================================= */

.menu-bar {

    min-height: 46px;

    display: flex;

    align-items: stretch;

    gap: 4px;

    padding: 6px 18px;

    background: #12372a;

    border-bottom: 1px solid #0c291f;

    overflow-x: auto;

    scrollbar-width: thin;
}

.menu-tab {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 34px;

    padding: 0 16px;

    color: #dcebe4;

    text-decoration: none;

    white-space: nowrap;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.menu-tab:hover {

    background: rgba(255, 255, 255, 0.10);

    color: #ffffff;
}

.menu-tab.active {

    background: #ffffff;

    color: #075e36;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {

    min-height: calc(100vh - 122px);

    padding: 28px 30px 50px;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(150px, 1fr));

    gap: 22px;

    align-content: start;
}


/* =========================================================
   MENU SECTION
========================================================= */

.menu-section {

    min-width: 0;

    padding: 17px;

    background: #ffffff;

    border: 1px solid #e2e8ee;

    border-radius: 10px;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.menu-section:hover {

    transform: translateY(-1px);

    box-shadow:
        0 5px 16px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {

    margin-bottom: 10px;

    padding-bottom: 9px;

    border-bottom: 1px solid #e7edf1;

    color: #164e3a;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.2px;
}


/* =========================================================
   MENU LINKS
========================================================= */

.menu-section a {

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 32px;

    margin-bottom: 2px;

    padding: 6px 7px;

    color: #334155;

    text-decoration: none;

    font-size: 12.5px;

    line-height: 1.4;

    border-radius: 6px;

    transition:
        background 0.12s ease,
        color 0.12s ease,
        padding-left 0.12s ease;
}

.menu-section a:hover {

    background: #edf7f1;

    color: #075e36;

    padding-left: 11px;

    text-decoration: none;
}


/* =========================================================
   MENU ICON
========================================================= */

.menu-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 25px;

    min-width: 25px;

    height: 25px;

    margin-right: 7px;

    background: #f1f5f3;

    border-radius: 6px;

    font-size: 13px;
}


/* =========================================================
   BOTTOM SECTIONS
========================================================= */

.bottom-section {

    margin-top: 0;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.menu-bar::-webkit-scrollbar {

    height: 6px;
}

.menu-bar::-webkit-scrollbar-track {

    background: #0f3025;
}

.menu-bar::-webkit-scrollbar-thumb {

    background: #47705e;

    border-radius: 10px;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at top left,
            #e5f4eb 0,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eef5f1,
            #f4f6f8
        );
}


/* =========================================================
   LOGIN BOX
========================================================= */

.login-box {

    width: 390px;

    padding: 38px;

    background: #ffffff;

    border: 1px solid #e0e7e3;

    border-radius: 14px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   LOGIN TITLE
========================================================= */

.login-title {

    text-align: center;

    font-size: 23px;

    font-weight: 750;

    letter-spacing: -0.3px;

    color: #075e36;
}

.login-company {

    margin-top: 8px;

    margin-bottom: 30px;

    text-align: center;

    font-size: 10.5px;

    font-weight: 600;

    line-height: 1.5;

    color: #64748b;
}


/* =========================================================
   FORM
========================================================= */

.form-group {

    margin-bottom: 18px;
}

.form-group label {

    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 12px;

    font-weight: 600;
}

.form-group input {

    width: 100%;

    height: 42px;

    padding: 0 12px;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-radius: 7px;

    color: #1e293b;

    font-size: 13px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-group input:hover {

    border-color: #94a3b8;
}

.form-group input:focus {

    outline: none;

    border-color: #08752d;

    box-shadow:
        0 0 0 3px rgba(8, 117, 45, 0.10);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {

    width: 100%;

    height: 43px;

    margin-top: 5px;

    border: none;

    border-radius: 7px;

    background: #08752d;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 8px rgba(8, 117, 45, 0.20);

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.login-button:hover {

    background: #075c24;
}

.login-button:active {

    transform: translateY(1px);
}


/* =========================================================
   LOGIN ERROR
========================================================= */

.login-error {

    margin-bottom: 18px;

    padding: 10px 12px;

    background: #fff5f5;

    border: 1px solid #fecaca;

    border-radius: 7px;

    color: #b42318;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .main-content {

        grid-template-columns:
            repeat(4, minmax(150px, 1fr));
    }
}


@media (max-width: 950px) {

    .header {

        min-height: 90px;
    }

    .company-name {

        padding-top: 18px;

        font-size: 18px;
    }

    .user-area {

        top: 55px;

        right: 18px;
    }

    .main-content {

        grid-template-columns:
            repeat(3, minmax(150px, 1fr));

        padding: 22px;
    }
}


@media (max-width: 700px) {

    .header {

        min-height: 110px;

        padding: 12px 15px;
    }

    .system-title {

        left: 15px;
    }

    .company-name {

        display: none;
    }

    .user-area {

        left: 15px;

        right: auto;

        top: 48px;
    }

    .menu-bar {

        padding: 6px 10px;
    }

    .main-content {

        grid-template-columns:
            repeat(2, minmax(140px, 1fr));

        gap: 14px;

        padding: 16px;
    }

    .menu-section {

        padding: 14px;
    }
}


@media (max-width: 480px) {

    .login-box {

        width: 100%;

        padding: 28px 22px;

        border-radius: 10px;
    }

    .main-content {

        grid-template-columns: 1fr;

        padding: 12px;
    }

    .menu-section {

        width: 100%;
    }

    .user-area {

        gap: 5px;

        font-size: 11px;
    }

    .menu-tab {

        padding: 0 12px;

        font-size: 12px;
    }
}