@import "./_normalize.css";
@import "./_header-base.css";
@import "./_table.css";

@font-face {
    font-family: "Galyon Bold";
    font-style: bold;
    src:
        local("Galyon"),
        local("Galyon-Bold"),
        url(../assets/fonts/galyon-bold.woff) format("woff"),
        url(../assets/fonts/galyon-bold.otf) format("otf");
}

@font-face {
    font-family: "Galyon Regular";
    font-style: regular;
    src:
        local("Galyon"),
        local("Galyon-Regular"),
        url(../assets/fonts/galyon-regular.woff) format("woff");
}

a {
    text-decoration: none;
}

body {
    /* height: 100vh; */
    min-height: 100%;
    background: #59c4be;
    margin: 0;
}

.wrapper-content__login {
    display: none;
    /* height: 100vh; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#wrapperLogin {
    height: 100vh;
}

#login-form {
    flex: 1 0 auto;
}
/* .container {
    background-color: #000;
    margin: 25px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
} */
.logos-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo__login {
    width: 70px;
}

.logo-client {
    width: 70px;
    margin: 0 auto;
}

.title {
    max-width: 550px;
    font-family: "Galyon Regular", serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}
.oiio-title {
    font-family: "Galyon Regular", serif;
    /* font-weight: 900; */
    color: #59c4be;
}
.login-form-group {
    margin-bottom: 15px;
}
.login-form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.btn__login {
    background-color: #8067ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-success {
    color: #59c4be;
    width: 190px;
    height: 35px;
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
}

.btn__login:hover {
    background-color: #aea2e9;
}

.btn-default {
    width: auto;
}

.splash-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-color: #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.splash-logo {
    font-size: 3rem;
    font-weight: bold;
    animation: shrinkFade 3s ease forwards;
}

@keyframes shrinkFade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.2);
        opacity: 0;
    }
}

.main-content__login {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    background-color: #000;
    margin: 25px;
    padding: 20px;
    border-radius: 8px;
    border-top-left-radius: 10em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.main-content-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;
    width: 100%;
    background: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jumbotron {
    padding: 0;
    margin-top: 197px;
    margin-bottom: 15px;
    width: 100%;
}

.jumbotron h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    margin: 0;
}

.jumbotron p {
    font-size: 1.5rem;
    margin-bottom: 0;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.3rem, 5vw, 2rem);
}

.glyphicon {
    top: 0;
}

.glyphicon-log-out {
    top: 3px;
}

.col-md-12 {
    padding: 0;
}

.card,
#createtable_container,
#updatetable_container,
#createuser_container,
#updateuser_container,
#createzone_container,
#updatezone_container,
#createshift_container,
#updateshift_container,
#createoccupancy_container,
#updateoccupancy_container {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    overflow: auto;
}

#createoccupancy_container .form {
    margin-left: 10px;
}

.card .col-md-12 {
    margin-bottom: 0;
    padding: 0;
}

.row {
    margin: 0 10px 20px;
}

.col-md-12 h3 {
    margin: 10px 0;
}

.alert {
    border: 2px solid #59c4be;
    box-shadow:
        0 0 20px rgba(247, 248, 249, 0.5),
        /* First glow layer */ 0 0 30px rgba(247, 248, 249, 0.3),
        /* Second glow layer */ 0 0 40px rgba(247, 248, 249, 0.2); /* Third glow layer */
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    margin-top: 100px;
}

.alert-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.footer-guest {
    width: 100%;
    flex-shrink: 0;
    /* margin-bottom: 1em; */
    /* background: #59c4be; */
    padding: 10px;

    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: 2rem; */
    color: #fff;
    font-family: "Galyon Regular", sans-serif;
    font-weight: 500;
}

@media (max-width: 940px) {
    .container {
        width: 835px; /* or whatever fits well visually */
        margin: 0 auto 0 45px;
    }
    .alert {
        max-width: 300px;
    }
}

@media (max-width: 960px) {
    .jumbotron {
        margin-top: 145px;
    }
}

@media (min-width: 941px) {
    .container {
        width: 100%;
        margin: 0 auto; /* Keep it centered just in case */
    }
}

@media (max-width: 540px) {
    .jumbotron {
        margin-top: 120px;
        text-align: center;
    }
    .jumbotron p {
        font-size: 1.5rem;
    }
    .main-content .container {
        width: calc(100% - 45px);
        margin-left: 45px;
    }
    .jumbotron .container {
        width: calc(100% - 45px);
        margin-left: 45px;
    }
    .table-responsive {
        width: 100%;
    }
    .table-responsive > .table > tbody > tr > td {
        white-space: wrap;
    }
    .footer-dashboard {
        width: calc(100% - 45px);
        margin-left: 45px;
    }
}

/* Advanced */
.zone-block {
    border: 1px solid #ccc;
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;

    & h3 {
        margin-top: 0;
        background: #b0e5f5;
        text-align: center;
    }
}
.table-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.table-item {
    background: #f0f0f0;
    padding: 6px 10px;
    border-radius: 4px;
}
.table-item input {
    margin-right: 5px;
}
.zone-editor {
    padding: 10px;
    margin-bottom: 15px;
}

/* Occupancies */
.zone-block {
    margin-bottom: 20px;
}

.table-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.table-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 5px;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-card.occupied {
    background-color: #ffeaea;
}

.table-card.available {
    background-color: #eaffea;
}

.table-click {
    font-weight: bold;
    font-size: 15px;
}

.guest-display {
    font-size: 12px;
    margin-left: 5px;
    color: #555;
    background: #fff;
    border-radius: 4px;
    padding: 0px 3px;
}

#guest-count {
    border: 1px solid #555;
    border-radius: 5px;
    text-align: center;
}

#confirm-checkin,
#cancel-checkin,
.checkout-btn {
    background-color: #d9534f;
    color: white;
    padding: 4px 8px;
    font-size: 0.8em;
    border: none;
    border-radius: 4px;
    margin-top: 6px;
}

#confirm-checkin {
    background-color: #5cb85c;
}

#cancel-checkin {
    background-color: #9e9e9e;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}
