/* ============================================================
GLOBAL VARIABLES
============================================================ */
:root {
--brand-title: #185144;
--brand-text: #2E2E2E;
--brand-background: #F2F2F2;
--brand-header-background: #8F9F98;
}

/* ============================================================
FONT IMPORTS
============================================================ */
@font-face {
font-family: 'DidactGothic';
src: url('Resources/DidactGothic.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'OpenSans';
src: url('Resources/OpenSans.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'MarckScript';
src: url('Resources/MarckScript.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

/* ============================================================
GLOBAL TEXT STYLING (UPDATED)
============================================================ */
body {
    padding-top: 60px;   /* height of the menu */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin: 0;
    background: #f2f2f2;
    font-family: 'OpenSans', sans-serif;
    color: var(--brand-text);
}


/* All headings use brand-title */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-title);
    margin: 0;
    padding: 0;
}


/* Heading font families */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DidactGothic', sans-serif;
}

.namedtitle {
	font-family: 'MarckScript', cursive;
}

/* General text elements */
a, div, p {
    font-family: 'DidactGothic', sans-serif;
    color: var(--brand-text);
    margin: 0;
    padding: 0;
	font-size: 18px;
}



.container {
width: 98%;
margin: 1% auto;
	background: #f2f2f2;
}

.title-generic {
font-size: 60px;
font-weight: bold;
}

.title-sub-generic {
font-size: 32px;
font-weight: bold;
}

.body-generic {
font-size: 20px;

}

/* ============================================================
NAVIGATION LINKS (UPDATED COLOURS)
============================================================ */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    display: flex;
    justify-content: space-evenly;
    align-items: center;

    border-bottom: 1px solid var(--brand-title);
    background-color: var(--brand-header-background);
    height: 60px;
}


.menu-hide {
display: none;
}

.error {
color: #FF0000;
}

.nav-links a {
text-decoration: none;
color: var(--brand-title);
font-size: 18px;
font-weight: bold;
}

.user-welcome {
display: inline;
font-size: 18px;
color: var(--brand-title);
margin: 0;
}

/* ============================================================
PAGE CONTENT
============================================================ */
.page-content {
width: 90%;
margin: 5% auto;
font-size: 20px;
color: var(--brand-title);
align-items: center;
text-align: center;
}

.footeraddress {
display: block;
font-size: 18px;
text-align: center;
}

.header-block {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto;
gap: 20px;
width: 100%;
}

.header-main {
grid-column: 1;
grid-row: 1;
font-size: 72px;
text-align: center;
}

.header-sub {
grid-column: 1;
grid-row: 2;
font-size: 24px;
align-items: center;
text-align: center;
}

.header-left {
width: 500px;
}

.header-sub-sub {
align-items: center;
}

.header-right {
grid-column: 2;
grid-row: 1 / span 2;
width: 100%;
height: 400px;
overflow: hidden;
position: relative;
align-items: center;
}

.header-sub-details {
display: flex;
grid-template-columns: 1fr 1fr;
gap: 20px;
align-items: center;
}

.header-sub-date {
grid-column: 1;
font-size: 32px;
text-align: center;
align-items: center;
}

.header-sub-location {
grid-column: 2;
font-size: 32px;
text-align: center;
align-items: center;
}

image-wbm {
width: 50%;
height: auto;
}

image-bubbles {
border: 200px solid transparent;
}

.details-block {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, auto);
gap: 1rem;
width: 100%;
}

.details-block > div {
padding: 1rem;
}

.details-block-sectiontl {
display: flex;
justify-content: center;
}

.details-block-sectiontc {
display: flex;
justify-content: center;
}

.details-block-sectiontr {
display: flex;
justify-content: center;
}

.details-block-sectionbl {}

.details-block-sectionbc {}

.details-block-sectionbr {}

.details-block-image {
width: 80%;
height: auto;
}
/* ================================
ADD/EDIT PAGE – LIGHT STRUCTURAL STYLING
================================ */

.addedit-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
border: 1px solid var(--brand-title);
border-radius: 8px;
overflow: hidden;
margin-bottom: 20px;
}

.addedit-table th {
background: var(--brand-title);
color: white;
padding: 10px;
border: 1px solid var(--brand-title);
text-align: left;
}

.addedit-table td {
padding: 10px;
border: 1px solid var(--brand-title);
}

.addedit-notesblock {
border: 1px solid var(--brand-title);
border-radius: 8px;
overflow: hidden;
margin-bottom: 10px;
}

.addedit-notesheader {
background: var(--brand-title);
color: white;
padding: 10px;
}

.addedit-notesblock textarea {
width: 100%;
padding: 10px;
border: none;
border-top: 1px solid var(--brand-title);
resize: vertical;
}

.addedit-order-btn {
padding: 6px 10px;
border-radius: 4px;
background: var(--brand-title);
color: white;
border: none;
cursor: pointer;
margin: 0 2px;
}

.addedit-order-btn:hover {
opacity: 0.85;
}

.addedit-delete-btn {
padding: 6px 10px;
border-radius: 4px;
background: #8B0000;
color: white;
border: none;
cursor: pointer;
}

.addedit-delete-btn:hover {
opacity: 0.85;
}

.addedit-left td {
text-align: left;
}

.addedit-displayname {
width: 95%;
}

.addedit-rsvp-column input {
width: 100%;
margin-bottom: 6px;
}

.addedit-rsvp-small {
width: 40px;
}

.addedit-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.45);
display: flex;
justify-content: center;
align-items: center;
z-index: 999;
}

.addedit-modal-box {
background: white;
padding: 20px;
border-radius: 8px;
width: 320px;
text-align: center;
border: 2px solid #4a7a4c;
}

.addedit-modal-buttons {
margin-top: 20px;
display: flex;
justify-content: space-between;
}

.addedit-modal-cancel,
.addedit-modal-confirm {
padding: 8px 16px;
border-radius: 6px;
border: none;
cursor: pointer;
font-family: inherit;
font-size: 1rem;
}

.addedit-modal-cancel {
background: #ccc;
}

.addedit-modal-confirm {
background: #c0392b;
color: white;
}

.addedit-disabled {
opacity: 0.35;
color: #888;
cursor: default;
pointer-events: none;
text-decoration: none;
}

/* ================================
POPUP OVERLAYS
================================ */

.wed-popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.45);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

.wed-popup-box {
background: #ffffff;
padding: 25px 35px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0,0,0,0.25);
text-align: center;
max-width: 350px;
width: 90%;
}

.wed-popup-title {
margin-top: 0;
font-size: 1.4rem;
font-weight: 600;
color: var(--brand-title);
}

.wed-popup-message {
margin: 10px 0 20px 0;
font-size: 1rem;
color: var(--brand-text);
}

.wed-popup-button {
padding: 8px 20px;
border: none;
background: #4CAF50;
color: #ffffff;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
}

.wed-popup-button:hover {
background: #45a049;
}

.wedparty-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.45);
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;
}

.wedparty-modal-box {
background: #fff;
padding: 25px 35px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0,0,0,0.25);
text-align: center;
max-width: 380px;
width: 90%;
}

.wedparty-modal-title {
margin-top: 0;
font-size: 1.4rem;
font-weight: 600;
color: var(--brand-title);
}

.wedparty-modal-message {
margin: 10px 0 20px 0;
font-size: 1rem;
color: var(--brand-text);
}

.wedparty-modal-buttons {
display: flex;
justify-content: center;
gap: 15px;
}

.wedparty-btn-cancel {
padding: 8px 20px;
border: none;
background: #777;
color: #fff;
border-radius: 5px;
cursor: pointer;
}

.wedparty-btn-cancel:hover {
background: #666;
}

.wedparty-btn-delete {
padding: 8px 20px;
border: none;
background: #d9534f;
color: #fff;
border-radius: 5px;
cursor: pointer;
}

.wedparty-btn-delete:hover {
background: #c9302c;
}

.sb {
border: 2px solid #000000;
}

.switch {
position: relative;
display: inline-block;
width: 12px;
height: 24px;
left: 0px;
}

.switch input {
opacity: 0;
width: 0;
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .3s;
border-radius: 24px;
}

.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .3s;
border-radius: 50%;
}

input:checked + .slider {
background-color: #4CAF50;
}

input:checked + .slider:before {
transform: translateX(26px);
}

.form-row {
display: flex;
align-items: center;
margin-bottom: 12px;
}

.form-row label {
width: 180px;
font-weight: 600;
color: var(--brand-title);
}

.form-row .switch {
flex: 0 0 auto;
width: 50px;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form select,
form textarea {
font-family: 'OpenSans', sans-serif;
font-size: 16px;
color: var(--brand-text);
}

button[type="submit"] {
font-family: 'DidactGothic', sans-serif;
font-size: 18px;
padding: 10px 20px;
background-color: var(--brand-title);
color: white;
border: 1px solid var(--brand-title);
border-radius: 6px;
cursor: pointer;
}

button[type="submit"]:hover {
background-color: white;
color: var(--brand-title);
border: 1px solid var(--brand-title);
}

.rsvp-select-box {
width: 60%;
margin: 40px auto;
padding: 25px;
border: 2px solid var(--brand-title);
border-radius: 12px;
background-color: var(--brand-background);
text-align: center;
}

.rsvp-select-box h2 {
margin-bottom: 20px;
font-size: 32px;
color: var(--brand-title);
}

.rsvp-select-box select,
.rsvp-select-box button {
margin-top: 10px;
}

/* -----------------------------------------
WELCOME + GENERAL PAGE STRUCTURE
----------------------------------------- */
.welcome-wrapper {
width: 80%;
margin: 40px auto;
text-align: center;
}

.welcome-wrapper h1 {
margin-bottom: 10px;
}

.welcome-wrapper p {
margin: 6px 0;
}


/* -----------------------------------------
GUEST TABLES
----------------------------------------- */
.guest-table {
width: 80%;
margin: 0 auto;
border: 1px solid var(--brand-header-background);
border-radius: 10px;
overflow: hidden;
border-collapse: separate;
background: var(--brand-header-background);
}

.guest-table td {
background: white;
}

.guest-header th {
background: var(--brand-header-background);
color: var(--brand-text);
padding: 10px;
text-align: left;
}

.half-col {
width: 50%;
vertical-align: top;
}

.inner-table {
width: 100%;
border: none;
}

.inner-table td,
.inner-table th {
border: none;
padding: 6px;
background: white;
}

.label-col {
width: 40%;
}

.input-col {
width: 60%;
}

textarea {
width: 80%;
resize: vertical;
padding: 5px;
border: 1px solid #ccc;
border-radius: 4px;
}

/* -----------------------------------------
BUTTONS
----------------------------------------- */
.disabled-btn {
opacity: 0.5;
cursor: not-allowed;
pointer-events: auto;
}

/* -----------------------------------------
VALIDATION HIGHLIGHT
----------------------------------------- */
.invalid {
border: 2px solid red !important;
animation: glow 0.6s ease-in-out infinite alternate;
}

@keyframes glow {
from { box-shadow: 0 0 4px red; }
to   { box-shadow: 0 0 12px red; }
}

/* -----------------------------------------
RSVP OUTCOME
----------------------------------------- */
.rsvp-outcome-wrapper {
width: 80%;
font-family: 'OpenSans', sans-serif;
font-size: 10pt;
color: var(--brand-text);
text-align: left;
}

.rsvp-outcome-wrapper h2 {
font-size: 18pt;
font-weight: bold;
margin-bottom: 20px;
text-align: left;
}

.rsvp-outcome-entry {
margin-bottom: 20px;
line-height: 1.4;
}

.rsvp-summary-table {
width: 80%;
border-collapse: collapse;
font-family: 'OpenSans', sans-serif;
font-size: 10pt;
margin-bottom: 20px;
}

.rsvp-summary-table th,
.rsvp-summary-table td {
border: 1px solid #000;
padding: 6px 10px;
text-align: left;
}

.rsvp-summary-table th {
font-weight: bold;
background-color: #f2f2f2;
}

/* -----------------------------------------
MENU DISPLAY
----------------------------------------- */
.menu-display-wrapper {
width: 100%;
max-width: 900px;
margin: 0 auto;
font-family: 'DidactGothic', sans-serif;
color: var(--brand-title);
text-align: center;
}

.menu-display-wrapper h1 {
margin-top: 40px;
margin-bottom: 15px;
}

.menu-display-wrapper h2 {
margin-top: 20px;
margin-bottom: 10px;
}

.menu-item-block {
margin-bottom: 15px;
line-height: 1.4;
}

.menu-separator {
text-align: center;
color: var(--brand-title);
margin: 10px 0 25px 0;
letter-spacing: 0px;
}

.menu-type-divider {
width: 80%;
margin: 40px auto 20px auto;
border-top: 2px solid var(--brand-title);
}
.dietary-key-wrapper {
margin-top: 50px;
text-align: center;
}

.dietary-key {
width: 80%;
max-width: 600px;
margin: 0 auto;
}

.dietary-key-item {
display: grid;
grid-template-columns: 1fr 120px 1fr;
align-items: center;
margin: 6px 0;
}

.dietary-key-item .dietary-tag {
justify-self: end;
}

.dietary-key-text {
justify-self: start;
text-align: left;
white-space: nowrap;
color: var(--brand-title);
}

.dietary-tag {
display: inline-block;
background-color: var(--brand-title);
color: var(--brand-background);
padding: 2px 10px;
margin: 3px;
border-radius: 12px;
font-size: 0.85em;
letter-spacing: 0.5px;
}

.user-table {
width: 90%;
margin: 30px auto;
border-collapse: collapse;
table-layout: fixed;
}

/* ================================
MAIN USER TABLE
================================ */

.guest-user-table {
width: 90%;
margin: 30px auto;
border-collapse: collapse;
table-layout: fixed;
}

.guest-user-table th {
background-color: var(--brand-title);
color: white;
padding: 8px;
}

.guest-user-table td {
padding: 8px;
}

/* ================================
SUMMARY ROW
================================ */

.guest-summary {
cursor: pointer;
font-weight: bold;
padding: 10px 0;
list-style: none;
display: flex;
align-items: center;
gap: 8px;
font-size: 16px;
}

.guest-summary::-webkit-details-marker {
display: none;
}

/* ================================
ARROW ICON
================================ */

.guest-arrow {
display: inline-block;
transition: transform 0.25s ease;
width: 0;
height: 0;
border-left: 6px solid var(--brand-title);
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
}

.guest-details[open] .guest-arrow {
transform: rotate(90deg);
}

/* ================================
SUBTABLE
================================ */

.guest-subtable {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
margin-top: 10px;
}

.guest-subtable th {
background-color: var(--brand-title);
color: white;
padding: 6px;
border: 1px solid var(--brand-title);
}

.guest-subtable td {
background-color: white;
padding: 6px;
border: 1px solid var(--brand-title);
}

.guest-details {
padding: 5px 0;
}

/* ============================================================
ADMIN MENU — TABLE STYLING
============================================================ */

.admin-menu-table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
border: 1px solid var(--brand-background);
}

.admin-menu-table th,
.admin-menu-table td {
padding: 10px;
border: 1px solid var(--brand-title);
}

.admin-menu-table th {
background: var(--brand-title);
color: var(--brand-background);
text-align: left;
}

.admin-menu-table td {
background: var(--brand-background);
color: var(--brand-title);
}

.admin-menu-actions-header {
width: 140px;
}

.admin-menu-actions-cell {
white-space: nowrap;
}

/* ============================================================
ADMIN MENU — BUTTONS
============================================================ */

.admin-menu-button {
display: inline-block;
background: var(--brand-title);
color: var(--brand-background);
padding: 10px 18px;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
margin-bottom: 15px;
}

.admin-menu-button:hover {
background: #45a049;
}

/* ============================================================
ADMIN MENU — FORM LAYOUT
============================================================ */

.admin-menu-form {
max-width: 600px;
}

.admin-menu-form label {
display: block;
font-weight: bold;
margin-bottom: 4px;
color: var(--brand-title);
}

.admin-menu-form input[type="text"],
.admin-menu-form select,
.admin-menu-form textarea {
width: 100%;
padding: 8px;
border: 1px solid #aaa;
border-radius: 4px;
font-size: 15px;
font-family: 'OpenSans', sans-serif;
color: var(--brand-text);
}

.admin-menu-form textarea {
min-height: 80px;
}

.admin-menu-spacer {
height: 18px;
}

/* ============================================================
ADMIN MENU — DELETE CONFIRM MODAL
============================================================ */

.admin-menu-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.45);
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;
}

.admin-menu-modal-box {
background: #fff;
padding: 25px 35px;
border-radius: 10px;
max-width: 380px;
width: 90%;
text-align: center;
box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.admin-menu-modal-title {
margin-top: 0;
font-size: 1.4rem;
font-weight: 600;
color: var(--brand-title);
}

.admin-menu-modal-message {
margin: 10px 0 20px 0;
font-size: 1rem;
color: var(--brand-text);
}

.admin-menu-modal-buttons {
display: flex;
justify-content: center;
gap: 15px;
}

.admin-menu-btn-cancel {
background: #777;
color: #fff;
padding: 8px 20px;
border-radius: 5px;
border: none;
cursor: pointer;
}

.admin-menu-btn-cancel:hover {
background: #666;
}

.admin-menu-btn-delete {
background: #d9534f;
color: #fff;
padding: 8px 20px;
border-radius: 5px;
border: none;
cursor: pointer;
}

.admin-menu-btn-delete:hover {
background: #c9302c;
}

/* ============================================================
ADMIN MENU — SUCCESS MODAL
============================================================ */

.admin-menu-success-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.45);
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;
}

.admin-menu-success-box {
background: #fff;
padding: 25px 35px;
border-radius: 10px;
max-width: 380px;
width: 90%;
text-align: center;
box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.admin-menu-success-title {
margin-top: 0;
font-size: 1.4rem;
font-weight: 600;
color: var(--brand-title);
}

.admin-menu-success-message {
margin: 10px 0 20px 0;
font-size: 1rem;
color: var(--brand-text);
}

.admin-menu-success-button {
background: #4CAF50;
color: #fff;
padding: 8px 20px;
border-radius: 5px;
border: none;
cursor: pointer;
}

.admin-menu-success-button:hover {
background: #45a049;
}

[class*="generic"] {
    color: red;
    background-color: blue;
}


/* -----------------------------------------
MODAL POPUP
----------------------------------------- */

.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}

.modal-box {
background: white;
padding: 25px;
border-radius: 8px;
width: 300px;
text-align: center;
animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
from { opacity: 0; transform: scale(0.9); }
to   { opacity: 1; transform: scale(1); }
}


/* OVERLAY */
.email-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* MODAL BOX */
.email-popup-box {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 480px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-align: center;
}

/* CLOSE ICON */
.email-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #444;
    font-weight: bold;
}

.email-popup-close:hover {
    color: #000;
}

/* BUTTONS */
.email-popup-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.email-popup-button {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

/* UPDATE NOW */
.email-popup-update {
    background: var(--brand-title);
    color: #fff;
}

.email-popup-update:hover {
    background: #0f3a31;
}

/* LATER */
.email-popup-later {
    background: #ccc;
    color: #333;
}

.email-popup-later:hover {
    background: #bbb;
}




@media (max-width: 1000px) {

    .nav-links {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: var(--brand-header-background);
        border-bottom: 1px solid var(--brand-title);
        padding: 10px 0 15px 0;
        height: auto;
    }

    .nav-links a {
        margin: 5px 0;
        font-size: 20px;
        text-decoration: none;
        color: var(--brand-title);
        font-weight: bold;
    }

    body {
        padding-top: 0;
    }

    .page-content {
        text-align: center;
        width: 90%;
        margin: 5% auto;
    }

    .details-block {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 1rem;
        width: 100%;
    }

    .details-block-sectiontl { order: 1; }
    .details-block-sectiontc { order: 3; }
    .details-block-sectiontr { order: 5; }
    .details-block-sectionbl { order: 2; }
    .details-block-sectionbc { order: 4; }
    .details-block-sectionbr { order: 6; }

    .guest-row {
        display: block;
    }

    .half-col {
        width: 100%;
        display: block;
    }
}
