* {
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    /* font-size: 16px; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: #F5F0EB;
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    padding-bottom: 5rem; /* Add padding to separate content from footer */
}

.content {
    min-height: 100%;
    min-width: 100%;
    /* Ensure the container takes at least 100% of viewport height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute space between header, content, and footer */
}
/* **************  ************** */
/* Add this to your existing CSS styles */
.footer {
    position: relative;
    background-color: var(--zk-card2); /* solid colour: the old background image is not part of the repository */
    padding: 15px 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    padding-left: 1rem;
    padding-right: 1rem;
}
.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--zk-card2);
    /* Adjust the overlay color and opacity */
}

.footer-content {
    text-align: center;
    color: gainsboro;
    font-size: 0.85rem;
    padding-top: 5px;
}

@media (min-width: 768px) {
    .footer-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        font-size: 0.75rem;
    }
}

footer a {
    color: inherit;
    text-decoration: none;
}
/* **************  ************** */

.flash-message{
    animation: fadeOut 10s forwards;
    padding-left: 10px;
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}
/* Styling for Success Messages */
.flash-success {
    color: #1c7227;
    background-color: #d7f8d9;
    border-color: #caf5c6;
}

/* Styling for Error Messages */
.flash-danger,
.flash-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Styling for Info Messages */
.flash-info {
    animation: fadeOut 30s forwards;
    color: #221c72;
    background-color: #d7d9f8;
    border-color: #c8c6f5;
    text-align: center;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    animation: fadeOut 10s forwards;
    /* Fade out after 5 seconds */
}

.alert-success {
    color: #1c7227;
    background-color: #d7f8d9;
    border-color: #caf5c6;
    animation: fadeOut 10s forwards;
    /* Fade out after 5 seconds */
}

/* Keyframes animation for fading out */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    padding-left: 20px;
    font-size: 0.9em;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    
}
.invalid-feedback::before {
    content: "\2022";
    color: #dc3545;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;

}

/* **************  ************** */

.dark-bg-color {
    background-color: var(--zk-card2);

}

.navbar .container::before {
    /* Set the image as a background for the pseudo-element with transparency */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/bg3.jpg');
    background-repeat: repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.navbar-toggler,.nav-item{
    z-index: 2;
}

.light-bg-color {
    background-color: transparent;
}

.site-logo{
    width: 128px;
}

.navbar .nav-link {
    color: white;
    font-size: 18px;
}

.navbar .nav-item .nav-link.user,
.navbar .nav-item .nav-link.nav-user {
    color: var(--zk-gold-hi);
    font-weight: bold;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: var(--zk-gold);
    color: var(--zk-on-gold);
    /* Set your desired color here */
}

.navbar .nav-item .dropdown-menu .dropdown-item span{
    vertical-align: bottom;
}

.navbar .nav-item .dropdown-menu .separator {
    content: "";
    border-left: 1px solid #ccc;
    height: 18px;
    margin: 0 5px;
    display: inline-block;
}

/* **************  ************** */

.btn-primary {
    background-color: var(--zk-gold);
    border-color: var(--zk-gold-deep);
    color: var(--zk-on-gold);
}

.btn-primary.btn-block {
    width: 100%;
    margin-top: 20px;
}

.btn-secondary {
    background-color: var(--zk-card2);
    border-color: var(--zk-gold);
    color: var(--zk-ink);
    min-width: 100px;
}

.btn-secondary:hover {
    background-color: var(--zk-gold);
    border-color: var(--zk-gold-deep);
    color: var(--zk-on-gold);
}
/* **************  ************** */

.table-container {
    display: flex;
    flex-direction: column;
    min-width: 100%;
}

.table-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

.table-header {
    font-weight: bold;
    width: 40%;
}

.table-data {
    width: 60%;
}



.sub_table_title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--zk-gold-hi);
}

/* **************  ************** */

.mandatory:after {
    content: "*";
    color: red;
    margin-left: 5px;
    /* Adjust margin for spacing */
}

/* **************  ************** */
.modal-header{
    background-color: var(--zk-gold);
    display: flex;
    flex-direction: row;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: .8rem;
    border-top-right-radius: .8rem;
    height: 50px;
    align-items: center;
}

.modal-title{
    padding-left: 0.5rem;

}

/* Translucent Background */
.modal-content {
    background-color: rgba(255, 255, 255, 0.719);
    border: none;
    border-radius: 0.8rem;
    font-size: large;
    font-weight: bold;

}

.modal-body{
    padding-left: 2rem;
    padding-right: 2rem;
}

.modal-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.modal hr{
    border-top: 1px solid var(--zk-gold);
    width: 100%;
}

/* Center modal on small screens */
@media (max-width: 767px) {
    .modal-dialog.modal-dialog-centered {
        max-width: 90%;
        margin: auto;
    }
}

/* Grid container for full-width tables */
.grid-container {
    width: 100%;
    overflow-x: auto; /* Fallback for very wide content */
}

.grid-container .table {
    width: 100%;
    table-layout: fixed;
}

.grid-container .table th,
.grid-container .table td {
    word-wrap: break-word;
    white-space: normal !important; /* Ensure wrapping */
    text-align: center;
}

/* Card for Forms */
.translucent-card {
    background-color: var(--zk-card);
    border-radius: 0.75rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 1rem 5rem;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--zk-card2);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--zk-card2);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.btn-hero {
    display: inline-block;
    background: var(--zk-gold);
    color: var(--zk-on-gold);
    border: 2px solid var(--zk-gold);
    border-radius: 0.75rem;
    padding: 0.875rem 2.25rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-hero:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}

/* Amenities Section */
.amenities-section {
    padding: 2rem 1rem;
    background: var(--zk-card);
    border-bottom: 1px solid #EDE8E2;
}
.amenity-item {
    text-align: center;
    padding: 1rem;
}
.amenity-item i {
    font-size: 1.25rem;
    color: var(--zk-gold-hi);
    margin-bottom: 0.5rem;
    display: block;
}
.amenity-item h5 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B5E57;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Form Fieldsets */
.form-fieldset {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--zk-card);
}
.form-fieldset legend {
    font-size: 1rem;
    font-weight: 600;
    color: var(--zk-gold);
    padding: 0 0.5rem;
    width: auto;
    margin-bottom: 0.5rem;
}


/* Mobile pass (M1): keep hero and footer from collapsing, give content side padding */
.hero-section, .amenities-section { flex-shrink: 0; }
.navbar-brand .brand-text { color: #fff; font-weight: 700; }
@media (max-width: 576px) {
    .hero-section { padding: 3rem 1rem 2.5rem; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-content p { font-size: 1rem; }
    .content-wrapper { padding-left: 1rem; padding-right: 1rem; }
}

/* Mobile tables: scroll sideways instead of wrapping each letter */
@media (max-width: 768px) {
    .content-wrapper table, .content-wrapper .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .content-wrapper th, .content-wrapper td {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .content-wrapper .table-responsive { overflow-x: auto; }
}

/* Card rows on phones for tables marked .table-cards: every cell shows its label, actions stay on screen */
@media (max-width: 576px) {
    .content-wrapper table.table-cards { display: block; overflow-x: visible; }
    .table-cards thead { display: none; }
    .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr { border: 1px solid #dee2e6; border-radius: 0.5rem; margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; background: var(--zk-card); }
    .table-cards td { border: 0 !important; white-space: normal !important; padding: 0.15rem 0; display: flex; justify-content: space-between; }
    .table-cards td[data-label]::before { content: attr(data-label); font-weight: 600; margin-right: 1rem; color: #555; }
    .table-cards td[data-label=""]::before { content: none; }
    .table-cards td[data-label=""] { justify-content: flex-end; padding-top: 0.5rem; }
}

