/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {

    --navy: #002c5e;

    --light-blue: #9addf5;

    --white: #ffffff;

    --gray: #64748b;

    --border: #e2e8f0;

    --background: #f1f8fc;

    --purple: #33206b;

}



/* =========================================
   BODY
========================================= */

html,
body {

    width: 100%;

    min-height: 100%;

}


body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        var(--background);

    color:
        var(--navy);

}


button,
input {

    font-family: inherit;

}


button {

    cursor: pointer;

}


.hidden {

    display: none !important;

}



/* =========================================
   NAVBAR
========================================= */

.navbar {

    width: 100%;

    height: 64px;

    background:
        var(--navy);

    color:
        white;

    display: flex;

    align-items: center;

    justify-content: center;

    position: sticky;

    top: 0;

    z-index: 50;

    box-shadow:
        0 3px 15px
        rgba(0, 44, 94, 0.15);

}


.navbar-title {

    font-size: 19px;

    font-weight: 800;

    letter-spacing: 0.5px;

}


.logout-button {

    position: absolute;

    right: 15px;

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background:
        rgba(154, 221, 245, 0.14);

    color:
        var(--light-blue);

    display: flex;

    align-items: center;

    justify-content: center;

}


.logout-button svg {

    width: 21px;

    height: 21px;

}


.logout-button:active {

    transform: scale(0.9);

}



/* =========================================
   MAIN
========================================= */

main {

    min-height:
        calc(100vh - 120px);

}


.login-section {

    min-height:
        calc(100vh - 120px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px 16px;

}


.login-card {

    width: 100%;

    max-width: 390px;

    background:
        white;

    border-radius: 22px;

    padding: 30px 24px;

    box-shadow:
        0 12px 35px
        rgba(0, 44, 94, 0.12);

    text-align: center;

}


.login-icon {

    width: 64px;

    height: 64px;

    margin:
        0 auto 15px;

    border-radius: 18px;

    background:
        var(--light-blue);

    display: flex;

    align-items: center;

    justify-content: center;

}


.login-icon svg {

    width: 32px;

    height: 32px;

}


.login-card h1 {

    font-size: 22px;

}


.login-card > p {

    margin-top: 7px;

    color:
        var(--gray);

    font-size: 13px;

}


.login-card form {

    margin-top: 20px;

    text-align: left;

}


.login-card label {

    display: block;

    margin:
        14px 0 7px;

    font-size: 13px;

    font-weight: 700;

}


.login-card input {

    width: 100%;

    height: 47px;

    border:
        1px solid
        #cbd5e1;

    border-radius: 11px;

    padding:
        0 13px;

    outline: none;

    font-size: 14px;

}


.login-card input:focus {

    border-color:
        var(--navy);

    box-shadow:
        0 0 0 3px
        rgba(0, 44, 94, 0.08);

}


.primary-button {

    width: 100%;

    height: 48px;

    margin-top: 20px;

    border: none;

    border-radius: 11px;

    background:
        var(--navy);

    color:
        white;

    font-weight: 800;

}


.primary-button:active {

    transform: scale(0.98);

}


.login-error {

    min-height: 18px;

    margin-top: 10px;

    color:
        #dc2626;

    text-align: center;

    font-size: 12px;

}



/* =========================================
   DASHBOARD
========================================= */

.dashboard-section {

    max-width: 1250px;

    margin:
        0 auto;

    padding:
        28px 18px 25px;

}


.dashboard-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;

}


.dashboard-heading h1 {

    font-size: 24px;

}


.dashboard-heading p {

    margin-top: 5px;

    color:
        var(--gray);

    font-size: 12px;

}


.data-count {

    background:
        var(--light-blue);

    padding:
        8px 13px;

    border-radius:
        20px;

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;

}



/* =========================================
   TABLE CARD
========================================= */

.table-card {

    background:
        white;

    border-radius:
        18px;

    box-shadow:
        0 10px 30px
        rgba(0, 44, 94, 0.09);

    overflow:
        visible;

}



/* =========================================
   TOOLBAR
========================================= */

.table-toolbar {

    padding:
        15px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    border-bottom:
        1px solid
        var(--border);

}



/* =========================================
   DATE
========================================= */

.date-filter {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

}


.calendar-box {

    width:
        38px;

    height:
        40px;

    border-radius:
        9px;

    background:
        #e9f8fd;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

}


.calendar-box svg {

    width:
        19px;

    height:
        19px;

}


.date-filter input {

    height:
        40px;

    border:
        1px solid
        #cbd5e1;

    border-radius:
        9px;

    padding:
        0 9px;

    color:
        var(--navy);

    outline:
        none;

}


.view-button {

    height:
        40px;

    padding:
        0 16px;

    border:
        none;

    border-radius:
        9px;

    background:
        var(--navy);

    color:
        white;

    font-weight:
        800;

}


.view-button:disabled {

    opacity:
        0.6;

    cursor:
        wait;

}



/* =========================================
   SEARCH
========================================= */

.search-box {

    width:
        240px;

    height:
        40px;

    margin-left:
        auto;

    border:
        1px solid
        #cbd5e1;

    border-radius:
        9px;

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        0 10px;

}


.search-box svg {

    width:
        18px;

    height:
        18px;

    color:
        var(--gray);

}


.search-box input {

    width:
        100%;

    border:
        none;

    outline:
        none;

    font-size:
        13px;

}



/* =========================================
   DOWNLOAD
========================================= */

.download-container {

    position:
        relative;

}


.download-button {

    height:
        40px;

    padding:
        0 15px;

    border:
        none;

    border-radius:
        9px;

    background:
        var(--light-blue);

    color:
        var(--navy);

    font-weight:
        800;

}


.download-button span {

    margin-left:
        5px;

}


.download-menu {

    position:
        absolute;

    top:
        46px;

    right:
        0;

    min-width:
        165px;

    background:
        white;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.15);

    overflow:
        hidden;

    z-index:
        30;

}


.download-menu button {

    width:
        100%;

    padding:
        11px 14px;

    background:
        white;

    border:
        none;

    text-align:
        left;

    font-size:
        13px;

    color:
        var(--navy);

}


.download-menu button:hover {

    background:
        #f1f9fc;

}



/* =========================================
   TABLE
========================================= */

.table-wrapper {

    width:
        100%;

    overflow-x:
        auto;

}


table {

    width:
        100%;

    min-width:
        760px;

    border-collapse:
        collapse;

}


thead {

    background:
        #f1f9fc;

}


th {

    padding:
        13px 14px;

    text-align:
        left;

    font-size:
        12px;

    white-space:
        nowrap;

}


td {

    padding:
        12px 14px;

    border-top:
        1px solid
        var(--border);

    font-size:
        13px;

    vertical-align:
        middle;

}


tbody tr:hover {

    background:
        #f8fcfe;

}



/* =========================================
   NAME
========================================= */

.name-button {

    border:
        none;

    background:
        transparent;

    color:
        var(--navy);

    font-weight:
        700;

    font-size:
        13px;

    cursor:
        pointer;

}


.name-button:hover {

    text-decoration:
        underline;

}



/* =========================================
   PHOTO ICON
========================================= */

.photo-button {

    width:
        35px;

    height:
        35px;

    border:
        none;

    border-radius:
        9px;

    background:
        #dcfce7;

    color:
        #15803d;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    cursor:
        pointer;

}


.photo-button.viewed {

    background:
        var(--purple);

    color:
        white;

}


.photo-button svg {

    width:
        19px;

    height:
        19px;

}



/* =========================================
   COORDINATE
========================================= */

.coordinate-button {

    border:
        none;

    background:
        transparent;

    color:
        #075985;

    font-size:
        12px;

    cursor:
        pointer;

}


.coordinate-button:hover {

    text-decoration:
        underline;

}



/* =========================================
   EMPTY
========================================= */

.empty-state {

    padding:
        45px 20px;

    text-align:
        center;

    color:
        var(--gray);

    font-size:
        13px;

}



/* =========================================
   PAGINATION
========================================= */

.pagination {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        5px;

    padding:
        15px;

    border-top:
        1px solid
        var(--border);

}


.page-button {

    width:
        34px;

    height:
        34px;

    border:
        1px solid
        #d5dee6;

    border-radius:
        8px;

    background:
        white;

    color:
        var(--navy);

}


.page-button.active {

    background:
        var(--navy);

    color:
        white;

    border-color:
        var(--navy);

}


.page-button:disabled {

    opacity:
        0.35;

    cursor:
        not-allowed;

}



/* =========================================
   PHOTO MODAL
========================================= */

.photo-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        100;

    background:
        rgba(0, 20, 42, 0.86);

    backdrop-filter:
        blur(5px);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        30px 20px;

}


.photo-modal img {

    max-width:
        92vw;

    max-height:
        88vh;

    object-fit:
        contain;

    border-radius:
        12px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.5);

}


.close-photo {

    position:
        absolute;

    top:
        15px;

    right:
        18px;

    width:
        43px;

    height:
        43px;

    border:
        none;

    border-radius:
        50%;

    background:
        rgba(255,255,255,0.15);

    color:
        white;

    font-size:
        30px;

    line-height:
        1;

}



/* =========================================
   TOAST
========================================= */

.toast {

    position:
        fixed;

    left:
        50%;

    bottom:
        28px;

    transform:
        translate(-50%, 20px);

    opacity:
        0;

    z-index:
        200;

    padding:
        10px 16px;

    border-radius:
        10px;

    background:
        var(--navy);

    color:
        white;

    font-size:
        12px;

    transition:
        0.2s;

    pointer-events:
        none;

}


.toast.show {

    opacity:
        1;

    transform:
        translate(-50%, 0);

}



/* =========================================
   FOOTER
========================================= */

.footer {

    width:
        100%;

    text-align:
        center;

    padding:
        8px 0 22px;

}


.footer a {

    color:
        #7894a3;

    text-decoration:
        none;

    font-size:
        11px;

    letter-spacing:
        0.5px;

}



/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 850px) {

    .table-toolbar {

        flex-wrap:
            wrap;

    }


    .search-box {

        order:
            3;

        width:
            100%;

        margin-left:
            0;

    }

}


@media (max-width: 600px) {

    .navbar {

        height:
            58px;

    }


    .navbar-title {

        font-size:
            17px;

    }


    .dashboard-section {

        padding:
            20px 10px;

    }


    .dashboard-heading {

        align-items:
            flex-start;

    }


    .dashboard-heading h1 {

        font-size:
            20px;

    }


    .dashboard-heading p {

        font-size:
            11px;

    }


    .table-toolbar {

        padding:
            12px;

    }


    .date-filter {

        width:
            100%;

    }


    .date-filter input {

        flex:
            1;

        min-width:
            0;

    }


    .download-container {

        margin-left:
            0;

    }


    .download-button {

        padding:
            0 12px;

    }

}


@media (max-width: 400px) {

    .date-filter {

        gap:
            5px;

    }


    .calendar-box {

        width:
            34px;

    }


    .date-filter input {

        font-size:
            12px;

    }


    .view-button {

        padding:
            0 11px;

    }

}