/* Scroll Lock */
.rsvp-scroll-locked {
    overflow: hidden;
    height: 100vh;
}

/* Hide Sections */
.rsvp-hidden {
    display: none;
}

/* Intro Button */
.wedding-rsvp-intro {
    text-align: center;
    padding: 20px;
}
.rsvp-button {
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: #fff;
}

.rsvp-open-button:hover {
    background: #005177;
    transform: scale(1.05);
}
.rsvp-close-button:hover {
    background: #a5282a;
    transform: scale(1.05);
}
.rsvp-button .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Countdown */
.rsvp-countdown {
    text-align: center;
    padding: 20px;
}
.rsvp-countdown-title {
    margin-bottom: 10px;
}
.rsvp-countdown-values {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.rsvp-countdown-days, .rsvp-countdown-hours, .rsvp-countdown-minutes, .rsvp-countdown-seconds {
    font-size: 24px;
    font-weight: bold;
}
.rsvp-countdown small {
    display: block;
    font-size: 14px;
    font-weight: normal;
}

/* RSVP Form */
.wedding-rsvp-form {
    padding: 20px;
    text-align: center;
}
.wedding-rsvp-form form {
    max-width: 400px;
    margin: 0 auto;
}
.wedding-rsvp-form input[type="number"] {
    width: 60px;
}
.wedding-rsvp-form .button-primary {
    background: #0073aa;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
.wedding-rsvp-form .button-primary:hover {
    background: #005177;
}


table.fixed {table-layout: auto;}



/* Invitations Page Layout */
.wedding-rsvp-list-column,
.wedding-rsvp-form-column {
    margin-bottom: 30px;
}

.stuffbox {
    padding: 20px;
}

.inside {
    padding: 20px;
}

/* Form Layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.form-field {
    min-width: 0; /* Prevent fields from growing too wide */
}

.form-field label {
    display: block;
    margin-bottom: 5px;
}

.form-field input,
.form-field select {
    width: auto;
    box-sizing: border-box;
}

/* Specific widths for each field */
.form-field.field-title {
    flex: 0 0 80px; /* Short field for titles like "Sdr." */
}

.form-field.field-name {
    flex: 0 0 200px; /* Wider field for full names */
}

.form-field.field-whatsapp {
    flex: 0 0 150px; /* Medium field for phone numbers */
}

.form-field.field-sender {
    flex: 0 0 150px; /* Medium field for sender names */
}

.form-field.field-shift {
    flex: 0 0 250px; /* Wider field for shift with date */
}

.form-field.field-attending {
    flex: 0 0 100px; /* Short field for Yes/No */
}

.form-field.field-guests {
    flex: 0 0 80px; /* Short field for number of guests */
}

.wedding-rsvp-filters {
    margin-bottom: 20px;
}

.wedding-rsvp-filters form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.wedding-rsvp-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wedding-rsvp-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.button-danger {
    background: #d63638;
    color: #fff;
    border: none;
}

.button-danger:hover {
    background: #a5282a;
}

/* Fix table overlap */
table.wp-list-table.widefat.fixed.striped {
    table-layout: auto;
}

/* Mobile adjustments */
@media (max-width: 782px) {
    .form-row {
        flex-direction: column;
        gap: 8px; /* Reduced gap between fields on mobile */
        margin-bottom: 10px; /* Reduced margin to tighten the form */
    }
    .form-field {
        flex: 1 1 100%!important; /* Stack fields vertically on mobile */
    }
    .form-field label {
        margin-bottom: 3px; /* Reduced label margin on mobile */
    }
    .form-field:not(:last-child) {
        margin-bottom: 0; /* Remove extra margin between fields */
    }
    .wp-list-table {
        width: 100%;
    }
    .wp-list-table thead {
        display: none;
    }
    .wp-list-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }
    .wp-list-table tbody td {
        display: block;
        text-align: left;
        padding: 10px 15px;
        position: relative;
    }
    .wp-list-table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 40%;
        padding-right: 10px;
    }
}



/* Sender Page Styles */
.wedding-rsvp-sender-list {
    padding: 20px;
}

.wedding-rsvp-sender-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wedding-rsvp-sender-stats .stat-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wedding-rsvp-sender-stats .stat-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
}

.wedding-rsvp-sender-stats .stat-box p {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
}

.wedding-rsvp-sender-filters {
    margin-bottom: 20px;
}

.wedding-rsvp-sender-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wedding-rsvp-sender-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.wedding-rsvp-sender-filters select,
.wedding-rsvp-sender-filters input[type="submit"] {
    padding: 5px;
    font-size: 14px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #25D366;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #1ebe52;
    color: #fff;
}

.whatsapp-button .dashicons-whatsapp {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.copy-notice {
    margin-left: 10px;
    font-size: 12px;
    color: #0073aa;
    display: none;
}

/* Mobile Adjustments for Sender Page */
@media (max-width: 782px) {
    .wedding-rsvp-sender-list {
        padding: 10px;
    }

    .wedding-rsvp-sender-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .wedding-rsvp-sender-stats .stat-box {
        padding: 10px;
    }

    .wedding-rsvp-sender-stats .stat-box h3 {
        font-size: 14px;
    }

    .wedding-rsvp-sender-stats .stat-box p {
        font-size: 18px;
    }

    .wedding-rsvp-sender-filters form {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wedding-rsvp-sender-filters label {
        width: 100%;
    }

    .wedding-rsvp-sender-filters select,
    .wedding-rsvp-sender-filters input[type="submit"] {
        width: 100%;
        box-sizing: border-box;
    }

    .wp-list-table.widefat.fixed.striped {
        width: 100%;
        border: 1px solid #ddd;
    }

    .wp-list-table thead {
        display: none;
    }

    .wp-list-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
        padding: 5px;
    }

    .wp-list-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    .wp-list-table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        flex: 0 0 40%;
        margin-right: 10px;
    }

    .wp-list-table tbody td:last-child {
        border-bottom: none;
    }

    .whatsapp-button {
        font-size: 12px;
        padding: 4px 8px;
    }

    .whatsapp-button .dashicons-whatsapp {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .copy-message {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Sender Page Table - Desktop Spacing */
/* Bold Nama column content on Sender Page (Frontend) */
.wedding-rsvp-sender-list table.wp-list-table td[data-label="Nama"] {
    font-weight: bold;
    background: #fbf199;
}


.wedding-rsvp-sender-list table.wp-list-table.widefat.fixed.striped {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.wedding-rsvp-sender-list table.wp-list-table thead th {
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600;
    background: #f1f1f1;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

.wedding-rsvp-sender-list table.wp-list-table tbody td {
    padding: 15px 20px;
    font-size: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.wedding-rsvp-sender-list table.wp-list-table tbody tr:last-child td {
    border-bottom: none;
}

.wedding-rsvp-sender-list table.wp-list-table tbody td .whatsapp-button {
    padding: 8px 15px;
    font-size: 14px;
}

.wedding-rsvp-sender-list table.wp-list-table tbody td .whatsapp-button .dashicons-whatsapp {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.wedding-rsvp-sender-list table.wp-list-table tbody td .copy-message {
    padding: 8px 15px;
    font-size: 14px;
    background: #0273aa;
    color: #fff;
    border: 1px solid;
}

.wedding-rsvp-sender-list table.wp-list-table tbody td .copy-notice {
    margin-left: 15px;
    font-size: 13px;
}

/* Ensure these styles don't affect mobile */
@media (max-width: 782px) {
    /* Existing mobile styles remain unchanged */
    .wedding-rsvp-sender-list {
        padding: 10px;
    }

    .wedding-rsvp-sender-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .wedding-rsvp-sender-stats .stat-box {
        padding: 10px;
    }

    .wedding-rsvp-sender-stats .stat-box h3 {
        font-size: 14px;
    }

    .wedding-rsvp-sender-stats .stat-box p {
        font-size: 18px;
    }

    .wedding-rsvp-sender-filters form {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wedding-rsvp-sender-filters label {
        width: 100%;
    }

    .wedding-rsvp-sender-filters select,
    .wedding-rsvp-sender-filters input[type="submit"] {
        width: 100%;
        box-sizing: border-box;
    }

    .wp-list-table.widefat.fixed.striped {
        width: 100%;
        border: 1px solid #ddd;
    }

    .wp-list-table thead {
        display: none;
    }

    .wp-list-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
        padding: 5px;
    }

    .wp-list-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    .wp-list-table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        flex: 0 0 40%;
        margin-right: 10px;
    }

    .wp-list-table tbody td:last-child {
        border-bottom: none;
    }

    .whatsapp-button {
        font-size: 12px;
        padding: 4px 8px;
    }

    .whatsapp-button .dashicons-whatsapp {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .copy-message {
        padding: 4px 8px;
        font-size: 12px;
    }
}


/* Search Box Styles */
.wedding-rsvp-search {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 782px) {
    .wedding-rsvp-search {
        margin-bottom: 10px;
    }

    .search-input {
        width: 100%;
        max-width: none;
    }
}


/* Confirmation Enhanced Styles */
.wedding-confirmation-enhanced {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wedding-confirmation-enhanced h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
}

.wedding-confirmation-enhanced .shift-info {
    font-size: large;
    color: black;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.wedding-confirmation-enhanced .guest-name {
    font-size: large;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color:#e4016b;
}

.wedding-confirmation-enhanced .form-row {
    margin-bottom: 20px;
}

.wedding-confirmation-enhanced label {
    display: block;
    font-weight: 600;
    color: #777;
    font-size: smaller;
}

.wedding-confirmation-enhanced .light-text {
    font-weight: 400;
    color: #999;
}

.wedding-confirmation-enhanced select,
.wedding-confirmation-enhanced input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    color:black;
}

.wedding-confirmation-enhanced select:focus,
.wedding-confirmation-enhanced input[type="number"]:focus {
    border-color: #0073aa;
    outline: none;
}

/* Hide number input arrows on desktop */
.wedding-confirmation-enhanced input[type="number"]::-webkit-inner-spin-button,
.wedding-confirmation-enhanced input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.wedding-confirmation-enhanced .number-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wedding-confirmation-enhanced .number-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wedding-confirmation-enhanced .number-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wedding-confirmation-enhanced .number-btn:hover {
    background: #e5e5e5;
}

.wedding-confirmation-enhanced input[type="number"] {
    width: 80px;
    text-align: center;
}

.wedding-confirmation-enhanced .button-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #e4026b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Trajan Pro';
}

.wedding-confirmation-enhanced .button-primary:hover {
    background: #f1187d;
}

.wedding-confirmation-enhanced .success-message {
    font-size: 18px;
    font-weight: 600;
    color: #e4026b;
    text-align: center;
    margin-bottom: 20px;
}

.wedding-confirmation-enhanced #edit-confirmation {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Trajan Pro';

}

.wedding-confirmation-enhanced #edit-confirmation:hover {
    background: #ececec;
}

/* Mobile Adjustments */
@media (max-width: 782px) {
    .wedding-confirmation-enhanced {
        margin: 20px;
        padding: 25px;
    }

    .wedding-confirmation-enhanced h2 {
        font-size: 24px;
    }

    .wedding-confirmation-enhanced .shift-info {
        font-size: 16px;
    }

    .wedding-confirmation-enhanced .number-input-group {
        flex-direction: column;
        align-items: center;
    }

    .wedding-confirmation-enhanced .number-input-wrapper {
        width: 100%;
        max-width: 200px; /* Reduce width on mobile */
        justify-content: space-between;
    }

    .wedding-confirmation-enhanced input[type="number"] {
        width: 100%;
        flex-grow: 1;
    }

    .wedding-confirmation-enhanced .number-input-group label {
        text-align: center;
    }
    .wedding-rsvp-sender-list table.wp-list-table td[data-label="No"], .wedding-rsvp-sender-list table.wp-list-table td[data-label="Hadir"], .wedding-rsvp-sender-list table.wp-list-table td[data-label="Tamu"], .wedding-rsvp-sender-list table.wp-list-table td[data-label="Sesi"] {display:none;}
}

.wedding-rsvp-sender-list.wedding-section, .whatsapp-button, .wedding-rsvp-sender-list table.wp-list-table tbody td {font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;}
.wp-block-gallery.wp-block-gallery-7 {gap:0.2em;}
.wp-block-gallery.has-nested-images figure.wp-block-image img {border-radius: 10px;}


table#sender-table {
    position: relative!important;
}
