/* ==========================================
   NAUTICAL / SPRING BOAT PARTY STYLESHEET
   ========================================== */

/* 1. GLOBAL VARIABAL PALETTE */
:root {
    --primary-blue: #1d3557;       /* Deep Navy Boat Hull */
    --accent-teal: #457b9d;        /* Mid-tone slate blue */
    --soft-seafoam: #f0f4f8;       /* Very soft frosted blue-gray */
    --text-dark: #232732;          /* Sharp off-black */
    --white: #ffffff;
    --celebratory-gold: rgb(174, 134, 52);
    --card-bg: rgba(255, 255, 255, 0.92); /* Clean crisp white card layer */
    --background-overlay: rgba(234, 241, 250, 0.75); /* Frosted glass wrapper layer */
}

/* 2. BASE RESET & BODY */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lato", sans-serif; /* Classic, elegant typeface for a milestone 90th */
    color: var(--text-dark);
    line-height: 1.6;
    padding: 10px;

    background-image: url('water-background.jpg');
    background-attachment: fixed; /* KEEP THE IMAGE STILL WHEN SCROLLING */
    background-position: center;
    background-repeat: no-repeat; /* PREVENT THE IMAGE FROM REPEATING LIKE A GRID */
    background-size: cover;  /* 5. STRETCH THE IMAGE TO COVER THE WHOLE SCREEN */

}

.wrapper {
    background-color: var(--background-overlay); 
    border-top: 8px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 15px;
    margin: 1rem auto;
    max-width: 1200px;
    -webkit-backdrop-filter: blur(10px); /* Forces Safari and iOS Chrome engines to behave */
    backdrop-filter: blur(10px); /* Creates a stunning modern frosted-glass effect over your water background */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* 3. LAYOUT CONTAINER */
.container {
    max-width: 750px;
    margin: 2.2rem auto;
    background: var(--background-overlay);
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(29, 53, 87, 0.08); /* Soft blue-tinted shadow */
    border-top: 8px solid var(--primary-blue); /* Anchor stripe at the top */
    position: relative;
}

.hidden {
    display: none;
}

/* 4. TYPOGRAPHY */
h1 {
   font-family: "The Nautigal", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: var(--text-dark);
    font-size: clamp(3.5rem, 12vw, 6rem);
    text-transform: none;
    line-height: 0.8;
    padding-top: 1.8rem;
    padding-bottom: 1.1rem;
}

h2 {
    font-family: "The Nautigal", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 8vw, 4rem);
    text-transform: none;
    text-align: center;
}

h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    border-bottom: 2px solid var(--celebratory-gold);
    padding-bottom: 0.2rem;
}

h4 {
    color: var(--primary-blue);
    font-variant: small-caps;
    font-size: 1.3rem;
}

p {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-dark);
}

/* #region HEADER */
.header {
    padding: 1rem;
    text-align: center;
}

.header p{
    font-size: 1.2rem;
}

.header p.info {
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-top: 1.5rem;
}

.header p.invite {
    font-family: "The Nautigal", serif;
    font-size: 3rem;
    line-height: 0.8;
}

.anchor {
    max-width: 300px;
    width: 200px;
    height: auto;
}

/* #endregion */

/* #region EVENT DETAILS */
.event-details {
    background-color: transparent;
    border-top: 6px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.event-details p{
    font-size: 1.1rem;
}

.event-details p.info {
    text-transform: uppercase;
}

.event-details p.invite {
    font-family: "The Nautigal", serif;
    font-size: 3rem;
}

.event-details h1 {
    font-family: "The Nautigal", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: var(--text-dark);
    font-size: clamp(3.5rem, 12vw, 6rem);
    text-transform: capitalize;
    text-align: center;
}

.info-card {
    background-color: rgba(240, 244, 248, 0.1);
    position: relative;
    box-sizing: border-box;
    border-radius: 24px;
    padding: 0.7rem;
    margin: 0.2rem;
    flex-direction: column;
    border: 1px solid var(--celebratory-gold);
}

.info-card h4 {
    display: inline;
}

.info-card p {
    display: inline;
    margin-left: 6px;
}

/* 9. GUEST BULLET LIST */

.guest-list {
    max-width: 500px;
    background: var(--background-overlay);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(29, 53, 87, 0.08); /* Soft blue-tinted shadow */
    border-top: 8px solid var(--accent-teal); 
    position: relative;
}

/* #region 📜 CUSTOM MINI SCROLLBAR */

/* For modern browsers (Chrome, Safari, Edge, and Mobile) */
#guestList::-webkit-scrollbar {
    width: 6px; /* Makes the scrollbar very thin and elegant */
}

#guestList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); /* Gives a soft gray track path so the user sees a track exists */
    border-radius: 10px;
}

#guestList::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue); /* Color of the scroll draggable bar */
    border-radius: 10px; /* Rounds the edges so it looks like a sleek capsule */
}

#guestList::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-blue); /* Darkens slightly when hovered */
}


/* #endregion */

#guestList {
    list-style-type: none;
    margin-top: 1rem;
    
    /* 1. LIMIT THE MAX HEIGHT */
    max-height: 300px; /* Adjust this pixel number to make the box taller or shorter! */
    
    /* 2. TURN ON THE SCROLLBAR ONLY WHEN IT OVERFLOWS */
    overflow-y: scroll; 
    
    /* 3. ADD PADDING SO SCROLLBAR DOESN'T CLIP THE TEXT */
    padding-right: 8px; 

    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent;

    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

#guestList li {
    padding: 10px 15px;
    background: #fdfdfd;
    border: 1px solid #eef2f5;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: left;
}

/* Nautical anchor bullet point replacement technique */
#guestList li::before {
    content: "⚓";
    color: var(--primary-blue);
    margin-right: 12px;
}

.form-row {
    display: flex;         /* Activates the Flexbox engine */
    gap: 20px;             /* Adds a clean pixel gap between the two objects */
    width: 100%;
}

/* #endregion */



/* 6. FORMS & INPUTS */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--primary-blue);
}

.label-desc {
    display: block;          /* Forces the text onto its own line right below the label */
    font-size: 0.86rem;      /* Makes it slightly smaller and elegant */
    color: var(--text-dark); /* Uses your core text color... */
    opacity: 0.75;           /* ...but fades it out slightly so it looks secondary */
    margin-top: -4px;        /* Nudges it closer up to the label above it */
    margin-bottom: 8px;      /* Adds a clean gap before the actual input box starts */
    font-style: italic;      /* Optional: italics make it read beautifully as a hint */
}

input[type="text"],
input[type="number"],
input[type="password"],

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dae1e7;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.15);
}


/* Container for the 3 selection buttons */
.status-button-group {
    display: flex;
    gap: 10px; /* Puts a nice space between them */
    margin-top: 8px;
}

/* Base style for the RSVP choice buttons */
.status-btn {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--celebratory-gold);
    padding: 1rem 2rem;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-btn:hover {
    background-color: var(--soft-seafoam);
    border-color: var(--celebratory-gold);
    color: var(--primary-blue);
    transform: translateY(-2px); /* Subtle luxurious lift effect */
    box-shadow: 0 6px 20px rgba(29, 53, 87, 0.15);
}

/* THE MAGIC CLASS: How the button looks when it is ACTIVE / SELECTED */
.status-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--celebratory-gold);
    transform: scale(1.02); /* Makes it pop out slightly */
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.2);
}



/* 7. CONDITIONAL CONTAINER FIELDS */
.conditional-section {
    display: none;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px dashed var(--primary-blue);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.family-member-input {
    margin-bottom: 10px !important;
}

/* 8. BUTTONS */
button {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 1rem 2rem;
    margin: 0 auto 1rem auto;
    display: block;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px; /* Rounded pill shape looks incredibly clean and modern */
    cursor: pointer;
    width: 80%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px); /* Subtle luxurious lift effect */
    box-shadow: 0 6px 20px rgba(29, 53, 87, 0.15);
}

button:active {
    transform: scale(1.02); /* Makes it pop out slightly */
}



/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .wrapper {
        margin: 0.5rem;
        padding: 0.8rem;
    }

    .status-button-group {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column; /* Switches the layout direction from left-to-right to top-to-bottom! */
        gap: 0;                /* Removes the side gap since they are now stacked */
    }

    #guestList li::before {
    display: none;
}

}



/* #region ADMIN TABLE DESIGN */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Admin Panel Specific Status Pill Badges */
.status-Yes {
    background-color: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.status-No {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* #endregion */