
    body, html {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        background-color: #F9F9F9;
        color: #333;
    }

    .app-container {
        display: flex;
        min-height: 100vh;
    }

    /* Sidebar */
    .sidebar {
        /* width: 250px; */
        min-width: 300px; /*330px*/
        background-color: #f0f0f0; /* Lighter grey like screenshots */
        /* padding: 20px; */
        display: flex;
        flex-direction: column;
        /* align-items: center; */
        border-right: 1px solid #e0e0e0;
        position: sticky;

    }
    .sidebar-header, .view-header {
        height: 100px;
        border-bottom: 1px solid #DFDFDF;
        /* margin-bottom: 25px; */
        padding-bottom: 15px;
    }
    
    .sidebar-header {
        padding-top: 20px;
    }
    .sidebar-body {
        width: 50%;
        margin-left: 50px;
        padding-top: 15px;
    }
    .logo {
        font-size: 28px;
        font-weight: bold;
        color: #D31D53; /* Pink color from logo */
        text-align: center;
        /* margin-bottom: 30px; */
        /* border-bottom: 1px solid #DFDFDF; */
        /* background-image: url('path/to/myinvit_logo.png'); */
    }
    /* --- Hamburger Menu Button Styling (Add this to your general CSS) --- */
    .hamburger-menu-btn {
        display: none; /* Hidden by default, shown only in mobile media query */
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        z-index: 1001; /* Ensure it's above other elements */
        /* Position it as needed, e.g., absolute within its header */
    }

    .hamburger-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333; /* Color of the hamburger lines */
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }

    /* Styles for when the menu is open (X icon transformation) */
    .hamburger-menu-btn.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu-btn.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .dash-menu-title {
        font-size: 14px;
        color: #6c757d;
        text-transform: uppercase;
        /* margin-bottom: 10px; */
        font-weight: bold;
        padding-left: 15px;
        line-height: 50px;
        
    }

    .dash-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dash-menu li a {
        display: block;
        padding: 10px 15px;
        text-decoration: none;
        /* color: #333; */
        color: #000;
        border-radius: 5px;
        margin-bottom: 5px;
        /* font-size: medium; */
    }

    .dash-menu li.active a, .dash-menu li a:hover {
        background-color: #D31D53; /* Pink #D31D53 */
        color: white;
    }

    .problem-btn, .admin_button {
        margin-top: auto; /* Pushes to bottom */
        /* padding: 10px; */
        padding: 10px 15px;
        /* background-color: #343a40; */
        background-color: #000;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        
    }
    .problem-btn {
    	margin-top: 90px;
    }
    .admin_button {
    	margin-top: 10px;
    }
    .logout-link {
        display: block;
        /* text-align: center; */
        margin-top: 15px;
        padding-left: 15px;
        /* color: #6c757d; */
        color: #000;
        text-decoration: none;
    }
    .dash-menu li a, .problem-btn, .logout-link, .admin_button {
        font-size: 14px;
    }

    /* Main Content */
    .main-content {
        flex-grow: 1;
        /* padding: 25px; */
        padding: 0px;
        /* background-color: #fff; White background for content area */
    }

    .view {
        display: none;
        /* padding: 25px; */
    }

    .view.active-view {
        display: block;
    }

    .view-header {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 30px;
        /* position:relative; */
    }

    .view-header h1 {
        font-size: 20px;
        margin: 0;
        color: #D31D53; /* Pink */
        margin: 0px;
        margin-right: 10px;
        /* width: 200px; */
        width: fit-content;
    }


    .header-controls {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 40px;
        flex-grow: 2;
    }
    .header-controls .link-input-group {
        width: 30%;
        min-width: 230px;
        margin-bottom: 0px;
    }
    .header-controls .link-input-group input {
        padding: 8px 15px; /* Default padding */
        border: 1px solid #ced4da;
        border-radius: 5px; /* Your image has rounded corners */
        background-color: #fff;
        font-size: 1em; /* Or your desired font size */
        line-height: 1.5; /* Ensure text is vertically centered nicely */
        cursor: pointer;
        box-sizing: border-box;
    }
    .header-controls select,
    .header-dashboard-event select {
        /* Basic appearance */
        padding: 8px 15px; /* Default padding */
        border: 1px solid #ced4da;
        border-radius: 5px; /* Your image has rounded corners */
        background-color: #fff;
        font-size: 1em; /* Or your desired font size */
        line-height: 1.5; /* Ensure text is vertically centered nicely */
        cursor: pointer;
        box-sizing: border-box;

        /* --- HIDE DEFAULT ARROW --- */
        -webkit-appearance: none; /* For Safari, Chrome, Opera */
        -moz-appearance: none;    /* For Firefox */
        appearance: none;         /* Standard */

        /* --- MAKE SPACE FOR CUSTOM ARROW & ADD CUSTOM ARROW --- */
        /* Add more right padding to accommodate your custom arrow */
        padding-right: 30px; /* Adjust this value based on your arrow size and desired spacing */

        /* Add custom arrow as a background image (SVG data URI is good here) */
        background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2716%27%20height%3D%2716%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20d%3D%27M4%206%20L8%2010%20L12%206%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        /* Position the background arrow to the right, vertically centered */
        /* The '10px' from the right is the padding next to the arrow you want */
        background-position: right 10px center; /* 'right 10px' means 10px from the right edge */
        background-size: 12px 12px; /* Adjust size of the arrow icon */

        /* Ensure text doesn't flow under the custom arrow if it's too long */
        /* This can be tricky with just background. If text is very long, it might overlap. */
        text-overflow: ellipsis; /*-- might not work perfectly with custom arrow */
    }

    .header-controls select,
    .header-dashboard-event select,
    .header-controls input[type="search"] {
        padding: 8px 15px;
        border: 1px solid #ced4da;
        border-radius: 5px;
        background-color: #fff;
        
    }
    .header-controls button {
        min-width: 230px; 
        width: 27%;
    }
    .header-controls input[type="search"] {
        min-width: 230px; 
        width: 33%;
    }
    .header-controls select {
        min-width: 230px; 
        width: 28%;
    }
    .header-controls select::placeholder,
    .header-dashboard-event select::placeholder,
    .header-controls input[type="search"]::placeholder {
        padding: 8px 15px;
        color: #000;
    }
    .header-controls select:focus,
    .header-dashboard-event select:focus,
    .header-controls input[type="search"]:focus {
        outline: none;
    }
    .header-controls input[type="search"] {
        /* Your existing input styles */
       /* Basic appearance */
        padding: 8px 28px; /* Default padding */
        border: 1px solid #ced4da;
        border-radius: 5px; /* Your image has rounded corners */
        background-color: #fff;
        font-size: 1em; /* Or your desired font size */
        line-height: 1.5; /* Ensure text is vertically centered nicely */
        cursor: pointer;
        box-sizing: border-box;

        /* --- HIDE DEFAULT style --- */
        -webkit-appearance: none; /* For Safari, Chrome, Opera */
        -moz-appearance: none;    /* For Firefox */
        appearance: none;         /* Standard */

        /* Add custom search icon as a background image (SVG data URI is good here) */
        background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='122.879px' height='119.799px' viewBox='0 0 122.879 119.799' enable-background='new 0 0 122.879 119.799' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M49.988,0h0.016v0.007C63.803,0.011,76.298,5.608,85.34,14.652c9.027,9.031,14.619,21.515,14.628,35.303h0.007v0.033v0.04 h-0.007c-0.005,5.557-0.917,10.905-2.594,15.892c-0.281,0.837-0.575,1.641-0.877,2.409v0.007c-1.446,3.66-3.315,7.12-5.547,10.307 l29.082,26.139l0.018,0.016l0.157,0.146l0.011,0.011c1.642,1.563,2.536,3.656,2.649,5.78c0.11,2.1-0.543,4.248-1.979,5.971 l-0.011,0.016l-0.175,0.203l-0.035,0.035l-0.146,0.16l-0.016,0.021c-1.565,1.642-3.654,2.534-5.78,2.646 c-2.097,0.111-4.247-0.54-5.971-1.978l-0.015-0.011l-0.204-0.175l-0.029-0.024L78.761,90.865c-0.88,0.62-1.778,1.209-2.687,1.765 c-1.233,0.755-2.51,1.466-3.813,2.115c-6.699,3.342-14.269,5.222-22.272,5.222v0.007h-0.016v-0.007 c-13.799-0.004-26.296-5.601-35.338-14.645C5.605,76.291,0.016,63.805,0.007,50.021H0v-0.033v-0.016h0.007 c0.004-13.799,5.601-26.296,14.645-35.338C23.683,5.608,36.167,0.016,49.955,0.007V0H49.988L49.988,0z M50.004,11.21v0.007h-0.016 h-0.033V11.21c-10.686,0.007-20.372,4.35-27.384,11.359C15.56,29.578,11.213,39.274,11.21,49.973h0.007v0.016v0.033H11.21 c0.007,10.686,4.347,20.367,11.359,27.381c7.009,7.012,16.705,11.359,27.403,11.361v-0.007h0.016h0.033v0.007 c10.686-0.007,20.368-4.348,27.382-11.359c7.011-7.009,11.358-16.702,11.36-27.4h-0.006v-0.016v-0.033h0.006 c-0.006-10.686-4.35-20.372-11.358-27.384C70.396,15.56,60.703,11.213,50.004,11.21L50.004,11.21z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
        background-repeat: no-repeat;
        /* Position the background arrow to the right, vertically centered */
        /* The '10px' from the right is the padding next to the arrow you want */
        background-position: left 10px center; /* 'right 10px' means 10px from the right edge */
        background-size: 12px 12px; /* Adjust size of the arrow icon */

        /* Ensure text doesn't flow under the custom arrow if it's too long */
        /* This can be tricky with just background. If text is very long, it might overlap. */
        text-overflow: ellipsis; /*-- might not work perfectly with custom arrow*/
        
    }
    
    .view-header {
        padding: 25px;
    }
    .view-body {
        padding: 15px;
    }
    /* Buttons */
    .btn {
        padding: 10px 18px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;

         /* --- Flexbox for Centering --- */
        display: inline-flex; /* Or 'flex' if it's a block-level button */
        align-items: center;  /* Vertically aligns items to the center */
        justify-content: space-around; 
        gap: 8px;  /*Adds space between the icon and the text*/

    }

    .btn-primary {
        background-color: white;
        outline: 1px solid #D31D53;
        color: #D31D53;

    }
    .btn-primary:hover {
        background-color: #D31D53; /* Pink */
        outline: 1px solid white;
        color: white;
    }
    .header-controls button.btn-primary {
        background-color: #D31D53; /* Pink */
        outline: 1px solid white;
        color: white;
        width: 180px;

        padding: 8px 28px !important; /* Default padding */
        font-size: 1em; /* Or your desired font size */
        line-height: 1.5; /* Ensure text is vertically centered nicely */
        cursor: pointer;
        box-sizing: border-box;
    }
    .header-controls button.btn-primary:hover {
        background-color: white;
        outline: 1px solid #D31D53;
        color: #D31D53;
        
    }
    .btn-secondary {
        background-color: white;
        color: #333;
        border: 1px solid black; /* #ced4da */
    }
    .btn-secondary:hover {
        background-color: #f0f0f0;
    }

    .btn-dark {
        background-color: black;
        color: white;
    }
    .btn-dark:hover {
        background-color: #23272b;
    }

    .btn-success {
        background-color: #28a745; /* Green */
        color: white;
    }
    .btn-success:hover {
        background-color: #1e7e34;
    }


    /* Guest List Specific */
    .guest-list-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* margin-bottom: 20px; */
        border: 1px solid #DFDFDF;
        border-bottom: none;
        padding: 20px;
        background: white;

    }

    .filter-tabs .tab-btn {
        /*padding: 8px 15px;*/
        margin-right: 5px;
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        border-bottom: none; /* For tab appearance */
        border-radius: 5px 5px 0 0;
        cursor: pointer;
    }

    .filter-tabs span {
        padding: none !important;
        background: inherit !important;
        color: inherit !important;
    }

    .filter-tabs .active {
        background-color: #D31D53;
        /* border-bottom: 1px solid white; To blend with table */
        outline: black;
        font-weight: 600;
        color: white;
        text-decoration: none;
    }
    .filter-tabs .btn-primary:hover {
        background-color: black; /* Pink */
    }

    .filter-tabs {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }


    .action-buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    /* Tables */
    .guest-table, .family-members-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
        /* font-size: 14px; */
        
        border: 1px solid #e0e0e0;

    }
    .guest-table tr, .family-members-table tr {
        border-bottom: 1px solid #DFDFDF;
        background: #FFFFFF;
        color: black;
        line-height: 1.5;
        font-size: 14px;
        font-weight: 400;
    }
    .guest-table th, .guest-table td,
    .family-members-table th {
        padding: 10px 12px;
        text-align: center;
    }
    .family-members-table th,
    .family-members-table td {
        text-align: left;
    }
    .family-members-table th, .family-members-table td{
        width: 12%;
    }
    .family-members-table th:first-child, .family-members-table td:first-child {
        width: 5% !important;
    }
    .guest-table th, .family-members-table th {
        background-color: #f8f9fa;
        line-height: 1.5;
        text-align: center;
        color: #B3B3B3;
    }
    .guest-table th {
        font-weight: 600;
        font-size: 16px;
    }
    .family-members-table th {
        font-weight: 400;
        font-size: 16px;
    }
    /* .guest-table td:last-child, .family-members-table td:last-child {
        text-align: center;
    } */
    .guest-table td .btn-link, .family-members-table td .btn-link {
        color: #D31D53;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        text-decoration: underline;
    }
    .guest-table td input[type="checkbox"],
    .family-members-table td input[type="checkbox"] {
        margin: 0 auto;
        display: block;
    }

    .family-members-table td input[type="text"]/*, .family-members-table td select */ {
        border: 1px solid #ced4da;
    }

    .guest-table tbody {
        background-color: white;
    }
    /* Arrow 8 */
    .checked-arrow-div {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 25px;
    }
    .checked-arrow {
        box-sizing: border-box;

        position: relative;
        width: 9.12px;
        height: 18.19px;
        
        border-right: 2.5px solid #020202;
        border-bottom: 2.5px solid #020202;
        transform: matrix(0.73, 0.68, -0.73, 0.68, 0, 0);
    }
    /* Family Detail View */
    .family-header {
        justify-content: space-between; /* Override for arrows */
    }
    .nav-arrow {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }

    .family-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* margin-bottom: 20px; */
        background: #fff;
        padding: 20px;
        border: 1px solid #DFDFDF;
        border-bottom: none;
    }
    .family-actions > div { /* For the right side buttons */
        display: flex;
        gap: 10px;
    }

    .family-name-input-container {
        margin-bottom: 20px;
    }
    .family-name-input-container label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    #current-family-name {
        width: 100%;
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 5px;
        box-sizing: border-box;
    }


    .family-members-table input[type="checkbox"] { /* For Mairie, Vin, Reception */
        transform: scale(1.2);
    }

    .form-actions-bottom {
        text-align: right;
        margin-top: 20px;
    }

    .guest-message-section {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    .guest-message-section h3 {
        margin-bottom: 15px;
        font-size: 18px;
    }
    .guest-message-section label {
        display: block;
        margin-top: 10px;
        margin-bottom: 5px;
        font-weight: bold;
    }
    .guest-message-section input[type="tel"],
    .guest-message-section textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 5px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    .guest-message-section textarea {
        min-height: 80px;
        resize: vertical;
    }

    /* Dashboard Specific */
    .dashboard-content {
        display: flex;
        gap: 30px;
        align-items: flex-start; /* Align items to the top */
    }
    .dashboard-invitation-preview {
        flex-basis: 50%; /* Or a fixed width */
        text-align: right;
        /* border: 1px solid #e0e0e0; */
        /* padding: 20px; */
        /* border-radius: 8px; */
        /* background-color: #fff; #f9f9f9; Light background for the preview card */
    }
    .dashboard-invitation-preview img, .dashboard-invitation-preview video {
        max-width: 100%;
        height: auto;
        display: block;
        /* border: 1px solid #ccc; */
        margin: auto;
        margin-bottom: 15px;
        text-align: center;
        
    }
    .invitation-text {
        font-size: 1.1em;
        line-height: 1.6;
    }
    .invitation-date {
        font-size: 1.5em;
        font-weight: bold;
        color: #333; /* Or your theme color */
        display: block;
        margin-top: 10px;
    }

    .dashboard-stats-links {
        flex-basis: 50%;
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 500px;
    }
    .dashboard-stats-links hr {
        border: 1px solid  rgba(0,0,0,0.1);
        /*margin-bottom: 15px !important;*/
        width: 100%;
    }
    .stats-cards {
        display: flex;
        gap: 20px;
        justify-content: space-around; /* Or space-between */
    }
    .stat-card {
        background-color: #fff;/* #8f9fa;*/
        /* border: 1px solid #e0e0e0; */
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        flex-grow: 1;
    }
    .stat-card h2 {
        margin-top: 0;
        font-size: 14px;
        line-height: 20px;
        weight: 600;
        color: #333;
        text-align: left;
    }
    .stat-card-body {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .stat-card-body p {
        color: #000;
    }
    .stat-number {
        font-size: 2.5em;
        font-weight: bold;
        color: #D31D53; /* Pink theme color */
        margin: 10px 0;
    }
    .btn-small {
        padding: 8px 12px;
        font-size: 12px;
    }

    .invitation-link-section {
        background-color: #fff; /*#f8f9fa;*/
        /* border: 1px solid #e0e0e0; */
        border-radius: 8px;
        padding: 20px;
    }
    .invitation-link-section h3 {
        margin-top: 0;
        margin-bottom: 15px;
    }
    .link-input-group {
        display: flex;
        margin-bottom: 10px;
    }
    .link-input-group input[type="text"] {
        flex-grow: 1;
        padding: 8px 12px;
        border: 1px solid #ced4da;
        border-radius: 5px 0 0 5px;
        background-color: #fff; /* Make sure it's not transparent */
    }
    .link-input-group button {
        border-radius: 0 5px 5px 0;
    }


    /* Family Detail View - Status */
    .family-status-container {
        margin-bottom: 20px;
    }
    .family-status-container label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    #family-is-present {
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 5px;
        width: 100%;
        box-sizing: border-box;
    }
    .btn-danger { /* For delete family button */
        background-color: #dc3545;
        color: white;
    }
    .btn-danger:hover {
        background-color: #c82333;
    }


    /* Manage Tables Specific */
    .add-table-form, .add-gift-form {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 25px;
        border: 1px solid #e0e0e0;
    }
    .add-table-form h3, .add-gift-form h3 {
        margin-top: 0;
        margin-bottom: 15px;
    }
    .add-table-form input, .add-gift-form input, .add-gift-form textarea {
        display: block;
        width: calc(100% - 24px); /* Account for padding */
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ced4da;
        border-radius: 5px;
    }
    .add-gift-form textarea {
        min-height: 60px;
        resize: vertical;
    }
    .tables-layout {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    .table-card {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        background-color: #fff;
    }
    .table-card h4 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #D31D53; /* Pink */
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 8px;
    }
    .table-card p {
        font-size: 0.9em;
        color: #555;
    }
    .table-card ul {
        list-style-type: disc;
        padding-left: 20px;
        font-size: 0.9em;
    }
    .table-card .assign-guest-form select {
        width: 70%;
        padding: 8px;
        margin-right: 5px;
        border-radius: 4px;
        border: 1px solid #ccc;
    }
    .table-card .assign-guest-form button {
        padding: 8px 10px;
    }


    /* Gift List Specific */
    .gift-table th, .gift-table td {
        /* Use existing table styles or customize */
        vertical-align: middle;
    }
    .gift-table td:last-child { /* Actions column */
        white-space: nowrap;
    }
    .gift-table .btn-link {
        margin-right: 8px;
    }
    .purchased-gift td {
        text-decoration: line-through;
        color: #888;
    }

    /* **** */


    .custom-select-input-container {
        position: relative; /* Allows absolute positioning of children */
        width: 100%; /* Or desired width */
        box-sizing: border-box;
    }

    .invitation-link-display {
        width: 100%;
        padding: 10px 35px 10px 15px; /* Adjust padding: right for arrow, left/top/bottom for text */
        border: 1px solid #ced4da;
        border-radius: 8px; /* Rounded corners like the image */
        background-color: #fff; /* White background */
        font-size: 14px; /* Adjust as needed */
        cursor: pointer; /* Indicate it's clickable */
        box-sizing: border-box; /* Include padding/border in width */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        /* Appearance to mimic standard input but look clickable */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    /* Optional: Style when the dropdown is open */
    .invitation-link-display.open {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .dropdown-arrow-custom {
        position: absolute;
        right: 15px; /* Position arrow on the right */
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none; /* Click goes through to the input */
        color: black; /* Arrow color */
        font-size: 0.8em; /* Adjust arrow size */
        font-weight: bolder;
    }

    .dropdown-options-list {
        display: none; /* Initially hidden - JS will toggle */
        position: absolute;
        top: 100%; /* Position directly below the input */
        left: 0;
        width: 100%;
        background-color: #fff;
        border: 1px solid #ced4da;
        border-top: none; /* Avoid double border */
        border-radius: 0 0 8px 8px; /* Match bottom corners */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional dropdown shadow */
        z-index: 100; /* Ensure it's above other content */
        max-height: 200px; /* Limit height and add scroll if needed */
        overflow-y: auto;
        box-sizing: border-box;
    }

    .dropdown-options-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-options-list li {
        padding: 10px 15px;
        cursor: pointer;
        font-size: 0.95em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropdown-options-list li:hover {
        background-color: #f0f0f0; /* Hover effect */
    }

    /* Adjust spacing for the action buttons if needed */
    .link-actions {
        margin-top: 15px; /* Add space below the custom input */
        display: flex;
        gap: 10px;
    }

    /* To hide table columns */
    .guest-table .col-hidden {
        display: none;
    }

    
    /* .event-filter {
        padding-left: 15px;
    } */
    #present-reception-filter, #absent-reception-filter {
        min-width: 150px;

    }

/****** */
/* ---  .family-members-table --- */

.family-members-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    background-color: #fff; /* Ensure table background is white if rows are */
}

.family-members-table th {
    background-color: #f8f9fa; /* Light grey for header */
    font-weight: 600;
    padding: 12px 10px;
    text-align: left; /* Align header text left */
    /* color: #333; */
    border-bottom: 1px solid #e0e0e0;
}

.family-members-table th:first-child, .family-members-table td:first-child, 
.family-members-table th:last-child, .family-members-table td:last-child {
/* .family-members-table th:nth-child(1), .family-members-table td:nth-child(1), 
.family-members-table th:nth-child(2), .family-members-table td:nth-child(2), 
.family-members-table th:nth-child(3), .family-members-table td:nth-child(3)  */
    text-align: center;
}
.family-members-table th.th-event {
    text-align: center;
}
.guest-table th, .guest-table td {
    text-align: left;
}
.guest-table th:first-child, .guest-table td:first-child, 
.guest-table th:last-child, .guest-table td:last-child {
    text-align: center;
}


.family-members-table td {
    padding: 8px 10px; /* Adjust padding for cells */
    border-bottom: 1px solid #f0f0f0; /* Lighter border between rows */
    vertical-align: middle; /* Align content vertically */
    /* text-align: center; Default text align left for cells */
}

/* First cell (checkbox) and last cell (action button) centered */
/* .family-members-table td:first-child,
.family-members-table td:last-child {
    text-align: center;
} */


/* Styling for inline form controls within the table row */
.form-control-inline {
    padding: 6px 8px;
    border: none ; /* Lighter border for inputs 1px solid #ddd */
    border-radius: 4px;
    font-size: 1em; /* Match cell font size */
    width: 100%; /* Make inputs fill their cell */
    box-sizing: border-box;
    background-color: #fff;
}
.form-control-inline::placeholder {
    color: #aaa; /* Light grey for placeholders */
    /* font-style: italic; */
}
.family-members-table select.form-control-inline { /* Specific for the select */
    min-width: 90px; /* Ensure select has some width */
    margin-left: -10px;
    /* -webkit-appearance: none; /* Optional: For custom select arrow later */
    /* -moz-appearance: none; */
    /* appearance: none; */
    /* background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); */
    /* background-repeat: no-repeat; */
    /* background-position: right .7em top 50%; */
    /* background-size: .65em auto; */
}


/* Styling for event checkboxes to look like circles (optional) */
.event-checkbox {
    appearance: none; /* Remove default checkbox appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #e0e0e0; /* Light grey for unchecked circle */
    border: 1px solid #ccc;
    border-radius: 9px !important; /* Makes it a circle */
    width: 18px;       /* Size of the circle */
    height: 18px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle; /* Align with text if any */
    outline: none;
}

.event-checkbox:checked {
    background-color: #D31D53; /* Blue or your theme color for checked */
    border-color:rgb(158, 22, 63);
}

/* Optional: Add an inner dot for the checked state */
.event-checkbox:checked::after {
    content: '';
    display: block;
    width: 8px;  /* Size of the inner dot */
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Centering checkboxes in their cells if they are the only content */
.family-members-table td:has(> .event-checkbox:only-child) { /* If cell only has an event-checkbox */
    text-align: center;
}

.remove-member-btn {
    /* Your existing styles are likely fine */
    color: #dc3545; /* Red for delete icon */
    font-size: 1.2em; /* Make icon a bit bigger */
}
.remove-member-btn:hover {
    color: #c82333;
}

/* For screen-reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* --- Responsive CSS for Mobile  --- */

/* Common Mobile Breakpoint (e.g., screens up to 767px wide) */
@media (max-width: 767px) {

    .app-container {
        flex-direction: column; /* Stack sidebar and main content */
    }

    /* Sidebar Adjustments for Mobile */
    .sidebar {
        width: 100%; /* Full width */
        position: static; /* Default flow, no longer sticky */
        border-right: none;
        border-bottom: 1px solid #e0e0e0; /* Separator when stacked */
        height: auto; /* Allow natural height */

        
    }
    .sidebar-body.open {
        left: 0; /* Slide in from the left */
    }
    .sidebar-body {
        width: 90%; /* More fluid width */
        margin-left: auto; /* Center content */
        margin-right: auto;
        padding-bottom: 20px; /* Add some bottom space */

        position: fixed; /* Or absolute if container is relative */
        top: 0;
        left: -100%; /* Initially off-screen to the left */
        width: 80%; /* Or your desired width for the slide-in menu */
        max-width: 300px;
        height: 100%;
        z-index: 1000; /* Above main content */
        background-color: #f0f0f0; /* Ensure it has a background */
        transition: left 0.3s ease-in-out; /* Smooth transition */
        overflow-y: auto; /* Allow scrolling if menu is long */
        border-right: 1px solid #e0e0e0; /* Add border back for slide-in */
        border-bottom: none; /* No bottom border for slide-in */
    }
    .sidebar-header { /* Ensure consistency with view-header adjustments */
        /* padding-top: 15px;
        padding-bottom: 10px;
        height: auto; */
        
        display: flex; /* To align hamburger and logo */
        align-items: center;
        justify-content: center;
        padding: 0 15px; /* Adjust padding */
        height: 60px; /* Fixed height for mobile app bar */
        background-color: #f0f0f0; /* Or your app bar color */
        /* position: fixed; /* If you want a fixed app bar at the top */
        /* top: 0;
        left: 0;
        width: 100%;
        z-index: 999; */
        border-bottom: 1px solid #DFDFDF;
        /* gap: 10px; */
    }
    .hamburger-menu-btn {
        display: block; /* Show the hamburger button on mobile */
        z-index: 999;
        position: absolute; 
        /* top: 0; */
        right: 10px;
        /* width: 100%; */
        z-index: 999;
        /* margin-left: 40%; */
        /* justify-self: self-end; */
    }
    /* Optional: Overlay for when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999; /* Below sidebar, above main content */
    }
    .menu-overlay.active {
        display: block;
    }
    .dash-menu-title {
        line-height: 40px;
        padding-left: 5%; /* Adjust padding */
    }
    .dash-menu li a {
        padding: 12px 5%; /* Adjust padding */
    }
    .problem-btn, .admin_button {
        /* width: 90%; */
        /* margin: 30px auto 20px auto; Center and adjust margins */
        width: calc(100% - 30px); /* Full width within padding */
        margin-left: 15px;
        margin-right: 15px;
    }
    .logout-link {
        /* padding-left: 5%;
        padding-bottom: 20px; Ensure it has space */
        padding-left: 15px;
    }
    /* .logo {
        justify-self: center;
    } */
    .header-dashboard-event select {
        width: 100%;
    }
    /* Main Content & View Header Adjustments for Mobile */
    .main-content {
        /* flex-grow: 1; is fine */
    }
    .view-header {
        flex-direction: column; /* Stack title and controls */
        align-items: flex-start; /* Align items to the start (left) */
        gap: 15px; /* Space between stacked items */
        padding: 15px; /* Adjust padding */
        height: auto;
    }
    .view-header h1 {
        font-size: 20px; /* Smaller title */
        margin-right: 0px;
    }
    .header-controls {
        flex-direction: column; /* Stack controls vertically */
        width: 100%; /* Make controls container full width */
        gap: 10px;
    }
    .header-controls input[type="search"], .event-filter {
        padding-left: 25px;
    }
    .header-controls .link-input-group,
    .header-controls select,
    .header-controls input[type="search"],
    .header-controls .btn-primary { /* Target your add guests button */
        width: 100%; /* Make form elements/buttons full width */
        box-sizing: border-box; /* Ensure padding/border is within width */
    }
    .header-controls .btn-primary { /* Specific for "Ajouter des invités" */
        text-align: center;
    }
    #export-present-csv-btn, #delete-selected-present-btn, #delete-family-btn-detail {
        justify-content: center;
        gap: 5px;
    }
    .event-filter { /* Your specific class for event select */
        min-width: 0; /* Allow it to be full width */
    }

    .view-body {
        padding: 10px; /* Smaller padding for view body */
    }

    /* Guest List Controls (Filter Tabs & Action Buttons) for Mobile */
    .guest-list-controls {
        flex-direction: column; /* Stack tabs above action buttons */
        align-items: stretch; /* Make children full width */
        gap: 20px;
        padding: 15px;
        border-right: 1px solid #DFDFDF; /* Keep border consistent */
        border-left: 1px solid #DFDFDF;
    }
    .filter-tabs {
        /* flex-direction: column; /* Optionally stack tabs themselves if too many */
        flex-wrap: wrap; /* Allow tabs to wrap to next line */
        justify-content: center; /* Center wrapped tabs */
        gap: 8px; /* Reduce gap for wrapped tabs */
        width: 100%;
        order: 2;
    }
    .filter-tabs .btn-primary { /* Your tab buttons */
        flex-grow: 1; /* Allow tabs to take up space when wrapped */
        min-width: 100px; /* Ensure tabs are not too small */
        text-align: center;
    }
    .action-buttons {
        flex-direction: column; /* Stack action buttons vertically */
        width: 100%;
        gap: 10px;
    }
    .action-buttons .btn { /* Generic buttons in this container */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Tables - Horizontal Scroll for Mobile */
    /* YOU MUST WRAP YOUR <table> elements in a div for this to work effectively */
    /* Example: <div class="table-responsive-wrapper"><table class="guest-table">...</table></div> */
    .table-responsive-wrapper { /* Add this class to the div wrapping your tables */
        overflow-x: auto;
        width: 100%;
        /* The border styling on .guest-table-controls and .guest-table can remain,
           or you can move the main table border to this wrapper */
        /* border: 1px solid #e0e0e0; */
        background-color: #fff; /* Ensure background when scrolling */
    }
    .guest-table, .family-members-table {
        /* width: 100%; -- Let the table be wider if its content needs it */
        min-width: 650px; /* Set a min-width; adjust based on your columns */
        /* border: none; -- If moving border to wrapper */
        width: auto;  
    }
    .guest-table th, .family-members-table th {
        font-size: 14px;
    }
    .guest-table th, .guest-table td,
    .family-members-table th, .family-members-table td {
        padding: 10px 8px; /* Slightly reduce padding */
        /* white-space: nowrap; -- Optional: if you don't want text in cells to wrap */
    }

    /* Dashboard Specific for Mobile */
    .dashboard-content {
        flex-direction: column;
        padding: 15px; /* Add padding to the content area itself */
    }
    .dashboard-invitation-preview, .dashboard-stats-links {
        flex-basis: auto; /* Let them take natural height */
        width: 100%;
    }
    .stats-cards {
        flex-direction: column; /* Stack stat cards */
    }
    .stat-card {
        /* width: 100%; */ /* Already flex-grow: 1, which works when parent is column */
    }
    .invitation-link-section {
        padding: 15px;
    }
    .custom-select-input-container { /* Your custom select for links */
        /* Should adapt reasonably well */
    }
    .link-actions { /* Buttons below custom select */
        flex-direction: column;
        gap: 10px;
    }
    .link-actions .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }


    /* Family Detail View Actions for Mobile */
    .view-header.family-header {
        justify-content: center;
        align-items: center; 
        flex-direction: row;
    }

    .family-actions {
        flex-direction: column;
        align-items: stretch; /* Make child groups full width */
        gap: 15px; /* Space between Retour and (Add Member / Supprimer) */
        padding: 15px;
    }
    .family-actions > div { /* The group with "Ajouter un membre" and "Supprimer" */
        flex-direction: column; /* Stack these two buttons */
        width: 100%;
        gap: 10px;
    }
    .family-actions .btn { /* All buttons within family-actions */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .family-name-input-container,
    .family-status-container,
    .guest-message-section { /* Ensure these form sections have padding */
        padding-left: 15px;
        padding-right: 15px;
    }
    .form-actions-bottom { /* Validate button */
        padding: 0 15px 15px 15px;
    }
    .form-actions-bottom .btn-success {
        width: 100%;
        box-sizing: border-box;
    }


    /* Manage Tables & Gift List Forms for Mobile */
    .add-table-form, .add-gift-form {
        padding: 15px;
    }
    .add-table-form input, .add-gift-form input, .add-gift-form textarea {
        width: 100%; /* Make inputs full width */
        box-sizing: border-box;
    }
    .tables-layout {
        grid-template-columns: 1fr; /* Single column for table cards */
        padding: 0 15px; /* Add padding if not already on parent */
    }
    .gift-table-wrapper { /* You'll need to add this wrapper div in HTML */
        overflow-x: auto;
        width: 100%;
        background-color: #fff;
    }
    .gift-table {
        min-width: 500px; /* Adjust as needed */
    }
    /* .dashboard-view .view-header {
        border-bottom: 0px !important;
    } */
    /* .dashboard-view .view-body {
        margin-top: 100px !important;
    } */
    
}
.champs-obligatoir {
    color: #dc3545;
}
.th-center {
    text-align: center;
}
button.weight-600 {
    weight: 600 !important;
}
button.btn-link.btn-bold {
    weight: bold !important;
}
.member-type {
    color: #B3B3B3;
}
.sorting-arrows {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-left: 10px;
}
.sorting-arrows i {
    color: #9F9F9F;
    font-weight: bolder;
}
.sorting-arrows i:hover {
    cursor: pointer;
    color:rgb(180, 178, 178);
}
.sorting-arrows i.fa {
	display: block;
}
/*.th-sort {
    display: flex;
    justify-content: center;
    align-items: center;
}*/
.th-sort span {
	display: inline-block;
	vertical-align: middle;
}

.faire-part-download-div {
    text-align: center;
    padding-top: 10px;
}
.faire-part-download-div span {
    background-color: #171515;
    border-radius: 3px;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial, serif;
    font-size: 17px;
    padding: 11px 32px;
    text-decoration: none;
    text-align: center;
}
.btn.edit-member-btn {
    color: black;
    background: none;
    font-size: 16px;
}
th:first-child, td:first-child {
    width: 50px !important;
}

/* --- CSS for Gift List Activation Page --- */

/* If #gift-list-view is active, you might want to ensure a lighter background */
#gift-list-view .view-body {
    /* background-color: #fff; */
    padding: 30px 40px; /* Adjust padding as needed */
}

/* Main container for the form */
.gift-list-settings-container { /* Let's add this class to your main form div for easier targeting */
    max-width: 800px; /* Limit the width of the form */
    margin: 0 auto; /* Center it */
    /* padding: 25px; */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    /* border-radius: 8px; */
}

/* Header row with Title and "How it works" button */
.gift-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    background-color: #fff;
    padding: 25px 25px 0px 25px;
}

.gift-list-title {
    margin: 0;
    font-size: 16px;
    color: #D31D53; /* Pink theme color */
    font-weight: bold;
}

.how-it-works-btn {
    background-color: #343a40; /* Dark background like in screenshot */
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
}

/* Row for the Toggle Switch */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between toggle and label */
    /* margin-bottom: 30px; */
}

.toggle-row label {
    font-size: 1.2em; /* ~18px */
    font-weight: 500;
    color: #D31D53; /* Pink theme color */
    cursor: pointer;
}

/* Custom Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 30px; /* 60px */
    height: 18px; /* 34px */
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 18px; /* 34px */
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 13px; /* 26px */
    width: 13px; /* 26px */
    left: 2px; /* 4px */
    bottom: 2px; /* 4px */
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: #D31D53; /* Pink when active */
}
input:checked + .toggle-slider:before {
    transform: translateX(13px); /* 26px */
}


/* Form input sections */
.form-section {
    /* margin-bottom: 25px; */
    padding: 25px;
    border-top: 1px solid #ced4da;
    background-color: #f0f0f0;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    width: 75%;
}

.form-section input[type="url"],
.form-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box; /* Crucial */
    font-size: 1em; /* ~16px */
}
.form-section textarea {
    min-height: 100px;
    resize: vertical;
}
/* Validation button section */
.validation-section {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    /* margin-top: 15px; */
    background-color: #fff;
    padding: 25px;
}
/* You already have .btn-success styles, they should work fine */
/* If you need a specific style for this button: */
.validate-gift-list-btn {
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    /* Uses existing .btn-success styles */
}

/* --- Modal Styles --- */

/* The semi-transparent background overlay */
.modal-overlay {
    display: none; /* Hidden by default none */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 1050; /* High z-index to be on top */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

/* The modal popup window */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    /* border-radius: 12px; */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1051; /* Above the overlay */
    width: 90%;
    max-width: 783px; /* Max width for larger screens */
    opacity: 0;
    transform: translate(-50%, -60%); /* Start slightly higher for a subtle drop-in effect */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%); /* Center it on active */
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.modal-close-btn:hover {
    color: #000;
}

.modal-header {
    padding: 20px 25px 10px 25px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}
.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #D31D53; /* Pink theme color */
    font-style: Poppins;
    font-weight: 600;
    /* line-height: 50px; */
}

.modal-body {
    padding: 25px;
    text-align: center;
    background: #F9F9F9;
}
.modal-question, .modal-description {
    font-style: Poppins;
    color: #000000;
    /* margin-top: 0; */
    /* margin-bottom: 15px; */
    
}
.modal-question {
    line-height: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 7px;
    margin-bottom: 5px;
}
.modal-description {
    line-height: 14px;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 15px;
}

.modal-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Responsive adjustments for the modal */
@media (max-width: 767px) {
    .modal-header, .modal-body, .modal-footer {
        padding: 15px;
    }
    .modal-header h2 {
        font-size: 20px;
    }
    .modal-question {
        font-size: 16px;
    }
    .modal-description {
        font-size: 14px;
    }
    .modal-footer {
        flex-direction: column; /* Stack buttons on mobile */
    }
}
