/* =========================================================
   WMS01 - STYLE UTAMA
========================================================= */

* {
    box-sizing: border-box;
}


html,
body {

    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f8;

}


body {
    min-height: 100vh;
}



/* =========================================================
   TOPBAR
========================================================= */

.topbar {

    width: 100%;

    background: #ffffff;

    border-bottom:
        1px solid #e5e7eb;

    padding:
        15px 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 100;

}


.brand {
    min-width: 0;
}


.brand-main {

    font-size: 18px;

    font-weight: 700;

    letter-spacing: 0.5px;

    color: #1f2937;

}


.brand-sub {

    margin-top: 3px;

    font-size: 11px;

    color: #6b7280;

}


.user-area {

    display: flex;

    align-items: center;

    gap: 8px;

}


.user-name {

    font-size: 12px;

    font-weight: 600;

    color: #374151;

}


.btn-logout {

    border:
        1px solid #d1d5db;

    background: #ffffff;

    color: #374151;

    border-radius: 7px;

    padding:
        7px 10px;

    font-size: 12px;

    cursor: pointer;

}



/* =========================================================
   MAIN
========================================================= */

.main-container {

    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    padding:
        22px 16px 30px;

}


.welcome {
    margin-bottom: 20px;
}


.welcome-title {

    font-size: 21px;

    font-weight: 700;

    color: #1f2937;

}


.welcome-subtitle {

    margin-top: 5px;

    font-size: 13px;

    color: #6b7280;

}



/* =========================================================
   MENU GRID
========================================================= */

.menu-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;

}


.menu-card {

    min-height: 125px;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    padding:
        20px 16px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;

}


.menu-card:active {

    transform:
        scale(0.97);

}


.menu-icon {

    font-size: 32px;

    margin-bottom: 10px;

}


.menu-title {

    font-size: 15px;

    font-weight: 700;

    color: #1f2937;

}


.menu-description {

    margin-top: 5px;

    font-size: 11px;

    color: #6b7280;

    line-height: 1.4;

}



/* =========================================================
   STATUS SISTEM
========================================================= */

.system-status {

    margin-top: 20px;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 10px;

    padding:
        14px 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.status-label {

    font-size: 12px;

    color: #6b7280;

}


.status-value {

    font-size: 12px;

    font-weight: 700;

    color: #15803d;

}



/* =========================================================
   MODAL PENGIRIMAN
========================================================= */

.modal-overlay {

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.45);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 500;

}


.modal-overlay.active {
    display: flex;
}


.submenu-box {

    width: 100%;

    max-width: 400px;

    background: #ffffff;

    border-radius: 14px;

    padding:
        22px 18px 18px;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.15);

}


.submenu-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

}


.submenu-title {

    font-size: 18px;

    font-weight: 700;

    color: #1f2937;

}


.btn-close {

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    color: #374151;

    font-size: 18px;

    cursor: pointer;

}


.submenu-item {

    width: 100%;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 10px;

    padding:
        16px;

    margin-bottom: 12px;

    display: flex;

    align-items: center;

    gap: 14px;

    text-align: left;

    cursor: pointer;

}


.submenu-item:last-child {
    margin-bottom: 0;
}


.submenu-item:active {

    transform:
        scale(0.98);

}


.submenu-icon {

    width: 45px;

    height: 45px;

    border-radius: 10px;

    background: #f3f4f6;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    flex-shrink: 0;

}


.submenu-text {
    flex: 1;
}


.submenu-item-title {

    font-size: 14px;

    font-weight: 700;

    color: #1f2937;

}


.submenu-item-description {

    margin-top: 4px;

    font-size: 11px;

    color: #6b7280;

    line-height: 1.4;

}


.submenu-arrow {

    font-size: 20px;

    color: #9ca3af;

}



/* =========================================================
   FOOTER
========================================================= */

.footer {

    text-align: center;

    margin-top: 28px;

    font-size: 11px;

    color: #9ca3af;

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 420px) {

    .topbar {

        padding:
            13px 14px;

    }


    .brand-main {

        font-size: 16px;

    }


    .brand-sub {

        font-size: 10px;

    }


    .user-name {
        display: none;
    }


    .main-container {

        padding:
            20px 14px 28px;

    }


    .menu-grid {

        gap: 10px;

    }


    .menu-card {

        min-height: 115px;

        padding:
            16px 10px;

    }


    .menu-icon {

        font-size: 28px;

    }


    .menu-title {

        font-size: 14px;

    }

}

