:root {
    --span-color: #F1E9FE;
    --connector-color: black;
    --primary-color: #2c6bed;
    --secondary-color: #8546eb;
    --background-color: #f7f9fd;
    --background-color-secondary: #D3E3FD;
    --card-bg: #ffffff;
    --text-primary: #252b42;
    --text-secondary: #6c7a9c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 5px;
    --shadow: 0 10px 30px rgba(44, 107, 237, 0.05);
    --animation-speed: 0.3s;
    --color-cakephp-blue: #2c6bed;
    --color-cakephp-blue-light: #e7f1ff;
    --color-theme-button: #00639B;
    --color-theme-button-hover: rgba(221, 221, 221, 0.8); /** #252B42 */
    --button-radius: 5px;
    --button-padding: 0.35rem 0.575rem;
    --button-font-size: 14px;
    --pink: #ecb2ba;
    --pink-dark: #c6939a;
    --tape-gray: #dbd8be;
    --tape-edge-gray: #b7b49d;
    --transparent: rgba(255, 255, 255, 0);

}

body {
    /* font-family: 'Encode Sans', sans-serif;*/
    font-size: 16px;
    /* background-color: aliceblue;*/
}

a {
    text-decoration: none;
    /* font-size: 16px;
     padding: 3px;*/
}

h1 {
    font-size: 3rem;
    font-weight: bolder !important;
    color: var(--text-primary) !important;
    font-family: 'Segoe UI', 'Poppins', sans-serif;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1E1F22; /* Bootstrap's base text color */
}

h4 {
    font-size: 20px;
    font-weight: 500;
}


.search-filter {
    display: flex;
    gap: 12px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: var(--border-radius);
    border: 1px solid rgb(91, 138, 237);
    background-color: var(--background-color);
    font-size: 14px;
    outline: none;
    transition: all var(--animation-speed) ease;
    box-shadow: rgba(44, 107, 237, 0.11) 0px 0px 0px 2.2287px;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.15);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* ========== Base Fields (text, email, password, number, date, textarea, select) ========== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
    width: 100%;
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;

    background-color: var(--background-color);
    border: 1px solid #e1e5ee;
    border-radius: var(--border-radius, 0.375rem);

    outline: none;
    transition: border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out,
    background-color 0.15s ease-in-out;
}

/* ========== Focus State ========== */
input:focus,
textarea:focus,
select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* ========== Placeholder Text ========== */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* ========== Disabled State ========== */
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    opacity: 1;
}

/* ========== Required Field Error Highlight (Global) ========== */
.required-field {
    border-color: #dc3545 !important;
    box-shadow: 0 0 3px rgba(220, 53, 69, 0.5) !important;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
}

.table > :not(caption) > * > * {
    padding: 1px;
}


/* Header */
thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

th, td {
    text-align: left;
    /**border: 1px solid #dee2e6; */
    vertical-align: middle;

}

/* Zebra stripes */
tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Hover effect */
tbody tr:hover {
    background-color: #f1f3f5;
}

/* Optional rounded corners */
table {
    border-radius: 0.375rem;
    overflow: hidden;
    overflow-x: auto;
}

/* Responsive - make scrollable */
.table-responsive {
    overflow-x: auto;
}

th a {
    font-size: 13px;
    color: #212529; /* Bootstrap's base text color */
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.actions {
    font-size: 13px;
    color: #F07421;
    white-space: nowrap;
}

.actions a {
    font-weight: normal;
    padding: 8px !important;
}

th a:hover {
    color: #0d6efd; /* Bootstrap primary */
    text-decoration: underline;
}

th a::after {
    content: " ⇅"; /* optional: hint it's sortable */
    font-size: 0.75rem;
    color: #adb5bd;
    margin-left: 0.25rem;
}

/* Optional: Active sort */
th a.active {
    color: #0d6efd;
    font-weight: bold;
}

th a.active::after {
    content: " ↑"; /* or ↓ depending on sort */
    color: #0d6efd;
}


/* Navbar background and shadow */
.navbar {
    /*background: linear-gradient(to right, #14213d, #14213d);*/
    /*  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);*/
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding: 0 0.5rem;

    font-weight: 400;
}


.nav-link {
    font-weight: 400;
    margin-left: -0.4em;
    position: relative;
    font-size: 18px;
}

.nav-link:hover {
    color: var(--connector-color) !important;
    font-weight: 400;
    margin-left: -0.4em;
    position: relative;
}

/* Brand styling */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

/* Nav links */
.navbar-nav .nav-link {
    color: white !important;
    padding: 0.1rem 2rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
    /*  text-decoration: underline;*/

}

/* Dropdown menu */
.dropdown-menu {
    /*  border: none;*/
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn {
    background-color: #C2E7FF !important;
    border: 0;
    box-sizing: border-box;
    font-size: .975rem;
    border-radius: var(--button-radius, 15px) !important;
    text-align: center;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin: 0 2px;
    color: var(--color-theme-button);

}

/*.btn:hover {
    color: darkslategray;
}

.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}*/

.btn:focus-visible {
    box-shadow: none;
}


/* CSS */
.button-45 {
    align-items: center;
    background-color: #f6c4c4;
    background-position: 0 0;
    border: 1px solid whitesmoke;
    box-sizing: border-box;
    color: #333333;
    cursor: pointer;
    display: flex;
    text-shadow: none;
    text-underline-offset: 1px;
    transition: border .2s ease-in-out, box-shadow .2s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    word-break: break-word;
    border-radius: var(--button-radius, 15px) !important;
    padding: var(--button-padding);
}

.button-45:active,
.button-45:hover,
.button-45:focus {
    outline: 0;
}


.button-45:active {
    background-color: gray;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
    color: #FFFFFF;
}

.side-links:hover,
.btn:hover,
.btn:focus,
.button-45:hover {
    box-shadow: 0px 1px 2px rgba(166, 175, 195, 0.25);
}

.side-links:hover {
    border-radius: 10px !important;
    background-color: var(--color-theme-button-hover) !important;
    color: var(--color-cakephp-blue) !important;
}

/* Secondary Button */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #545b62;
}

/* Danger Button */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

button:disabled {
    background-color: #adb5bd;
    border-color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.65;
}

/* CSS */
.button-46 {
    background-color: #FFFFFF;
    border: 0;
    border-radius: var(--button-radius, 15px) !important;
    box-sizing: border-box;
    color: #111827;
    font-weight: 600;
    line-height: 1.25rem;
    padding: var(--button-padding);
    text-align: center;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-46:hover {
    background-color: rgb(249, 250, 251);
}

.button-46:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.button-46:focus-visible {
    box-shadow: none;
}


/* Search bar */
.navbar form input[type="search"] {
    border-radius: 0.375rem;
    border: none;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.15);
}

.navbar form .btn {
    background-color: #198754;
    border: none;
    color: #fff;
    transition: background-color 0.3s ease;
}

.navbar form .btn:hover {
    background-color: #157347;
}

/* Responsive toggle icon (optional styling) */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

li a {
    text-decoration: none;
    color: #0d6efd; /* keep the current text color */
}

.grid-square a {
    font-size: 13px;
}

/* Optional: add underline on hover for usability */
li a:hover {
    text-decoration: none;
    color: rebeccapurple; /* or your preferred hover color */
}

.side-nav {
    background-color: #f9f9f9;
    border-radius: 12px;
    font-family: sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.side-nav .heading {
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

/* Make nav items horizontal */
.side-nav-item {
    display: inline-block; /* place side by side */
    margin-right: 12px; /* spacing between items */
    padding: 6px 10px;
    background-color: #e7f1ff;
    color: #0056b3;
    border: 1px solid #b3d7ff;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.side-nav-item:hover {
    background-color: #d0e7ff;
    color: #003d80;
}


.side-nav-item::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: cover;
    background-repeat: no-repeat;
    flex-shrink: 0; /* Keep icon size */
}

/* Example icons as inline base64 (or use SVG files) */
.side-nav-item.edit::before {
    background-image: url('data:image/svg+xml;base64,...'); /* pencil icon */
}

.side-nav-item.delete::before {
    background-image: url('data:image/svg+xml;base64,...'); /* trash icon */
}

.side-nav-item.list::before {
    background-image: url('data:image/svg+xml;base64,...'); /* list icon */
}

.side-nav-item.add::before {
    background-image: url('data:image/svg+xml;base64,...'); /* plus icon */
}

.side-nav-item {
    background-color: #e7f1ff;
    color: #0056b3;
    border: 1px solid #b3d7ff;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    white-space: normal; /* allows wrapping if needed */
    word-wrap: break-word;
    flex-grow: 0;
    flex-shrink: 0;
}

/* Base Button Style */
.button, [type=submit], button {
    vertical-align: middle;
    background-color: var(--color-theme-button); /** var(--color-theme-button);  Bootstrap primary */
    border-radius: 1.5rem;
    border: 1px solid whitesmoke;
    box-sizing: border-box;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-family: "Basier circle", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 0.9rem;
    padding: var(--button-padding);
    text-align: center;
    text-decoration: none #0d172a solid;
    text-decoration-thickness: auto;
    transition: all .1s cubic-bezier(.4, 0, .2, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button:hover {
    background-color: #1e293b;
    box-shadow: 0px 1px 2px rgba(166, 175, 195, 0.25);
    color: #fff;
}

@media (min-width: 768px) {
    .button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

td a {
    text-decoration: none;
    color: #212529;
    padding: 10px;
    border-radius: 2px;
}

.button-secondary {
    vertical-align: middle;
    background-color: #C2E7FF; /** var(--color-theme-button);  Bootstrap primary */
    border-radius: 1.5rem;
    border: 1px solid whitesmoke;
    box-sizing: border-box;
    color: black;
    font-size: 0.9rem;
    font-weight: 600;
    padding: var(--button-padding);
    margin: 0 5px;
    text-align: center;
    text-decoration: none #0d172a solid;
    text-decoration-thickness: auto;
    transition: all .1s cubic-bezier(.4, 0, .2, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-secondary:hover {
    background-color: #1e293b;
    box-shadow: 0px 1px 2px rgba(166, 175, 195, 0.25);
    color: #fff;
}

.pagination a {
    color: var(--color-cakephp-blue);
    display: inline-block;
    font-size: 13px;
    line-height: 3rem;
    min-width: 3rem;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: background .3s, color .3s;
}

.toast {
    opacity: 0.95;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    margin: 5px auto;
    transition: opacity 0.3s ease;
    border-left: 5px solid gray;
}

.bg-badge {
    background-color: var(--background-color-secondary);
    color: var(--text-primary);
}

.bg-success {
    background-color: #DDFFDD;
}

.bg-danger {
    background-color: #E91E63;
    color: white;
}

.bg-error {
    background-color: #E91E63;
    color: white;
}

.gen-1 {
    margin-top: 100px;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-spinner {
    display: flex;
    gap: 8px;
}

.custom-spinner::before,
.custom-spinner::after,
.custom-spinner {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
    animation: pulse 0.6s infinite ease-in-out;
}

.custom-spinner::before {
    animation-delay: -0.2s;
}

.custom-spinner::after {
    animation-delay: 0.2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}


.side-left {
    float: left;
}

.side-right {
    float: right;
}

.side-center {
    text-align: center;
}

.tree-node {
    margin: 4px;
    display: inline-block;
    font-size: 13px;
    cursor: grab;
}

.bg-info-danger {
    background-color: rgba(211, 60, 67, 0.1) !important;
}

.bg-info-success {
    background-color: rgba(211, 60, 67, 0.1) !important;
}

.tree-level {
    padding: 2px 0;
}

.tree-side {
    min-height: 60px;
}

.gray-bg {
    background-color: #f5f5f5;
}

/* About Me
---------------------*/
.about-text h3 {
    font-size: 45px;
    font-weight: 700;
    margin: 0 0 6px;
}

@media (max-width: 767px) {
    .about-text h3 {
        font-size: 35px;
    }
}

.about-text h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .about-text h6 {
        font-size: 18px;
    }
}

.about-text p {
    font-size: 18px;
    max-width: 450px;
}

.about-text p mark {
    font-weight: 600;
    color: #20247b;
}

.about-list {
    padding-top: 10px;
}

.about-list .media {
    padding: 5px 0;
}

.about-list label {
    color: #20247b;
    margin: 0;
    font-weight: 200;
}

.about-list p {
    margin: 0;
    font-size: 15px;
}

@media (max-width: 991px) {
    .about-avatar {
        margin-top: 30px;
    }
}

.about-section .counter {
    padding: 22px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(31, 45, 61, 0.125);
}

.about-section .counter .count-data {
    margin-top: 10px;
    margin-bottom: 10px;
}

.about-section .counter .count {
    font-weight: 700;
    color: #20247b;
    margin: 0 0 5px;
}

.about-section .counter p {
    font-weight: 600;
    margin: 0;
}

mark {
    background-image: linear-gradient(rgba(252, 83, 86, 0.6), rgba(252, 83, 86, 0.6));
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: 0 bottom;
    background-color: transparent;
    padding: 0;
    color: currentColor;
}

.theme-color {
    color: #fc5356;
}

.dark-color {
    color: #20247b;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    /*border: 1px solid #ddd;*/
    border-radius: 8px;
    padding: 3px;
    /* background-color: white;*/
    justify-content: center;
}

.tabs .tab-label {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    margin-right: 0.2rem;
    cursor: pointer;
    background: white;
    transition: background ease 0.3s;
    color: lightgrey;
    font-weight: 400;
    font-size: 14px;
    /*border-bottom: 1px solid #D3D7DE;*/
}

.tabs .tab {
    order: 9;
    flex-grow: 1;
    width: 100%;
    height: 100%;
    display: none;
    /*background: #fff;*/
    /* border-top: 1px dashed #ddd;*/

}

.tabs input[type=radio] {
    display: none;
}

.tabs .form-check-input[type=radio] {
    display: inline-block !important;
}

.tabs input[type=radio]:checked + label {
    /* background: rgba(211, 227, 253, 0.2);*/
    color: #1CA09A;
    /*border-top: 3px solid #EBF6F9;*/
    box-shadow: 0px 0px 0px 0px rgba(82, 63, 105, 0.1);
    padding: 7px;
    border-radius: 7px 7px 0 0;
}

.tabs input[type=radio]:checked + label + .tab {
    display: block;
    /* background: #fffffff6;*/
    color: #000;
}

@media (max-width: 465px) {
    .tabs .tab,
    .tabs label {
        order: initial;
    }

    .tabs label {
        width: 100%;
        margin-left: 50px;
    }
}

.card-margin {
    margin-bottom: 1.875rem;
}

.card {
    border: 0;
    box-shadow: 0px 0px 10px 0px rgba(82, 63, 105, 0.1);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(82, 63, 105, 0.1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(82, 63, 105, 0.1);
    -ms-box-shadow: 0px 0px 10px 0px rgba(82, 63, 105, 0.1);
    z-index: 1;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #ffffff;
    background-clip: border-box;
    border: 1px solid #e6e4e9;
    border-radius: 8px;
}

.card .card-header.no-border {
    border: 0;
}

.card .card-header {
    background: none;
    padding: 0 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    min-height: 50px;
}

.card-header:first-child {
    border-radius: calc(8px - 1px) calc(8px - 1px) 0 0;
}


#tree-suggestions {
    border: 1px solid #ddd;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

#tree-suggestions .list-group-item {
    cursor: pointer;
}

.highlight-toolbar {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1px;
}


.tree, .tree ul {
    padding-left: 20px;
    list-style: none;
    position: relative;
}

.tree li {
    margin-left: 20px;
    padding-left: 20px;
    position: relative;
}

.tree li::before {
    content: "";
    position: absolute;
    top: 1em;
    left: 0;
    width: 20px;
    height: 1px;
    background-color: #F1E9FE;
}

.tree li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    width: 1px;
    height: 100%;
    background-color: #F1E9FE;
}

.tree li:last-child::after {
    height: 1em;
}

code {
    display: inline-block;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 6px;
}

.left-node {
    background-color: rgba(211, 60, 67, 0.1); /* IndianRed with 20% opacity */
}

.toolbar .paginator {
    padding: 0 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.toolbar .paginator a {
    color: #0d6efd;
    text-decoration: none;
    position: relative;
    padding-right: 26px; /* for arrow space */
}

.toolbar .paginator a::after {
    content: '▲▼';
    font-size: 13px;
    position: absolute;
    right: 0;
    color: #3C3C3C;
}

.toolbar .paginator .asc::after {
    content: '▲▼';
    color: #3C3C3C;
    font-weight: bold;
}

.toolbar .paginator .desc::after {
    content: '▲▼';
    color: #6AAB73;
    font-weight: bold;
}

.tree-clip {
    background-color: #E7F1FF;
    clip-path: polygon(47% 0, 100% 33%, 90% 34%, 90% 66%, 91% 100%, 55% 100%, 10% 100%, 10% 71%, 9% 34%, 0 33%);
}

.profile-image, .profile-preview {
    object-fit: cover;
    border-radius: var(--border-radius);
    /* border: 1px solid rgb(91, 138, 237);*/
    max-height: 100px;
    max-width: 100px;
}

.folder {
    color: #EFCB67;
}

.side-links {
    color: var(--color-theme-button);
    cursor: pointer;
}

.profile-image-small {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 2px solid whitesmoke;
}


tr {
    border-style: dashed;

}

.spouse-separator {
    /* border-top: 1px dashed #FB6F92;
     border-bottom: 1px dashed #FB6F92;*/
    padding: 5px 2px;
}

.dashed {
    border: 1px dashed #EFCB67 !important;
}

.spouse-tiny {
    border: 3px solid #F1E9FE;
}

.spouse1_only {
    background-color: #F1E9FE;
}

.spouse2_only {
    background-color: #EDF7FF;
}

.both {
    background-color: #F1E9FE;
}

.spouse1 {
    color: #1A355B; /* IndianRed */
}

.spouse2 {
    color: #198754; /* Bootstrap's primary blue */
}

.marriage-node.virtual-marriage {
    border: 2px dashed #ffc107;
    background-color: #fff8e1;
    padding: 10px;
    border-radius: 10px;
}

.spouse-span {
    background-color: rgba(251, 111, 146, 0.2) !important;
    /* border: 1px dashed #D18E62 !important;*/
    color: #000000;
    max-height: 120px;
    border-radius: 10px;
}

.shared-span {
    background-color: #FFDBBB !important;
    color: #1A355B !important;
}

.person-hover-container,
.spouse-hover-container {
    position: relative;
    display: inline-block;
}

.hover-popup {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    white-space: normal;
}

.person-hover-container:hover .hover-popup,
.spouse-hover-container:hover .hover-popup {
    display: block;
}

.person-hover-container:hover .hover-popup,
.spouse-hover-container:hover .hover-popup {
    display: block;
    pointer-events: auto;
}

.hover-popup a {
    text-decoration: none;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.you-are-here {
    animation: blink 1s step-start infinite;
    font-weight: bold;
    color: #ff4081;
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(255, 64, 129, 0.6);
    transition: transform 0.5s;
}

.you-are-here:hover {
    transform: scale(1.1);
}

.relationship-tag {
    font-size: 0.75rem;
    /*  padding: 2px 6px;*/
    border-radius: 3px;
    display: inline-block;
    min-width: 70px;
    /*    color: var(--connector-color) !important*/
}

.you-are-here {
    font-weight: bold;
    color: darkred;
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* From Uiverse.io by gagan-gv */
.btn-menu {
    display: inline-block;
    padding: 2px 2px;
    font-size: 14px;
    font-weight: 400;
    color: black;
    border: 0 solid rgb(252, 70, 100);
    cursor: pointer;
    position: relative;
    background-color: transparent;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    font-family: inherit;
}

.btn-menu::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 10px;
    background-color: rgb(252, 70, 100);
    transform: translateX(-100%);
    transition: all .3s;
    z-index: -1;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    color: #b3d7ff;
}

small {
    white-space: nowrap;
    font-family: var(--bs-font-monospace);
    color: #0D6EFD;
}

.btn-menu:hover::before {
    transform: translateX(0);
}

.label-field {
    flex-shrink: 0;
    font-weight: 600 !important;
    font-size: 13px;
    color: #121212;
}

.profile-row {
    flex-wrap: nowrap;
}

.profile-field {
    word-break: break-word;
    font-size: 13px;
    color: var(--color-theme-button)
}



.glow-silver-ring {
    border-radius: 50%;
    border: 4px solid silver;
    box-shadow: 0 0 10px silver,
    0 0 20px silver,
    0 0 30px lightgray,
    0 0 40px whitesmoke;
    animation: pulse-glow-silver 2s infinite ease-in-out;
}

/* Pulse animation */
@keyframes pulse-glow-silver {
    0% {
        box-shadow: 0 0 5px silver,
        0 0 10px silver,
        0 0 15px lightgray,
        0 0 20px whitesmoke;
    }
    50% {
        box-shadow: 0 0 15px silver,
        0 0 25px silver,
        0 0 35px lightgray,
        0 0 45px whitesmoke;
    }
    100% {
        box-shadow: 0 0 5px silver,
        0 0 10px silver,
        0 0 15px lightgray,
        0 0 20px whitesmoke;
    }
}

.footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    border-top: 1px solid #eee;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.footer-text {
    color: #6c757d;
    font-size: 0.9rem;
    max-width: 300px;
}

.social-links {
    margin: 20px 0;
}

.social-link {
    color: #6c757d;
    margin-right: 20px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #0d6efd;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0d6efd;
}

.copyright {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.card-container {
    /* width: 200px;
     background: #ffffff;
     border: 1px solid #EBF6F9;
     box-shadow: 8px 8px 0 #F5F5F5;
     border-radius: 10px;*/
}

.upper-container {

    background: #D3D7DE;
    border-bottom: 4px solid #EBF6F9;

}

.image-container {
    width: 100px;
    height: 100px;
    background: #ffffff;
    /* border: 4px solid #000;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    /*border: 2px solid #000;*/
}

.lower-container {
    padding: 60px 20px 30px;
    text-align: center;
}

.lower-container h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.lower-container h4 {
    margin: 5px 0 15px;
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

.lower-container p {
    font-size: 14px;
    color: #000;
    border: 2px dashed #000;
    padding: 10px;
    background: #f0f0f0;
    margin-bottom: 20px;
}

.btn-glass-danger {
    background: linear-gradient(135deg, #dc3545, #ff4d6d);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-glass-danger:hover {
    background: linear-gradient(135deg, #b02a37, #e63950);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.glass-collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    color: #fff;
    border: none;
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.3);
    transition: all 0.25s ease;
}

.glass-collapse-toggle:hover {
    background: linear-gradient(135deg, #0b5ed7, #339af0);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.glass-collapse-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.glass-collapse-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.btn-modern-primary {
    background: #f0f7ff;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
    font-weight: 500;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-modern-primary:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.3);
}

.btn-modern-primary i {
    font-size: 0.9rem;
}

label span.text-danger {
    font-weight: bold;
}

/* -------------------------------------------
   FLOATING CARD ACCORDION
-------------------------------------------- */

.accordion-card .accordion-item {
    border-radius: 16px;
    background: #ffffff;
    margin-bottom: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.accordion-card .accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.accordion-card .accordion-button {
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: 1.06rem;
    background: none;
    box-shadow: none;
    color: #1e293b;
    border: none;
    transition: all 0.25s ease;
}

.accordion-card .accordion-button:not(.collapsed) {
    color: #0f172a;
    background: #fafafa;
}

.accordion-card .accordion-button::after {
    transition: transform 0.25s ease;
}

.accordion-card .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-card .accordion-body {
    padding: 1.25rem 1.4rem;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    animation: fadeSlide 0.25s ease;
}

/* Fade & slide for open */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------
   Modern Accordion Styling
-------------------------------------------- */
.accordion {
    background-color: transparent;
}

/* Accordion Container */
.accordion-flush .accordion-item {
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Header button */
.accordion-button {
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    font-size: 1.05rem;
    background: transparent;
    color: #1f2937;
    transition: all 0.25s ease;
    border: none;
}

/* Remove default Bootstrap shading */
.accordion-button:not(.collapsed) {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

/* Hover effects */
.accordion-button:hover {
    background: rgba(255, 255, 255, 0.30);
    color: #0f172a;
}

/* Arrow icon animation */
.accordion-button::after {
    filter: brightness(0.2);
    transition: transform 0.25s ease, filter 0.2s;
}

.accordion-button:hover::after {
    filter: brightness(0.0);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Accordion body */
.accordion-body {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    animation: accordion-fade 0.3s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 14px 14px;
}

/* Smooth fade-in animation */
@keyframes accordion-fade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------
   ULTRA-MINIMAL FLAT ACCORDION
-------------------------------------------- */

.accordion-flat .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 8px;
}

.accordion-flat .accordion-button {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.accordion-flat .accordion-button:hover {
    background: #f1f3f5;
    border-color: #d1d5db;
}

.accordion-flat .accordion-button:not(.collapsed) {
    background: #e8eaed;
    border-color: #cbd5e1;
}

.accordion-flat .accordion-button::after {
    filter: brightness(0.4);
    transition: transform 0.2s ease;
}

.accordion-flat .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-flat .accordion-body {
    padding: 1rem 0.3rem 1rem 0.3rem;
    font-size: 0.95rem;
    color: #374151;
    animation: fadeMinimal 0.2s ease;
}

/* Simple soft fade */
@keyframes fadeMinimal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modern-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modern-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.modern-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.minimal-btn {
    padding: 0.35rem 0.6rem;
    border-radius: 0px;
    background-color: var(--color-theme-button) #00639B !important;
    border: 1px solid transparent;
    /*  border-bottom: 1px solid #1f2937;*/
    color: #1f2937 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;

}

.minimal-btn:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.minimal-btn:active {
    transform: scale(0.98);
}

/* Hamburger Button */
.hamburger-btn {
    font-size: 1.3rem;
    padding: 6px 10px;
    border: none;
    background: #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: none;
}

/* Dropdown menu container */
.hamburger-content {
    display: none;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    position: absolute;
    right: 0px;
    top: 127px;
    z-index: 999;
    min-width: 180px;
}

/* Show hamburger WHEN WRAP HAPPENS */
.top-bar-container.wrap .hamburger-btn {
    display: block;
}

/* Hide right section when collapsed */
.top-bar-container.wrap .top-bar-right > *:not(.hamburger-menu) {
    display: none !important;
}

/* Let center search expand on wrap */
.top-bar-container.wrap .top-bar-center {
    flex: 1 1 100%;
}

/* Mobile: full-width hamburger menu */
@media (max-width: 600px) {
    .hamburger-content {
        right: 0;
        left: 0;
        min-width: unset;
    }
}

/* When wrapping happens */
.top-bar-container.wrap {
    justify-content: center;
    text-align: center;
}

/* Center the left section (name only) */
.top-bar-container.wrap .top-bar-left {
    flex: 1 1 100%;
    justify-content: center;
}

/* Hide everything inside left except the name */
.top-bar-container.wrap .relation-links {
    display: none !important;
}

/* Center the hamburger */
.top-bar-container.wrap .hamburger-btn {
    display: block;
    margin: 0 auto;
}

/* Only show hamburger menu on right */
.top-bar-container.wrap .top-bar-right > *:not(.hamburger-menu) {
    display: none !important;
}

/* Search takes full width at top */
.top-bar-container.wrap .top-bar-center {
    flex: 1 1 100%;
    order: -1;
    margin-bottom: 4px;
}

/* Center hamburger row fully when wrapping */
.top-bar-container.wrap .hamburger-menu {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}

/* Prevent right section from pushing it left or right */
.top-bar-container.wrap .top-bar-right {
    flex: 0 0 100%;
    justify-content: center !important;
}

/* Ensure the button itself centers */
.top-bar-container.wrap .hamburger-btn {
    margin: 0 auto !important;
}

.hamburger-content {
    background: white;
    position: absolute;
    z-index: 999999 !important;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(70, 130, 255, 0.06), rgba(155, 80, 255, 0.07));
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Subtle gradient fade on hover */
.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(70, 130, 255, 0.06), rgba(155, 80, 255, 0.07));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-link:hover::after {
    opacity: 1;
}

/* Optional: smooth scale of image inside the card */
.card-link .post-img {
    transition: transform 0.4s ease;
}

.card-link:hover .post-img {
    transform: scale(1.04);
}
