@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #001D4A;
    --background-color: #F7F8F9;
    --primary-color: #979797;
    --secondary-color: #FFF;
    --logo-text-color: #969696;
    --pagination-not-selected: #76767686;
    --cancel: rgb(174, 28, 28);
}

html {
    font-family: 'Poppins', 'Arial';
}

body {
    background-color: var(--background-color);
}

main {
    display: flex;
}

input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.no-transition {
    transition: none;
}

a {
    all: unset;
    cursor: pointer;
}

p {
    font-size: 13px;
}

span {
    font-size: 13px;
}

input[type=submit] {
    outline: none;
    border: unset;
    cursor: pointer;
    font-family: 'Poppins', 'Arial';
}

nav {
    width: 300px;
    height: 100vh;
    padding: 20px;
    inset: 0 0;
    position: sticky;
    background-color: var(--secondary-color);
    z-index: 999;
}

section#content nav {
    all: unset;
}

section#content nav div:first-child {
    display: none;
}

section#content .pagination {
    margin-top: 20px;
}

p {
    color: var(--primary-color);
}

section#content {
    flex: 1;
    background-color: var(--background-color);
    padding: 20px;
    min-height: 100vh;
}

nav {
    overflow-y: scroll;
}

nav::-webkit-scrollbar {
    background-color: var(--background-color);
    border-radius: 100px;
    width: 10px;
}

nav .logo {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav .logo span {
    margin-left: 20px;
    font-weight: 600;
    color: var(--logo-text-color);
}

nav .instructions {
    margin-top: 100px;
    background-color: var(--primary-blue);
    padding: 20px;
    border-radius: 10px;
    font-size: 13px;
}

nav .instructions p {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

nav .acc-type {
    margin: 30px 0px;
    text-align: center;
}

nav .acc-type span {
    padding: 5px 20px;
    background-color: var(--primary-blue);
    color: var(--secondary-color);
    border-radius: 5px;
    font-size: 12px;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: flex;
    align-items: center;
    padding: 10px;
    justify-content: space-between;
}

nav ul li .nav-content {
    display: flex;
    align-items: center;
}

nav ul li svg {
    margin: 0px 30px 0px 0px;
}

nav ul a:not(:last-child) {
    margin-bottom: 15px;
}

nav ul a {
    padding: 5px 10px;
    display: block;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 15px;
}

nav ul a:hover {
    background-color: var(--background-color);
    color: var(--primary-blue);
}

nav ul a.active {
    background-color: var(--background-color);
    color: var(--primary-blue);
}

nav ul a.active svg {
    color: var(--primary-blue);
}

nav ul a.active img {
    display: none;
}

section#content .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
    inset: 0 0;
    position: sticky;
    background-color: var(--background-color);
    z-index: 100;
}

section#content .top-nav {
    cursor: pointer;
    user-select: none;
}

nav.collapse-nav .logo {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

nav.collapse-nav .logo span {
    display: none;
}

nav.collapse-nav .acc-type {
    display: none;
}

nav.collapse-nav ul li {
    justify-content: center;
}

nav.collapse-nav ul li .nav-content {
    display: block;
    text-align: center;
}

nav.collapse-nav ul li .nav-content span {
    display: block;
    font-size: 13px;
}

nav.collapse-nav ul li .nav-content svg {
    width: 25px;
}

nav.collapse-nav ul li svg {
    margin: auto;
    margin-bottom: 5px;
}

nav.collapse-nav ul li img {
    display: none;
}

nav.collapse-nav .instructions {
    display: none;
}


nav.collapse-nav {
    width: 130px;
}

nav.collapse-nav ul a:not(:last-child) {
    margin-bottom: 10px;
}

#clock {
    font-weight: 600;
}

.status {
    display: flex;
    align-items: center;
}


.pulse {
    background: green;
    border-radius: 50%;
    margin: 10px;
    height: 20px;
    margin-left: 40px;
    width: 20px;

    box-shadow: 0 0 0 0 rgba(0, 255, 0, 1);
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.mb {
    margin-bottom: 50px;
}

.table .header {
    margin: 50px 0px;
}

.btn {
    padding: 10px 25px;
    background-color: var(--primary-blue);
    color: var(--secondary-color);
    border-radius: 5px;
    font-size: 13px;
    outline: none;
    border: unset;
    font-family: 'Poppins', 'Arial';
    cursor: pointer;
    text-align: center;
    width: fit-content;
}

.primary-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    font-size: 0.85em;
}

.primary-btn:hover {
    color: var(--primary-blue);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

.stats>* {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 5px;
}

.stats .number {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.stats div .number {
    margin-top: 10px;
}

.stats div .number h2 {
    font-size: 30px;
    color: var(--primary-blue);
    font-weight: 600;
}

.stats div .number img {
    margin-right: 20px;
    height: 30px;
}

.stat-3 p strong {
    font-weight: 600;
    color: var(--primary-blue);
}

.stat-3 .number {
    margin: auto !important;
    display: block;
}

.header {
    display: flex;
    justify-content: space-between;
}

.header .title {
    display: flex;
    align-items: center;
}

.header .title img {
    margin-right: 20px;
}

.header .view-more {
    display: flex;
    align-items: center;
}

.header .view-more p {
    margin-right: 20px;
}

.table .content {
    margin-top: 15px;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 5px;
    color: var(--primary-color);
}

.table tr {
    width: 100%;
    display: flex;
    /* justify-content: space-between; */
}

.table table {
    width: 100%;
}

tr {
    margin-bottom: 10px;
    padding: 3px 0px;
}

tr:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

th,
td {
    display: block;
    font-weight: 500;
    width: 20%;
    font-size: 13px;
}

.table .buttons a:first-child {
    margin-right: 10px;
}

.buttons.add-new {
    display: flex;
    gap: 20px;
}

.buttons.add-new img {
    height: 100%;
}

.buttons.add-new .btn {
    display: flex;
    gap: 20px;
}


.table td {
    color: var(--primary-blue);
}

.th-start {
    text-align: start;
}

.table .td-center {
    text-align: center;
}

.table .buttons a img {
    height: 20px;
}

.form-control {
    margin-top: 15px;
    width: 100%;
    border: none;
    background-color: var(--background-color);
    padding: 15px 20px;
    border-radius: 5px;
    font-family: 'Poppins', 'Arial';
    color: var(--primary-blue);
    font-weight: 500;
}

.form-control.date:not(:disabled) {
    cursor: pointer;
}

.form-control:focus {
    outline: none;
}

form>div {
    margin-bottom: 20px;
}

label {
    font-size: 0.9em;
}

.add-padding {
    padding: 50px 70px !important;
}

.pagination {
    display: flex;
    justify-content: center;
}

.pagination>*:not(:last-child) {
    margin-right: 10px;
}

.pagination>* {
    cursor: pointer;
    height: 35px;
    width: 35px;
    display: grid;
    place-content: center;
    background-color: var(--secondary-color);
    color: var(--pagination-not-selected);
    border-radius: 3px;
    font-size: 14px;
}

.pagination a:hover {
    background-color: unset !important;
}

.pagination .active {
    background-color: var(--primary-blue);
    color: var(--secondary-color);
}

.pagination .disabled {
    opacity: 0.4;
    cursor: unset;
}

.nav-mobile-nav {
    height: 20px;
    position: fixed;
    right: 50px;
    top: 45px;
    cursor: pointer;
    display: none;
}

section#content .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

section#content .logo img {
    height: 20px;
}

section#content .logo span {
    margin-left: 20px;
    font-weight: 600;
    color: var(--logo-text-color);
}

@media screen and (max-width: 1050px) {
    p {
        font-size: 12px;
    }

    span {
        font-size: 12px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    table {
        border: 1px solid #ccc;
        border-collapse: collapse;
        margin: 0;
        padding: 0;
        width: 100%;
        table-layout: fixed;
    }


    .table tr {
        background-color: #f8f8f8;
        border: 1px solid #ddd;
        padding: .35em;
        display: block;
    }

    .table tr:has(th) {
        display: none;
    }

    table th,
    table td {
        padding: .625em;
        text-align: center;
        width: 100%;
        justify-content: space-between;
    }

    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: flex;
        font-size: .8em;
        text-align: right;
    }

    table td::before {
        /*
          * aria-label has no advantage, it won't be read inside a table
          content: attr(aria-label);
          */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table td:last-child {
        border-bottom: 0;
    }

    .table .td-center.buttons {
        display: grid;
        grid-template-columns: 1fr 25px 25px;
    }

    .table .td-center.buttons::before {
        text-align: start;
    }

    .table td[data-label="Check In"]:before,
    .table td[data-label="Check Out"]:before {
        text-align: start;
    }

    .table td[data-label="Check In"],
    .table td[data-label="Check Out"] {
        display: grid;
        grid-template-columns: 1fr 1fr 30px;
        text-align: end;
    }

    .eye {
        margin: auto !important;
        margin-right: 0px !important;
    }

    .add-padding {
        padding: 30px !important;
    }
}

@media screen and (max-width: 850px) {
    section#content .logo {
        display: flex;
    }

    nav {
        position: fixed;
        inset: 0 0;
        transform: translate(-100%, 0%);
        width: 100vw;
    }

    nav .instructions {
        display: none;
    }

    nav.collapse-nav {
        transform: translate(0%, 0%);
        width: 100vw;
    }

    nav.collapse-nav svg:first-child {
        width: 20px;
    }

    nav.collapse-nav .logo img {
        width: 20px;
    }

    nav ul li {
        justify-content: center;
    }

    nav ul li .nav-content {
        display: flex !important;
    }

    nav ul li .nav-content svg {
        margin-right: 20px;
    }

    nav ul a.active {
        background-color: unset;
    }

    nav ul a:hover {
        background-color: unset;
        color: var(--primary-blue);
    }

    nav .acc-type span {
        display: none;
    }

    nav ul li img {
        display: none;
    }

    nav.collapse-nav .logo span {
        display: block;
    }

    nav.collapse-nav .logo {
        display: flex !important;
        pointer-events: none;
    }

    .nav-mobile-nav {
        display: block;
    }

    #clock {
        display: none;
    }

    .clock {
        display: none;
    }

    section#content .top-nav {
        padding: 10px 0px;
    }

    .header .title img {
        width: 20px;
    }

    .buttons svg {
        width: 15px;
    }

}

@media screen and (max-width: 650px) {
    .top-nav svg:first-child {
        width: 20px;
    }

    section#content .logo span {
        display: none;
    }

    .table .header {
        display: block;
    }

    .table .header .title {
        margin-bottom: 20px;
    }

    .home .table .header .title {
        margin: auto;
        margin-left: 0px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    table td {
        display: flex !important;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .table .td-center {
        text-align: center;
    }

    .table td[data-label="Check In"],
    .table td[data-label="Check Out"] {
        text-align: center;
    }

    .table td[data-label="Check In"]:before,
    .table td[data-label="Check Out"]:before {
        text-align: center;
    }

    .eye {
        margin: auto !important;
    }

    .preview-image .content {
        width: 100% !important;
    }

    .table .td-center.buttons {
        display: flex;
        flex-direction: column;
    }

    .table .td-center.buttons::before {
        text-align: center !important;
    }

    .table .buttons a:first-child {
        margin: 0px;
    }

    .pulse {
        margin: unset;
    }

    section#content .top-nav {
        padding: 20px 0px;
    }

}

@media screen and (max-width: 440px) {
    .buttons.add-new {
        flex-direction: column;
        gap: 10px !important;
    }
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger p {
    color: #721c24 !important;
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-success p {
    color: #155724 !important;
}

.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 96%;
    background-position-y: 50%;
}

.eye {
    margin-left: 5px;
    cursor: pointer;
    max-width: 20px;
}


.clock {
    font-weight: 600;
}

.loading {
    display: inline-block;
    min-height: 20px;
    min-width: 20px;
    border: 2px solid var(--background-color);
    border-bottom: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: loadingCircle 1s linear infinite;
    margin-right: 20px;
}

.loading.delete {
    min-height: 12px;
    min-width: 12px;
    margin: unset;
    border: 2px solid var(--background-color);
    border-bottom: 2px solid var(--primary-color);
}

span.btn.delete-btn {
    display: none;
    margin-right: 20px;
}

@keyframes loadingCircle {
    0% {
        rotate: 0deg;
    }

    100% {
        rotate: 360deg;
    }

}