body, html{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container{ 
    max-width: 1110px;
    margin: auto;
    padding: 50px;
}

.guestlist-tabs-wrapper {font-family: Arial;}

/* TOP TABS */
.guestlist-tabs-wrapper .gl-top-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.guestlist-tabs-wrapper .gl-top-tab {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.guestlist-tabs-wrapper .gl-top-tab.active {
    background: #f4cd00;
    border-color: #f4cd00;
}

/* TOP CONTENT */
.guestlist-tabs-wrapper .gl-top-content {
    display: none;
}
.guestlist-tabs-wrapper .gl-top-content.active {
    display: block;
}

/* SUB TABS */
.guestlist-tabs-wrapper .gl-top-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: auto;
    border-radius: 5px;
    border: 1px solid #dee2e6 !important;
    width: 100%;
    max-width: fit-content;
    overflow: hidden;
}

.guestlist-tabs-wrapper .gl-top-tab {
    padding: 10px 20px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    height: 100% !important;
    width: 100% !important;
    max-width: fit-content;
    min-width: max-content;
    border: none;
    border-radius: 0px;
	margin:0 !important;
    color: black !important;
}

.guestlist-tabs-wrapper .gl-sub-tab.active {
    background: #fff;
    border-bottom: 2px solid #f4cd00;
}

/* SUB CONTENT */
.guestlist-tabs-wrapper .gl-sub-content {
    display: none;
}

.guestlist-tabs-wrapper .gl-sub-content.active {
    display: block;
}


/* ================================
            WEDDING SUMMARY 
   ================================ */
.wedding-summary {
    font-family: Arial, sans-serif;
    width: 100%;
    padding: 10px 0;
}

.wedding-summary .ws-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.wedding-summary .ws-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wedding-summary .ws-icon {
    width: 55px;
}

.wedding-summary .ws-text {
    color: #333;
    font-size: 14px;
    line-height: 18px;
}

.wedding-summary .ws-text .ws-number {
    font-size: 20px;
    font-weight: bold;
}

.wedding-summary .ws-label {
    font-size: 14px;
    color: #444;
}

.wedding-summary .ws-divider {
    width: 1px;
    background: #e5e5e5;
    height: 70px;
}

.wedding-summary .ws-right-btn {
    margin-left: auto;
}

.wedding-summary .ws-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 6px;
    cursor: pointer;
}

.wedding-summary .ws-btn:hover {
    background: #f6f6f6;
}
.wedding-tab-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vt-card {
    display: flex;
    align-items: center;
}
.vtc-content {
    padding: 0px 0px 0px 10px;
    border-left: 1px solid #ffc107;
}
.vtc-content p {
    font-size: 14px;
    margin: 0px 0px 7px 0px;
}
.vtc-image {
    padding-right: 10px;
}
h2.gl-tab-title {
    font-size: 24px;
    color: #212529;
    margin: 10px 0px;
}
.vt-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px 0px;
}
.vt-buttons button.vt-btn {
    padding: 8px;
    margin: 0;
    font-size: 14px;
    background: #fff;
    color: #212529;
    border: 1px solid #dee2e6 !important;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}
.wt-bottom-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 3px 10px;
    border-bottom: 1px solid #dee2e6;
}
.wedding-tab-bottom {
    border-radius: 5px;
    border: 1px solid #dee2e6 !important;
}
button.messege-gues-button-gl {
    padding: 8px;
    font-size: 14px;
    color: #6c757d;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    display: flex;
    gap: 5px;
    align-items: center;
    font-weight: 500;
}
.gl-sub-tabs {
    display: flex;
    align-items: center;
}
.gl-sub-tabs button.gl-sub-tab {
    padding: 10px 20px;
    font-size: 13px;
    border: none;
    background: transparent;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}
.gl-sub-right {
    display: flex;
    align-items: center;
    height: 100%;
}
.gl-sub-right button {
    background: transparent;
    border: none;
    font-size: 22px;
    font-weight: 600;
    padding: 8px 16px;
    border-right: 1px solid #dee2e6;
}

.gl-sub-right button:last-child {
    border-right: none;
}
.gl-sub-right .gl-sub-view-btn {
    font-size: 16px;
    font-weight: 500;
}

/*------relationshio-css------*/

#glRelationship .top-buttons {
    display: flex;
    gap: 10px;
    padding: 9px;
    background: #fff8e1;
}

#glRelationship .yellow-btn {
    background: transparent;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 1px solid #f4cd00;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}
#glRelationship .yellow-btn em {
    padding: 8px;
    background: #ffd700;
    text-align: center !important;
    border-radius: 0 50% 50% 0;
    font-size: 23px;
    font-weight: 700;
    line-height: 20px;
}
#glRelationship span.icon-guest {
    padding: 8px;
    font-size: 14px;
}

#glRelationship input.search {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 30px;
    transition: border-color .15s 
ease-in-out, box-shadow .15s 
ease-in-out;
    max-width: 270px;
}

.guest-main {
    display: flex;
    border: 1px solid #ddd;
}

.sidebar {
    width: 220px;
    border-right: 1px solid #ddd;
    background: #fafafa;
}

.sidebar-item {
    padding: 15px;
    cursor: pointer;
}

.sidebar-item.active {
    background: #eee;
    font-weight: bold;
}

.content {
    flex: 1;
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.section-title {
    margin: 10px 0;
    font-weight: bold;
}

.select-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sel-btn {
    padding: 8px 20px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    border-radius: 6px;
    cursor: pointer;
}

.sel-btn.active {
    background: #ffd439;
    border-color: #e0b300;
}

.tabs {
    display: flex;
    margin: 20px 0;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.tab.active {
    border-bottom: 3px solid #ffd439;
}

.section-block {
    margin: 25px 0;
}

.header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.small-link {
    color: #f4b000;
    font-size: 14px;
}

.send-invite {
    padding: 8px 10px;
    border: 1px solid #f4b000;
    background: transparent;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
}

textarea {
    height: 80px;
}

.bottom-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.update {
    background: #26c046;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
}

.delete {
    background: #d53939;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Basic styles for popup (you said you'll keep your own CSS; this file is minimal fallback/structure) */
/* popup.css (updated) */

/* overlay & popup (keep existing styles) */
.wem-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    padding: 20px;
}
.wem-popup-box {
    width: 520px;
    max-width: 95%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wem-header {
    background: #ffd600;
    padding: 12px 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.wem-header h2 { margin:0; font-size:18px; }
.wem-close {
    background: transparent; border: none; font-size: 22px; cursor: pointer;
}

.wem-body, .relationship-modal-body { padding: 16px; }

.wem-input { width:100%; padding:8px; margin:6px 0 12px; border:1px solid #ddd; border-radius:3px; }

.wem-options label { display:inline-block; margin-right:12px; }

.wem-box { background:#fff7de; border-radius:8px; padding:12px; margin:8px 0; }

.wem-tag-container { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:8px; }
.tag {
    position: relative;
    background:#eee; padding:8px 12px; border-radius:6px; cursor:pointer;
    user-select:none; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
    display:inline-flex; align-items:center; gap:8px;
}
.tag.selected { background:#ffd600; }

/* delete icon (hidden normally) */
.tag-delete {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
    color: #c43a3a;
    line-height: 1;
    padding: 0;
}

/* show delete when container is in editing mode */
.wem-tag-container.editing .tag-delete,
.tag .tag-delete {
    /* We prefer to show only when editing; class toggles below */
    display: inline-block;
}

/* Optional: visually distinguish editing mode container */
.wem-tag-container.editing {
    outline: 2px dashed rgba(0,0,0,0.06);
    padding: 8px;
    border-radius: 6px;
}

/* tag inner spacing to make room for delete */
.tag .tag-delete { margin-left: 6px; }

/* controls + footer */
.wem-tag-controls { display:flex; gap:8px; align-items:center; }
.wem-tag-controls input { flex:1; padding:6px; border:1px solid #ddd; border-radius:3px; }

.wem-footer { display:flex; justify-content:flex-end; gap:8px; padding:12px; border-top:1px solid #eee; background:#fff; }
.wem-btn { padding:8px 14px; border-radius:4px; border:1px solid #ccc; background:#f6f6f6; cursor:pointer; }
.wem-btn.primary { background:#ffd600; border-color:#e6c200; }
.wem-btn.small { padding:6px 8px; min-width:38px; }

body.wem-popup-open { overflow: hidden; }


.wem-message {
    background: #28a745;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}
.wem-message.error {
    background: #dc3545;
}
.snapshot-events-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.snapshot-event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8d6;
    border: 1px solid #f0e3a0;
    border-radius: 10px;
    padding: 15px;
}

.event-icon {
    font-size: 32px;
    margin-right: 15px;
}

.event-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.event-stats {
    margin: 5px 0 0;
    color: #555;
}

.event-open-btn {
    background: #f4c400;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.event-stats {
    font-size: 14px;
    line-height: 18px;
    color: #444;
    margin-top: 4px;
}

.event-stats .line-1 {
    margin-bottom: 2px;
    font-weight: 500;
}

.event-stats .line-2 {
    color: #666;
}
.event-info {
    border-left: #ffd700 1px solid;
    padding-left: 10px;
    min-height: 82px;
}

/* Relationship Modal */
.relationship-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.relationship-modal-content {
    background: white;
    padding: 25px;
    width: 350px;
    border-radius: 6px;
    text-align: center;
    position: relative;
}

.close-relationship {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}
