/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Apply a dark background */
body {
    background-color: #121212;
    color: white;
}

body.light-mode {
    background-color: white !important;
    color: black !important;
}

.navbar-center.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.navbar-center.visible {
    opacity: 1;
    pointer-events: auto;
}


.tab-hidden {
    visibility: hidden;
    position: absolute;
    left: -9999px;
    pointer-events: none;
}

.tab-visible {
    visibility: visible;
    position: static;
    pointer-events: auto;
}



.f3-form-cont {
    width: 415px !important;
    margin: 20px !important;
}

/*search bar*/
.f3-autocomplete-cont {
    margin: 30px 0 0 30px !important;
}

.f3-autocomplete-toggle {
  display: none;
}
.f3-autocomplete-input-cont input {
  background-color: #848484 !important;
  color: #fff !important;
  border: none;
}

/* placeholder color */
.f3-autocomplete-input-cont input::placeholder {
  color: #ddd !important;  /* light greyish white */
}

.f3-autocomplete-input-cont input:hover {
  background-color: #6c6c6c !important;
  color: #fff !important;
  border: 1px solid #ccc;
}

/*login page styles*/
.login-container {
    margin: 50px auto 40px auto;
    color: #000;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

.select-family-text {
    text-align:center; margin-bottom: 10px; color: #f1c40f; font-weight: bold; font-size: 20px;
}

.login-list-rels-container {
    margin: auto;
    color: #000;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}



.login-tree-link-section {
    margin-bottom: 15px;
}


.login-tree-content {
    background-color: #e4e4e4;
    flex: 1;
    border-radius: 4px;
}

.login-tree-link {
    color: #ab326e;
    text-decoration: underline;
    display: inline-block;
    margin: 4px 0 0 4px;
}


.login-tree-location {
    display: inline-block;
     margin: 2px 0 0 4px;
}

.login-tree-link:hover {
    color: #8e496b;
}

.login-tree-link-section ul {
    display: flex;
    align-items: stretch;
    gap: 5px;
    list-style: none;
}

.login-tree-link-section li {
    display: flex;
    align-items: center;
}

.login-tree-link-section li:first-child {
    border-radius: 4px;
    border: 4px solid #e4e4e4;
    justify-content: center;
    font-size: 40px;
     display: flex;
    align-items: center;
}


.login-tree-link-section li:nth-child(2) {
    flex: 1;
    display: flex;
    align-items: stretch;
}



.login-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}
.login-error {
    color: red;
    font-size: 0.9rem;
}

.login-success {
    background-color: #28a745;
    color: white;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.3);
    margin-bottom: 5px;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}


/* Responsive adjustments */
@media (max-width: 1000px) {
    .login-container {
        margin: 50px auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
        margin: 30px 20px;
    }

    .login-btn {
        font-size: 0.9rem;
        padding: 8px;
    }
}


/*side profile and edit panel*/
.f3-form-cont {background-color: #324054 !important;border: 4px solid #ccc;border-radius: 8px;} /*side profile grey color*/
.custom-edit-mode { background-color:#0d451d !important; } /*edit panel green color*/


.f3-form.fade-out-effect {
    opacity: 0;
    filter: blur(3px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.f3-close-btn {
  background-color: #fff !important;
  color: #ff3b57 !important;
  border: none !important;
  border-radius: 6px !important;
  width: 32px;
  height: 32px;
  font-weight: 900; /* super bold */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  margin-top: 2px;
}

.f3-close-btn:hover {
  background-color: #ffecef !important;
  transform: scale(1.05);
}


.profile-pid {
    float: right;
    color: #dede00;
    font-size: 14px;
}

/*edit panel*/

.custom-edit-mode .f3-form > div:nth-child(2) {background-color: #247f3e;} /*add-relative and edit btns*/

.f3-form-cont .f3-form > div:nth-child(2) {
    margin-top: -20px;
    padding-bottom: 10px;
    padding-right: 15px;
    margin-bottom: 28px;
/*    padding-top: 8px;*/
    margin-left: -20px;
    width: 113%;
}

.f3-form-cont .f3-form > div:nth-child(2) span {margin-top: 14px}

.f3-facebook-btn {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  margin-right: 10px;
  font-size: 25px; 
}

.f3-facebook-btn i {
  position: relative;
  top: -3px;
}

/*to handle facebook icon in guest mode*/
.hidden-icons{
    margin-right: -30px !important;
    visibility: hidden;
    pointer-events: none;
}

/*handle scrollbar*/
.f3-form-cont::-webkit-scrollbar {width: 2px}
.f3-form-cont {overflow-y: hidden, overflow-y: auto;}
.f3-form-cont {scrollbar-width: none;} /*to handle firfox issue*/

.cus-avatar-image {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 5%;
  margin: 10px 0 6px 142px;
}


.default-avatar-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 5%;
  margin: 11px 0 6px 155px;
}

.rmv-line-space{
    border-bottom: none !important;
    width: 113%;
    margin-left: -20px;
    margin-top: -30px;
    background-color: #507bb8;
}



/* Navbar */
.mobile-navbar {display: none;}
.navbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #24465C;
    padding: 15px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #ccc;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.mobile-navbar-left {
    display: flex;
    align-items: center;
}



.navbar-right .navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px; 
}

.navbar-right .navbar-links li {
    margin-left: 1rem;
}

.navbar-right .navbar-links a {
    color: #fff;
    text-decoration: none;
}

.navbar-right .navbar-links a:hover {
    color: #9ca3af;
}


.nav-left-icons {margin-left: 15px}

.nav-left-icons i, .tree-icon-redirect i {
    background-color: #ccc;
    color: #333;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 20px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.nav-left-icons i.active {
    background-color: #facc15;
    color: #000;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown .lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50;
    background: #374151; /* dark gray bg */
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    list-style: none;
    z-index: 9999;
    min-width: 145px;
}

.lang-dropdown:hover .lang-menu {
    display: block;
}


.lang-menu li a {
    text-decoration: none;
    color: #f9fafb;
    display: block;
    padding: 5px 10px;
}

.lang-menu li a:hover {
    background: #4b5563;
}


.lang-menu .disabled a {
    pointer-events: none;
    opacity: 0.6;
}

.navbar-left, .navbar-center, .navbar-right {
    display: flex;
    align-items: center;
}

.navbar-left .navbar-logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.logo-icon {
    width: 35px;
    margin-right: 8px;
}

.ancestry-depth {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.ancestry-depth span {
    color: #fff;
    margin-right: 0.5rem;
    font-weight: 500;
}


.depth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #8d8282 !important;
}



.depth-btn-group {
    display: inline-flex;
    border: 1px solid #fff;
    border-radius: 4px;
    overflow: hidden;
}


.depth-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-right: 1px solid #fff;
}

.depth-btn:last-child {
    border-right: none;
}

.depth-btn:hover {
    background-color: #5a6268;
}

.depth-btn.active {
    background-color: #ffc107;
    color: #000;
}

.icon-btn {
    color: #fff;
    padding: 0.3rem 0.3rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cog-btn {
    background-color: #6c757d; /* green */
}

.home-btn {
    background-color: #28a745; /* grey */
}



/* Main Content */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

/* Logo */
.logo-container {
    margin-bottom: 20px;
}

/* Button */
.button-container {
    text-align: center;
    margin-top: 30px;
}

.button {
    display: flex;
    align-items: center;
    background-color: white;
    color: black;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.05);
}

.button h2 {
/*    font-size: 20px;*/
    margin-right: 10px; /* Add space between title and description */
}

/* Icon */
.icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}



/* Modal Background Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* High priority */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark background */
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out; 
}

/* Modal Content Box */
.modal-content {
    background: #fff; 
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 350px; 
    text-align: center;
    animation: slideDown 0.3s ease-in-out; 
    position: relative;
}

/* Modal Close Button (Small X Icon) */
.close-btn {
    position: absolute;
    bottom: 180px;
    right: 0px;
    font-size: 22px;
    cursor: pointer !important;
    color: #555 !important;
    background: none !important;
    border: none !important;
    width: 15% !important;
}

.close-btn:hover {
    color: red !important;
}

/* Input Field */
.modal input {
    width: 90%;
    padding: 10px;
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

.modal input:focus {
    border-color: #1877F2; 
}

/* Submit Button */
.modal button {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    background: #1877F2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal button:hover {
    background: #0F65D4; 
}


.modal h2 {
    color: #000 !important; 
}

/* Modal Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Radio Button Container */
.radio-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Hide Default Radio Button */
.radio-group input[type="radio"] {
    display: none;
}

/* Custom Radio Button Style */
.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #ccc;
    transition: all 0.3s ease-in-out;
}

/* Style for Checked Radio */
.radio-group input[type="radio"]:checked + label {
    border-color: #22c55e;
    background: #22c55e;
    color: white;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*history-controls force-hide*/



.f3-back-button, .f3-forward-button {
    color: white;
}
.f3-history-controls {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}



/*trees listing in home page*/

.your-trees {
    margin-top: 50px;
    text-align: center;
}


.your-trees h1 {
    margin-bottom: 15px;
}

tree-list {
    list-style: none;
    padding: 0;
}

.tree-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 450px;
}

.tree-link {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.tree-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    border-radius: 5px;
}

.edit-btn {
    background-color: #4CAF50;
}

.invite-btn {
    background-color: #2196F3;
}

.delete-btn {
    background-color: #f44336;
    border: none;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.no-trees {
    font-size: 16px;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}


/*.card-image-rect:hover
{
    color: yellow !important;
}*/


.f3 div.card-main .card-inner {
  outline: 4px solid yellow !important;
}


.f3 .card-inner {
    border-radius: 0 0 5px 5px !important;

}


/*the assign part*/

.f3-inline-field {
  display: flex;
  gap: 10px;
  align-items: center;
/*  margin-bottom: 1rem;*/
}


.f3-info-email-input {flex: 0 0 70%;}
.f3-info-role-select {flex: 0 0 30%;}

.f3-info-email-input,
.f3-info-role-select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.80rem !important;
}

.f3-info-role-select {
  max-width: 120px;
  background-color: white;
}

.f3-info-submit-btn {
  padding: 8px 14px !important;
  width: 100%;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem !important;
  transition: background-color 0.3s ease;
}

.f3-info-submit-btn:hover {
  background-color: #0056b3;
}


.f3-remove-assignee-link {
  margin-left: 10px;
  font-size: 12px;
  color: #dc3545;
  text-decoration: underline;
  cursor: pointer;
}

.f3-remove-assignee-link:hover {
  text-decoration: none;
}



.f3-boolean {
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.f3-boolean label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}



.f3-form-field input[type="file"] {
  background-color: #1e1e1e;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px;
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.f3-form-field input[type="file"]::file-selector-button {
  background-color: #333;
  border: none;
  color: #fff;
  padding: 6px 12px;
  margin-right: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.f3-form-field input[type="file"]::file-selector-button:hover {
  background-color: #444;
}

.f3-form-field input[type="file"]:focus {
  border-color: #888;
  outline: none;
}



.f3-customdate-wrapper {
  display: inline-block; /* Ensures elements can sit side by side */
  margin-right: 3px;    /* Optional spacing */
  vertical-align: top;
  width: 114px;
}

/* This assumes all the .f3-customdate-wrapper elements share the same parent */
.f3-customdate-wrapper:first-child {
  display: flex;
}

.f3-customdate-wrapper:first-child ~ .f3-customdate-wrapper {
  display: block;
}



.f3-half-text-wrapper {
  display: inline-block;
  margin-right: 3px;
  vertical-align: top;
  width: 175px;
}


.f3-three-text-wrapper {
  display: inline-block;
  margin-right: 3px;
  vertical-align: top;
  width: 114px;
}

.f3-full-text-wrapper {
  width: 357px;
}

.f3-avatar-field {
  width: 357px;
}



.f3-line-breaker {
  margin: 15px 0;
  border-top: 1px solid #ccc;
}


.f3-heading {
  display: block;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}



.f3-customdate-selects input[type="number"] {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
  background-color: rgb(33, 33, 33);
  color: #fff;
  margin-top: 8px;
}

.f3-customdate-selects input[type="number"]::-webkit-inner-spin-button,
.f3-customdate-selects input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/*this id it putting manually to override the style of the dates in the card*/
.death-year-alone {
    display: inline-block;
    margin-left: 40px;
}

.deceased-img {
  width: 20px !important;
  height: 20px !important;
  vertical-align: -5px !important;
  padding: 0 !important;

}

.deceased-img-alone {
  width: 20px !important;
  height: 20px !important;
  vertical-align: text-bottom !important;
  margin-left: -5px !important;
  padding: 0 !important;
}


.black-square {
    position: absolute;
    z-index: 6;
    top: 2px;
    left: 3px;
    width: 17px;
    height: 17px;
    font-size: 11px;
    text-align: center;
    padding-top: 3px;
    background-color: black;
/*    border-radius: 2px;*/
}



#override-the-date {
/*    max-height: 13px;*/
    color: #000;
    font-weight: bold;
    display: inline-block;
  vertical-align: middle;
  line-height: 1;
}


.date-age-wrapper {
  display: inline-flex;
  align-items: center;
/*  height: 12px;*/
  gap: 2.5px;
}


.current-age {
    border-radius: 2px;
    padding: 1.8px 2px 1px 2px;
    font-size: 10px;
    color: #fff;
    background-color: #008000;
}

.death-age {
    border-radius: 2px;
    padding: 2px 3px 1px 3px;
    font-size: 10px;
    color: #fff;
    background-color: #000;
}


.green-corner {
  position: absolute;
  top: 0;
  left: 0;
  border-top: 20px solid #c6ff00;
  border-right: 20px solid transparent;
  z-index: 5;
}


.facebook-corner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
}

.fb-icon{
    width: 17px !important;
    height: 17px !important;
    margin-right: 1px !important;
    padding: 1px !important;
    border-radius: 3px !important;
}



.pid-span{
    font-weight: bold;
    margin-left: 95px;
    color: #dede00;
}


.f3-pid-wrapper {
    width: 130px;
    margin-left: 225px;
    margin-top: -35px;
  display: flex;
  align-items: center;
/*  gap: 8px;*/
}


 
/*Configuration Section*/

.configure-btn {
  position: absolute;
  top: 30px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999; /* makes sure it’s on top of everything else */
  color: #fff;
  background-color: #6db4ff;
  padding: 7px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


.configure-content {
    display: none;
    position: absolute;
    top: 65px;
    right: 450px;
    z-index: 9999;
    background-color: #444;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    width: 290px;
}


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

.configure-title {
  font-weight: bold;
  font-size: 16px;
}



.configure-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 3px;
  border-radius: 30%;
}


.configure-close:hover {
  background-color: #989898;
}

.configure-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

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

.configure-input {
  width: 20%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #000;
}

.orientation-label {
  color: #fff;
/*  margin-left: 10px;*/
}


.configure-divider {
  border: 0;
  height: 1px;
  background: #666;
  margin: 10px 0;
}


.export-link {
    font-size: 13px;
    color: #fff;
    background-color: #3B82F6;
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.export-link:hover {
    background-color: #2563EB;
}

.import-link {
    font-size: 13px;
    color: #fff;
    background-color: #F97316;
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.import-link:hover {
    background-color: #EA580C;
}

.action-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}



/* existing switch, slider, etc. */


.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.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: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #e0cfff;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #7e57c2;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/*Configuration Section*/



/*private modal*/
#privateMemberModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.privateMemberModal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: -1;
}

.privateMemberModal-content {
  background: white;
  color: #000;
  padding: 20px;
  border-radius: 6px;
  max-width: 420px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}


#privateMemberModalOkBtn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
  float: right;
  font-size: 1rem;
}

#privateMemberModalOkBtn:hover {
  background-color: #0056b3; /* darker blue on hover */
}


/*green corner*/


.kinship-label {
    color: #e9c41e;
    font-weight: 800;
    font-size: 9px;
}
.card-label {
    text-align: left !important;
    font-size: 14px !important;
}
#card-name-label {
/*    font-weight: 600 !important;*/
    margin-top: 4px !important;
}



.marriage-label-edit-panel
{
    color: #dcdc28;
    font-size: 15px;
    margin: 15px 0 7px 0 ;
}





/* MOBILE BREAKPOINT */
@media (max-width: 1000px) {
    .navbar{display: none;}
    .f3-form-cont { width:370px !important; }
    .f3-form-cont .f3-form > div:nth-child(2) {
        padding-right: 15px;
        margin-left: -20px;
        width: 113%;
    }
    .mobile-navbar {
        display: block;
        position: sticky;
        top: 0;
        z-index: 999;
        background-color: #24465C;
        padding: 10px 17px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid #ccc;
    }

    .mobile-navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


    .mobile-navbar-icons {
        display: flex;
        align-items: center;
/*        gap: 15px;*/
    }

    .mobile-home-btn,
    .hamburger-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        margin-left: 10px;
        cursor: pointer;
    }

    .mobile-navbar-dropdown {
        position: absolute;
        right: 10px;
        background-color: #374151;
        padding: 10px 20px;
        display: none;
    }

    .mobile-navbar-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-navbar-links li {
        margin-bottom: 10px;
    }

    .mobile-navbar-links a {
        color: #f9fafb;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .mobile-navbar-links a:hover {
        color: #9ca3af;
    }

    .mobile-navbar .lang-dropdown {
        position: relative;
    }

    .mobile-navbar .lang-dropdown .lang-menu {
        display: none;
        list-style: none;
        margin-top: 5px;
        padding-left: 15px;
    }

    .mobile-navbar .lang-dropdown:hover .lang-menu {
        display: block;
    }

    .mobile-navbar .lang-menu li a {
        padding: 4px 0;
        color: #d1d5db;
    }

    .mobile-navbar .lang-menu li a:hover {
        color: #f3f4f6;
    }

    .mobile-navbar .lang-menu .disabled a {
        pointer-events: none;
        opacity: 0.5;
    }

    .mobile-member-list {
        padding: 10px;
    }

    .mobile-table-member-item {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }

    .mobile-table-avatar {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        object-fit: cover;
        margin-right: 10px;
    }

    .avatar.placeholder {
        background: #ccc;
    }

    .mobile-table-member-info {
        flex-grow: 1;
    }

    .mobile-table-name {
        font-weight: bold;
    }

    .mobile-table-birth {
        font-size: 12px;
        color: #666;
        font-weight: bold;
    }
    .mobile-table-kinship {
        font-size: 10px;
        color: #0000d7;
    }


    .mobile-controls-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .mobile-search {
        width: 80%;
        padding: 8px;
        margin-left: 6px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .mobile-since-1880-label {
        font-size: 14px;
        display: flex;
    }

    #mobileSince1880 {margin-right: 5px;}

    .mobile-table-go-button {
        font-size: 18px;
        cursor: pointer;
    }

    .icon-btn {
        font-size: 1.3rem;
    }


    .mobile-navbar-center.hidden {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }
    .mobile-navbar-center.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* to show the ancestry-depth only on landscape*/
    @media (max-width: 650px) {
        .mobile-navbar-center {
          display: none;
        }
    }


    .f3-pid-wrapper{width: 105px;}
    .f3-half-text-wrapper{width: 155px;}
    .f3-three-text-wrapper{width: 100px;}
    .f3-customdate-wrapper {width: 100px;}
    .f3-form-field input[type="file"] {width: 100%;}
    .f3-full-text-wrapper {width: 100%;}
    #floatingFormPanel {right: -50px !important}
    #floatingFormPanel #familyForm .tree-icon-redirect {top: -3px !important; right: 280px!important;}


/*    .nav-left-icons {margin-left: -10px}*/

}/*this is the end*/

/*end mobile breakpoints*/









/*data-table styles*/

#membersListDiv {
    margin-top: 30px;
    height: 15vh;
}

#membersTable {
  width: 70% !important;
  margin: 0 auto !important;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#membersTable th,
#membersTable td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-align: left;
}

/* Header style */
#membersTable thead {
  background-color: #727070;
  color: white;
}

/* Zebra striping */
#membersTable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Avatar icons if needed later */
#membersTable td img.avatar {
  width: 25px;
  height: 25px;
/*  border-radius: 50%;*/
  vertical-align: middle;
  margin-right: 8px;
}

#membersTable tbody tr {
    cursor: pointer;
    /*transition: background-color 0.2s ease-in-out;*/
}

#membersTable tbody tr:hover {
    background-color: yellow; /* light blue on hover */
}
#membersTable tbody tr.row-selected {
    background-color: yellow !important; /* selected stays yellow */
}

/* Search input */
.dataTables_filter input {
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  outline: none;
}


.dataTables_filter {
    float: none !important;
    text-align: left !important;
    margin: 0;
}


.custom-wrapper {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
}


.dataTables_paginate {
    margin-bottom: 5px;
}


.th-highlight {
  background-color: #2d7bec !important;
}

.member-link {
  color: blue;
  text-decoration: none;
  cursor: pointer;
}


.member-link:hover {
  color: #5f5fff;
}

#since1880label {
    margin-left: 10px;
    font-size: 14px;
}

#since1880checkbox {
    position: relative;
    top: 2px;
}

#floatingFormPanel {
    display: none;
    color: #fff;
    position: fixed;
    right: 0;
    top: 62px;
    width: 450px;
    height: 90vh;
    z-index: 9999;
    overflow: auto;
    scrollbar-width: none; 
}
#floatingFormPanel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

#floatingFormPanel #familyForm input {background: #000;}
#floatingFormPanel #familyForm select {background: #000;}
#floatingFormPanel #familyForm textarea {background: #000;}
#floatingFormPanel #familyForm .f3-add-relative-btn {display: none;}
#floatingFormPanel #familyForm .tree-icon-redirect {
    display: inline-block;
    position: absolute;
    top: -4px;
    right: 325px;
    cursor: pointer;
}

.tree-icon-redirect {display: none;}