/* =====================================================
   ARMPP - MAIN STYLE
===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: transparent;
}


/* =====================================================
   BACKGROUND
===================================================== */

.background-image {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-image: url("../image/armbpp.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    opacity: 0.25;

    z-index: 0;

    pointer-events: none;
}


/* =====================================================
   LOGIN
===================================================== */

.login-container {
    position: relative;

    z-index: 1;

    min-height: 100vh;

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;
}


.login-box {
    width: 100%;
    max-width: 390px;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 14px;

    padding: 32px 30px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);

    border: 1px solid rgba(0, 0, 0, 0.06);

    text-align: center;
}


.login-box h1 {
    margin: 0 0 6px;

    font-size: 32px;

    font-weight: 700;
}


.login-box p {
    margin: 0 0 25px;

    font-size: 14px;

    color: #777;
}


.login-box form {
    width: 100%;
}


.login-box input {
    display: block;

    width: 100%;

    height: 45px;

    padding: 0 13px;

    margin-bottom: 13px;

    border: 1px solid #d5d5d5;

    border-radius: 8px;

    background: #fff;

    font-size: 14px;

    outline: none;
}


.login-box input:focus {
    border-color: #555;

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.05);
}


.login-box button {
    display: block;

    width: 100%;

    height: 45px;

    border: none;

    border-radius: 8px;

    background: #333;

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    margin-top: 4px;
}


.login-box button:hover {
    background: #111;
}


#loginMessage {
    min-height: 20px;

    margin-top: 12px;

    font-size: 13px;

    color: #666;
}


/* =====================================================
   TOPBAR DASHBOARD
===================================================== */

.topbar {
    position: relative;

    z-index: 2;

    width: 100%;

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 12px 28px;

    background: rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.06);
}


/* =====================================================
   TOPBAR LEFT
===================================================== */

.topbar-left {
    display: flex;

    align-items: center;

    min-width: 0;

    flex: 1;
}


.brand {
    min-width: 0;
}


.brand-name {
    font-size: 23px;

    font-weight: 700;

    line-height: 1.2;
}


.brand-subtitle {
    margin-top: 3px;

    font-size: 12px;

    color: #777;

    white-space: nowrap;
}


/* =====================================================
   TOPBAR RIGHT
===================================================== */

.topbar-right {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    flex-shrink: 0;
}


.user-info {
    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;
}


.btn-logout {
    height: 38px;

    padding: 0 15px;

    border: none;

    border-radius: 7px;

    background: #333;

    color: #fff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;
}


.btn-logout:hover {
    background: #111;
}


/* =====================================================
   MAIN CONTAINER
===================================================== */

.main-container {
    position: relative;

    z-index: 1;

    width: 100%;

    min-height: calc(100vh - 70px);

    background: transparent;
}


/* =====================================================
   APP PAGE
===================================================== */

.app-page {
    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding: 25px 20px 40px;

}


/* =====================================================
   PAGE HEADER
===================================================== */

.page-header {
    margin-bottom: 20px;
}


.page-header h1 {
    margin: 10px 0 5px;

    font-size: 26px;
}


.page-header p {
    margin: 0;

    opacity: 0.75;

    font-size: 14px;
}


/* =====================================================
   BACK BUTTON
===================================================== */

.btn-back {
    border: none;

    background: transparent;

    padding: 0;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 5px;
}


.btn-back:hover {
    opacity: 0.7;
}


/* =====================================================
   FORM CARD
===================================================== */

.form-card {
    background: rgba(255, 255, 255, 0.96);

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 18px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

    border: 1px solid rgba(0, 0, 0, 0.06);
}


/* =====================================================
   FORM CARD TITLE
===================================================== */

.form-card-title {
    font-size: 17px;

    font-weight: 700;

    padding-bottom: 14px;

    margin-bottom: 18px;

    border-bottom: 1px solid #e5e5e5;

    display: flex;

    align-items: center;

    gap: 8px;
}


/* =====================================================
   FORM GRID
===================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px 18px;
}


/* =====================================================
   FORM GROUP
===================================================== */

.form-group {
    display: flex;

    flex-direction: column;
}


.form-group label {
    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;
}


/* =====================================================
   INPUT / SELECT
===================================================== */

.form-group input,
.form-group select {
    width: 100%;

    height: 42px;

    padding: 0 12px;

    border: 1px solid #d5d5d5;

    border-radius: 7px;

    background: #fff;

    font-size: 14px;

    outline: none;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #777;

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.05);
}


/* =====================================================
   FORM ACTION
===================================================== */

.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 20px;
}


/* =====================================================
   BUTTON
===================================================== */

.btn-primary,
.btn-success {
    height: 42px;

    padding: 0 18px;

    border: none;

    border-radius: 7px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}


.btn-primary {
    background: #333;

    color: #fff;
}


.btn-primary:hover {
    background: #111;
}


.btn-success {
    background: #2e7d32;

    color: #fff;
}


.btn-success:hover {
    background: #1b5e20;
}


/* =====================================================
   EMPTY FORM
===================================================== */

.empty-form {
    text-align: center;

    padding: 35px 20px;

    color: #777;
}


.empty-icon {
    font-size: 38px;

    margin-bottom: 10px;
}


.empty-form h3 {
    margin: 5px 0 8px;

    font-size: 16px;

    color: #555;
}


.empty-form p {
    margin: 0;

    font-size: 13px;
}


/* =====================================================
   DATABASE STATUS
===================================================== */

.database-status {
    background: rgba(255, 255, 255, 0.90);

    border-radius: 8px;

    padding: 10px 14px;

    margin-bottom: 20px;

    font-size: 13px;

    border: 1px solid rgba(0, 0, 0, 0.06);
}


/* =====================================================
   MENU GRID
===================================================== */

.menu-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =====================================================
   MENU CARD
===================================================== */

.menu-card {
    background: rgba(255, 255, 255, 0.94);

    border-radius: 12px;

    padding: 22px;

    min-height: 145px;

    cursor: pointer;

    border: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.15s,
        box-shadow 0.15s;
}


.menu-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.12);
}


.menu-icon {
    font-size: 32px;

    margin-bottom: 10px;
}


.menu-card h3 {
    margin: 0 0 7px;

    font-size: 17px;
}


.menu-card p {
    margin: 0;

    font-size: 13px;

    color: #777;

    line-height: 1.5;
}


/* =====================================================
   MOBILE - 700px
===================================================== */

@media (max-width: 700px) {

    /* ---------------------------------------------
       LOGIN
    --------------------------------------------- */

    .login-container {
        min-height: 100vh;

        padding: 16px;
    }


    .login-box {
        width: 100%;

        max-width: 100%;

        padding: 26px 20px;

        border-radius: 12px;
    }


    .login-box h1 {
        font-size: 28px;
    }


    .login-box p {
        margin-bottom: 22px;
    }


    /* ---------------------------------------------
       TOPBAR
    --------------------------------------------- */

    .topbar {
        min-height: auto;

        padding: 12px 15px;

        gap: 10px;

        align-items: center;
    }


    .topbar-left {
        flex: 1;

        min-width: 0;
    }


    .brand-name {
        font-size: 19px;
    }


    .brand-subtitle {
        font-size: 10px;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .topbar-right {
        gap: 7px;
    }


    .user-info {
        font-size: 12px;

        max-width: 90px;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .btn-logout {
        height: 34px;

        padding: 0 10px;

        font-size: 12px;
    }


    /* ---------------------------------------------
       PAGE
    --------------------------------------------- */

    .app-page {
        padding: 18px 12px 30px;
    }


    .page-header {
        margin-bottom: 15px;
    }


    .page-header h1 {
        font-size: 22px;
    }


    /* ---------------------------------------------
       FORM
    --------------------------------------------- */

    .form-card {
        padding: 16px;

        margin-bottom: 14px;

        border-radius: 10px;
    }


    .form-card-title {
        font-size: 15px;

        padding-bottom: 12px;

        margin-bottom: 15px;
    }


    .form-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }


    .form-actions {
        flex-direction: column;

        gap: 8px;
    }


    .btn-primary,
    .btn-success {
        width: 100%;
    }


    /* ---------------------------------------------
       MENU
    --------------------------------------------- */

    .menu-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .menu-card {
        min-height: auto;

        padding: 18px;
    }


    .menu-icon {
        font-size: 28px;

        margin-bottom: 7px;
    }


    .menu-card h3 {
        font-size: 16px;
    }
}


/* =====================================================
   MOBILE SMALL - 420px
===================================================== */

@media (max-width: 420px) {

    .topbar {
        padding: 10px 12px;
    }


    .brand-name {
        font-size: 17px;
    }


    .brand-subtitle {
        font-size: 9px;
    }


    .user-info {
        display: none;
    }


    .btn-logout {
        height: 32px;

        padding: 0 9px;

        font-size: 11px;
    }


    .login-box {
        padding: 24px 17px;
    }


    .login-box h1 {
        font-size: 26px;
    }
}