:root {
    --sidebar-collapsed: 90px;
    --sidebar-expanded: 240px;
    --brand-blue: #242dff;
}

html {
    height: 100%;
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-family: 'Sora', sans-serif;
    flex-direction: column-reverse;
    overflow-x: hidden;
    background-color: #D9E9FF;
    min-height: 100vh;
    padding-bottom: 10px; 
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 100vh;
    background-color: #e1eafe;
    border-right: 1px solid #cbd6f2;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    z-index: 1000;
    transition: width 180ms ease-in-out;
}

.sidebar.expanded {
    width: 240px;
}

.menu-toggle i.ph {
    font-size: 30px;
}

.sidebar .bottom-icon {
    background-color: #242dff;
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    transition: all 180ms ease-in-out;
    position: absolute;
    bottom: 0px;
    /* Distance from the bottom of the sidebar */
    left: 20px;
    /* Distance from the left side */
}

/* Hide the text when not expanded */
.sidebar .bottom-icon span {
    display: none;
}

/* Adjust styles when the sidebar is expanded */
.sidebar.expanded .bottom-icon {
    background-color: #242dff;
    justify-content: center;
    /* Keep the icon centered */
    margin-bottom: 20px;
}

/* Display the text next to the icon */
.sidebar.expanded .bottom-icon::after {
    content: 'Ask Taixable';
    display: inline-block;
    margin-left: 15px;
    color: #242dff;
    background-color: transparent;
    font-weight: 500;
    font-size: 16px;
    line-height: 48px;
    position: absolute;
    left: 50px;
    top: 0;
    white-space: nowrap;
}

.sidebar .icon {
    background-color: #242dff;
    color: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
}

.sidebar.expanded .icon {
    justify-content: flex-start;
    padding: 12px 20px;
    width: 100%;
}

.sidebar .icon svg,
.sidebar .nav-link svg {
    width: 24px;
    height: 24px;
}

.i_icons_left_menu {
    font-weight: bold;
    font-size: 20px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 90px;
    /* Margin to account for the collapsed sidebar */
    height: 70px;
    width: calc(100% - 90px);
    /* Full width minus the sidebar */
    background-color: #e1eafe;
    border-bottom: 1px solid #cbd6f2;
    display: flex;
    align-items: center;
    z-index: 1050;
    /* Below modals (12000+) to allow modal interactions */
    transition: left 180ms ease-in-out, width 180ms ease-in-out;
    /* Smooth transition when sidebar expands */
}

/* Adjust when sidebar is expanded */
.sidebar.expanded+.top-nav {
    left: 240px;
    /* Adjust for expanded sidebar */
    width: calc(100% - 240px);
    /* Shrink content width accordingly */
}

.navbar {
    width: 100%;
}

.round-number-button {
    display: inline-flex;
    /* Center content inside the button */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    width: 20px !important;
    /* Fixed width */
    height: 20px !important;
    /* Fixed height */
    background-color: #242dff;
    /* Background color (red) */
    color: #ffffff;
    /* Text color (white) */
    border: none;
    /* No border */
    border-radius: 50%;
    /* Makes the button a perfect circle */
    font-size: 16px;
    /* Font size for the number */
    font-weight: bold;
    /* Bold text */
    cursor: pointer;
    /* Pointer cursor for interactivity */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Optional shadow for aesthetics */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Smooth hover/click effects */
    flex-shrink: 0;
    /* Prevent shrinking inside a flex container */
    flex-grow: 0;
    /* Prevent growing inside a flex container */
    margin-right: 10px;
}


.round-number-button:hover {
    transform: scale(1.1);
    /* Slight zoom on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    /* Increase shadow on hover */
}

.round-number-button:active {
    transform: scale(0.95);
    /* Slight shrink effect on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Reduce shadow on click */
}

.round-profile-button {
    display: inline-flex;
    /* Center content inside the button */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    width: 40px !important;
    /* Fixed width */
    height: 40px !important;
    /* Fixed height */
    background-color: #6610F2;
    /* Background color (red) */
    color: #ffffff;
    /* Text color (white) */
    border: none;
    /* No border */
    border-radius: 50%;
    /* Makes the button a perfect circle */
    font-size: 16px;
    /* Font size for the number */
    font-weight: bold;
    /* Bold text */
    cursor: pointer;
    /* Pointer cursor for interactivity */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Optional shadow for aesthetics */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Smooth hover/click effects */
    flex-shrink: 0;
    /* Prevent shrinking inside a flex container */
    flex-grow: 0;
    /* Prevent growing inside a flex container */
    margin-right: 10px;
}

/* Make the dropdown align to the right and look clean */
/* Dropdown menu adjustments */
.navbar .dropdown-menu {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    /* Ensure it appears over other elements */
    margin-top: 10px;
    /* Add spacing below the toggle icon */
}

/* Center elements in the dropdown */
.dropdown-menu .d-flex {
    justify-content: flex-start;
}

/* Adjust spacing inside dropdown */
.dropdown-menu button,
.dropdown-menu .d-flex {
    margin-bottom: 10px;
}


/* Adjust the navbar-toggler icon for better visibility */
.navbar-toggler {
    border: none;
    background-color: transparent;
    padding: 0;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.main_content_window {
    position: relative;
    top: 70px;
    left: 90px;
    /* Margin to account for the collapsed sidebar */
    width: calc(100% - 90px);
    /* Full width minus the sidebar */
    background: linear-gradient(to top right, #E3E8FF, #E2EFFF);
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 80px;
    transition: left 180ms ease-in-out, width 180ms ease-in-out;
}

/* Specific override for process pages to reduce top spacing */
.main_content_window.process-page {
    top: 0px;
}

/* Adjust main content when sidebar is expanded */
.sidebar.expanded+.main_content_window {
    left: 240px;
    width: calc(100% - 240px);
}

.form-check {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #C4DCF5;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.form-check:hover {
    border-color: #242dff;
}

/* Hide default radio buttons but keep them functional */
.form-check-input {
    position: absolute;
    opacity: 0;
}

/* Custom radio styling */
.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #C4DCF5;
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.form-check-input:checked+.custom-radio {
    border-color: #242dff;
    background-color: #242dff;
    box-shadow: inset 0 0 0 3px white;
}

/* Selected row highlight */
.form-check.selected {
    border-color: #242dff !important;
    background-color: #eef5ff;
}

.form-check img {
    width: 24px;
    height: 16px;
    margin-right: 10px;
}

.section-number {
    font-size: 40px;
    color: #242dff;
    font-weight: bold;
    line-height: 1;
}

.section-container {
    background-color: #f1f5fe;
    padding: 20px;
    border-radius: 10px;
}

.upload-btn {
    background-color: #d4d9ff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: #242dff;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-btn:hover {
    background-color: #c2c7ff;
}

.form-group {
    margin-bottom: 15px;
}

.input-field {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    /* Remove default border */
    background-color: white;
    outline: none;
    /* Remove default focus highlight */
}

/* When the input inside currency-input is focused, highlight the entire div */
.currency-input:focus-within {
    border: 2px solid #242dff;
    /* Change border color when input is focused */
    box-shadow: 0 0 5px rgba(36, 45, 255, 0.3);
    /* Optional glow effect */
}


.currency-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: white;
    transition: border-color 0.2s ease-in-out;
}

/* When the input inside currency-input is focused, highlight the entire div */
.currency-input:focus-within {
    border: 2px solid #242dff;
    /* Change border color when input is focused */
    box-shadow: 0 0 5px rgba(36, 45, 255, 0.3);
    /* Optional shadow effect */
}

.currency-symbol {
    margin-right: 8px;
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
}

.select-dropdown {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: white;
}

.date-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    background-color: white;
    transition: border-color 0.2s ease-in-out;
    width: 100%;
}

/* Ensure ONLY the outer container gets the blue focus */
.date-container:focus-within {
    border: 2px solid #242dff !important;
    /* Blue border */
    box-shadow: 0 0 5px rgba(36, 45, 255, 0.3);
    /* Optional glow */
}

/* Fix the calendar icon */
.date-icon {
    font-size: 16px;
    color: #343a40;
    margin-right: 8px;
}

/* REMOVE all borders and focus styles from the input */
.date-input {
    width: 100%;
    border: none !important;
    background-color: transparent;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    height: 30px;
    /* Fixed height */
}

/* Hide the default browser datepicker icon */
.date-input::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none;
}


table.separate-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #cbd6f2;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    font-size: 12px;
}

/* Apply a bottom border to each cell */
table.separate-table th {
    border-bottom: 1px solid #cbd6f2;
    color: grey;
    text-align: right;
    font-size: 12px;
}

table.separate-table td {
    border-bottom: 1px solid #cbd6f2;
    font-size: 12px;
    font-weight: normal;
    color: #555;
    text-align: right;
}

/* Remove the bottom border from the very last row’s cells, if you want */
table.separate-table tr:last-child th,
table.separate-table tr:last-child td {
    border-bottom: none;
    text-align: right;
}

/* PROFILE DROPDOWN STYLES */
.profile-dropdown {
    min-width: 200px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
}

.dropdown {
    position: relative !important;
}

.dropdown-menu.show {
    display: block !important;
    z-index: 9999 !important;
}

.profile-dropdown .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 4px;
}

.profile-dropdown .dropdown-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.profile-dropdown .dropdown-item:hover i {
    color: #374151 !important;
}

.profile-dropdown .text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626 !important;
}

.profile-dropdown .text-danger:hover i {
    color: #dc2626 !important;
}

.round-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6ea8fa;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    color: #ffffff;
    border: none;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    flex-grow: 0;
    margin-right: 10px;
}

.profile-name-display {
    cursor: default !important;
    pointer-events: none !important;
}

.profile-dropdown-toggle {
    cursor: pointer !important;
}

.profile-dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px;
}

.dropdown-toggle::after {
    display: none;
}

/* =============================
   Relocation Timeline Styling
============================= */

#timeline-months>span {
    flex: 1;
    text-align: center;
}

/* Hover effect for plane icon */
#plane-marker:hover {
    box-shadow: 0 0 0 3px rgba(36, 45, 255, 0.3);
}

/* Active drag feedback */
#plane-marker.dragging {
    cursor: grabbing;
}


/* ===== SIDEBAR NAVIGATION STYLES ===== */
.sidebar .nav-link {
    color: #2b2f36;
    background: transparent;
    border-radius: 10px;
    font-weight: normal;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    text-decoration: none;
    height: 48px;
    padding: 12px 14px;
    font-family: 'Sora', sans-serif;
}

.sidebar .nav-link:hover:not(.active) {
    background-color: #ebf3ff;
    color: var(--brand-blue);
}

.sidebar .nav-link.active,
.sidebar .nav-link.active:hover,
.sidebar .nav-link.active:focus {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 10px;
}

.sidebar .nav-link.active i {
    color: #ffffff !important;
}

.sidebar.expanded .nav-link span {
    display: inline;
    margin-left: 15px;
}

.bottom-icon span {
    display: none;
}

/* ===== LAYOUT ADJUSTMENTS FOR SIDEBAR EXPANSION ===== */
/* Global layout adjustments when sidebar is expanded */
body.sidebar-expanded .top-nav {
    left: 240px;
    width: calc(100% - 240px);
}

body.sidebar-expanded .main_content_window {
    left: 240px;
    width: calc(100% - 240px);
}

body.sidebar-expanded .sidebar {
    width: 240px;
}

/* Label visibility control */
.sidebar .nav-link span {
    display: none;
    white-space: nowrap;
}

body.sidebar-expanded .sidebar .nav-link span {
    display: inline;
}

/* Menu toggle styling */
.menu-toggle {
    cursor: pointer;
    background-color: transparent !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    margin-bottom: 20px;
    align-self: flex-start;
    margin-left: 10px;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
    background-color: transparent !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ===== WELCOME PAGE FUNCTION STYLES ===== */
/* Function Bar (Greeting) */
.function-bar {
    width: 100%;
    background: #cadcff;
    border-radius: 12px;
    padding: 20px 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    background-image: url("/template/taixable_assets/images/Pxl-ptrn.png"),
        radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 0);
    background-size: cover, 10px 10px;
}

.function-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 0);
    background-size: 10px 10px;
    border-radius: 12px;
    z-index: 0;
}

.function-logout {
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    z-index: 1;
}

.function-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 32px;
    color: #242dff;
    margin-right: 10px;
    position: relative;
}

.function-text {
    display: flex;
    flex-direction: column;
}

.function-title {
    font-size: 38px;
    font-weight: normal;
    margin: 0;
    color: #000;
}

.function-subtitle {
    font-size: 16px;
    color: #343a40;
    margin: 0;
}

.logout-link {
    color: #242dff;
    font-weight: bold;
    text-decoration: none;
}

/* Function Card */
.function-card {
    background: #ebf3ff;
    border-radius: 20px;
    border: 1px solid #cbd6f2;
    padding: 20px;
    text-align: left;
    transition: transform 0.2s ease-in-out;
}

.function-card:hover {
    transform: translateY(-5px);
}

/* Function Buttons */
.function-buttons {
    display: flex;
    gap: 10px;
}

.function-btn {
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.function-btn:hover {
    opacity: 0.8;
}

/* ===== PROPERTY VALUE FIELD VISIBILITY ===== */
.value-field {
    display: none !important;
}

.value-field.active {
    display: flex !important;
}

/* Base coming-soon class - makes everything transparent */
.coming-soon {
    opacity: 0.4;
    position: relative;
    pointer-events: none;
    cursor: not-allowed;
}

/* Disable all interactive elements inside coming-soon containers */
.coming-soon button,
.coming-soon a,
.coming-soon input,
.coming-soon select,
.coming-soon textarea {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Specifically disable form submissions */
.coming-soon form {
    pointer-events: none;
}

/* The slanted watermark overlay - now more subtle */
.coming-soon::before {
    content: "Disactivated";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    color: #999999;
    font-weight: normal;
    font-size: 14px;
    z-index: 999;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ===== PROPERTY MAIN PAGE STYLES ===== */
.tx-card {
    border-radius: 20px;
    border: 1px solid #cbd6f2;
    background: #ebf3ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.tx-card:hover {
    transform: translateY(-4px);
    border-color: #242dff;
}

.tx-card-selected {
    border-radius: 20px;
    border: 2px solid #242dff;
    background: #ebf3ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.tx-card-selected:hover {
    transform: translateY(-4px);
    border-color: #242dff;
}

/* Property category cards - base styles without coming-soon overrides */
.property-card:not(.coming-soon) {
    border-radius: 20px;
    border: 1px solid #cbd6f2;
    background: #ebf3ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    height: 100%;
}

.property-card:not(.coming-soon):hover {
    transform: translateY(-4px);
    border-color: #242dff;
}

/* Page transition styles */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-exit {
    opacity: 1;
    transform: translateY(0);
}

.page-transition-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card animation on page load - property main page specific */
.property-main-page .function-card {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.property-main-page .function-card:nth-child(1) {
    animation-delay: 0.1s;
}

.property-main-page .function-card:nth-child(2) {
    animation-delay: 0.2s;
}

.property-main-page .function-card:nth-child(3) {
    animation-delay: 0.3s;
}

.property-main-page .property-card:nth-child(1) {
    animation-delay: 0.2s;
}

.property-main-page .property-card:nth-child(2) {
    animation-delay: 0.3s;
}

.property-main-page .property-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb improvements */
.breadcrumb-item a {
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #242dff !important;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 45, 255, 0.3);
}

/* Tab Panels */
.tab-panel {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.tab-panel[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy Support - Custom Tabs */
.custom-tabs {
    display: flex;
    border-bottom: 1px solid #C4DCF5;
    background-color: transparent;
    margin-bottom: 1.5rem;
    width: 100%;
}

.custom-tabs .nav-link {
    color: #4C6F8F;
    background-color: transparent;
    border: none;
    padding: 16px 24px;
    border-radius: 0;
    margin-right: 0;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.custom-tabs .nav-link:hover {
    color: #242DFF;
    background-color: transparent;
    border-bottom: 3px solid #242DFF;
    text-decoration: none;
}

.custom-tabs .nav-link.active {
    color: #242DFF !important;
    background-color: transparent !important;
    border-bottom: 3px solid #242DFF !important;
    font-weight: 500;
}

.custom-tabs .nav-link:focus {
    outline: 2px solid #242DFF;
    outline-offset: -2px;
}

/* Tab Content Sections */
.tab-content-section {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.tab-content-section[style*="display: none"],
.tab-content-section[style*="display:none"] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-tabs {
        flex-wrap: wrap;
        border-bottom: none;
    }

    .tab-button,
    .custom-tabs .nav-link {
        flex: 1;
        text-align: center;
        border-bottom: 1px solid #C4DCF5;
        border-right: 1px solid #C4DCF5;
    }

    .tab-button:last-child,
    .custom-tabs .nav-link:last-child {
        border-right: none;
    }

    .tab-button[aria-selected="true"],
    .custom-tabs .nav-link.active {
        border-bottom: 3px solid #242DFF;
    }
}

/* Loading States */
.tab-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tab-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 12px;
    height: 12px;
    border: 2px solid #242DFF;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Change button text style */
.change-btn {
    background: #242DFF;
    border: none;
    color: white;
    font-size: 14px;
    padding: 0 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}

.change-btn:hover {
    background: #0009DC;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== PROPERTY CARD CONTAINERS ===== */
.property-card {
    background-color: #ebf3ff;
    border-radius: 20px;
    height: 100%;
    overflow: hidden;
}

.property-card-header {
    display: flex;
    width: 100%;
    align-items: center;
    background-color: #ebf3ff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    margin-bottom: 0;
}

.property-card-body {
    background-color: #ebf3ff;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    padding-top: 0;
}

/* ===== FLAG AND HEADER STYLES ===== */
.flag-container {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.country-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
}

.header-content {
    flex: 1;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}

.country-name {
    font-size: 14px;
    font-weight: 400;
    color: #343A40;
    margin-bottom: 4px;
}

.currency-info {
    font-size: 11px;
    color: #4C6F8F;
    line-height: 1.3;
}

.header-action {
    margin-left: 15px;
}

.btn-edit {
    font-size: 12px;
    border: 0;
    padding: 5px 10px;
    width: 75px;
    border-radius: 10px;
    background-color: #D4DFFA;
    color: #242dff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    background-color: #C0D2FF;
    transform: translateY(-1px);
}

/* ===== VALUE DISPLAYS ===== */
.value-header {
    margin-bottom: 16px;
}

.value-label {
    font-size: 14px;
    color: #4C6F8F;
    margin-bottom: 4px;
}

.value-amount {
    font-size: 28px;
    font-weight: bold;
    color: #343A40;
    margin-bottom: 8px;
}

.value-sublabel {
    font-size: 14px;
    color: #4C6F8F;
}

.value-highlight {
    color: #343A40;
    font-weight: 400;
}

/* ===== SUMMARY TABLES ===== */
.summary-table {
    background-color: transparent;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #C4DCF5;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: transparent;
    border-bottom: 1px solid #C4DCF5;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row-header {
    background-color: #DBEBFF;
}

.summary-label {
    font-size: 14px;
    color: #4C6F8F;
}

.summary-value {
    font-size: 14px;
    font-weight: 400;
    color: #343A40;
}

.summary-label-bold {
    font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
}

.section-indicator {
    width: 8px !important;
    height: 8px !important;
    background-color: #242DFF !important;
    margin-right: 8px !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}

.section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
    font-family: 'Sora', sans-serif !important;
}

.section-content {
    text-align: left !important;
    color: #4C6F8F !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* ===== FEEDBACK BUTTONS ===== */
.feedback-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.feedback-label {
    font-size: 12px;
    color: #4C6F8F;
    margin-right: 8px;
}

.feedback-btn {
    color: #4C6F8F;
    font-size: 14px;
    margin-right: 4px;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
}

.feedback-btn:hover {
    color: #495057;
    transform: scale(1.1);
}

.feedback-btn.active.thumbs-up {
    color: #28a745;
}

.feedback-btn.active.thumbs-down {
    color: #dc3545;
}

.feedback-btn.submitted {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== TAX BREAKDOWN DETAILS ===== */
.tax-breakdown-container {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #242dff;
}

.tax-rate-display {
    font-size: 13px;
    font-weight: 600;
    color: #4C6F8F;
    margin-bottom: 4px;
}

.tax-component-item {
    font-size: 12px;
    color: #4C6F8F;
    margin-bottom: 3px;
}

/* ===== REPORTING ITEMS ===== */
.reporting-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.reporting-link {
    color: #242DFF;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.reporting-link:hover {
    text-decoration: underline;
}

.reporting-empty {
    text-align: left;
    color: #4C6F8F;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ECFFF6;
    color: #198754;
    border: 1px solid #75B798;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease-out;
}

.toast-notification.error {
    background: #FFEFF1;
    color: #B02A37;
    border-color: #F1AEB5;
}

.toast-notification.info {
    background: #F7F1FF;
    color: #6610F2;
    border-color: #C29FFA;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== LOADING SPINNER ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225, 234, 254, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #D4DFFA;
    border-top-color: #242dff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== GLOBAL CONSIDERATIONS (GC) COMPONENT STYLES ===== */
/* Key-components card surface */
.card-key-components {
    background: #ebf3ff;
}

/* 32 × 32 blue icon square */
.icon-square {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #C9DFFD;
    color: #242DFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status pill badges */
.status-pill {
    font-size: 13px;
    font-weight: 400;
    max-width: 52px;
    max-height: 20px;
    padding: 2px 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-pill.status-yes {
    background: #28A745;
    color: #fff;
}

.status-pill.status-no {
    background: #DC3545;
    color: #fff;
}

/* Rotate animation for carets */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}


/* Parent grid: 2 responsive columns with 11 rows for subsection alignment */
.sync-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  grid-template-rows: repeat(13, auto);
  gap: 24px;
  gap: 32px; /* Increased from 24px for more space between columns */
  align-items: start;
  grid-auto-flow: column;
}

/* Make col-md-6 transparent with display:contents */
.sync-row > .col-md-6 {
  display: contents;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Sync sections will be direct grid children - using subgrid for subsection alignment */
.sync-section {
  min-height: auto !important;
  margin: 0; /* Reverted to original margin */
  padding: 24px !important;
  display: grid;
  grid-template-rows: subgrid;
}

/* Specific row spans for each card type */
.sync-section:nth-child(1) {
  grid-row: span 1;  /* Header: 1 section */
}

.sync-section:nth-child(2) {
  grid-row: span 6;  /* Income: 4 sections */
}

.sync-section:nth-child(3) {
  grid-row: span 4;  /* Bonus: 4 sections */
}

.sync-section:nth-child(4) {
  grid-row: span 2;  /* Local Taxes: 2 sections */
}

.sync-row-social-security {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  grid-template-rows: repeat(2, auto);   /* key change: only 2 rows */
  gap: 32px;
  align-items: start;
  grid-auto-flow: column;                /* same as Country View */
}

/* keep your flattening if you want */
.sync-row-social-security > .col-md-6 {
  display: contents;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sync-row-social-security .sync-subsection {
  margin: initial !important;   /* allow mt-3/mb-3 to work */
  padding: 0 !important;
}


/* each card consumes both rows, so only one fits per column */
.sync-row-social-security .sync-section {
  grid-row: span 3;
}



.sync-subsection {
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* HR doesn't need padding */
.sync-hr {
  min-height: auto !important;
  margin: 0;
}

/* Mobile stacks */
@media (max-width: 767px) {
  .sync-row {
    grid-template-columns: 1fr;
  }
}

/* New utility class for adding vertical space between sync sections */
.mt-sync-gap {
  margin-top: 24px !important;
}

/* ===== EDIT MODAL STYLES ===== */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 12000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content-wrapper {
    background: #EBF3FF !important;
    border-radius: 12px !important;
    max-width: 732px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #E5E7EB !important;
}

.modal-header-custom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: transparent !important;
    padding: 20px 24px !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid #C4DCF5 !important;
}

.modal-title {
    margin: 0 !important;
    color: #111827 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    font-family: 'Sora', sans-serif !important;
    line-height: 1.3 !important;
}

.modal-close {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    padding: 6px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}

.modal-close:hover {
    background-color: #F3F4F6 !important;
    color: #374151 !important;
}

.modal-body-custom {
    padding: 24px !important;
    background-color: #EBF3FF !important;
}

/* Property transaction page layout */
body.property-transaction-page {
    background-color: #ffffff;
    color: #212529;
}
body.property-transaction-page .main_content_window {
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}
body.property-transaction-page .modal-backdrop,
body.property-transaction-page .offcanvas-backdrop,
body.property-transaction-page .sidebar-overlay {
    display: none;
}

/* Shared wide modal styling for use cases and current countries */
.wide-modal-xl .modal-dialog {
    width: calc(100% - 40px) !important;
    max-width: 1400px !important; /* match main content feel (no oversized modal) */
    margin: 24px auto !important;
}

.wide-modal-xl .modal-content {
    background-color: #ffffff;
}

/* Wide modals (current countries + use cases): sit above page widgets */
.current-countries-modal,
.cv-usecases-modal,
.sr-usecases-modal {
    z-index: 12010;
}
.current-countries-modal .modal-dialog,
.current-countries-modal .modal-content,
.cv-usecases-modal .modal-dialog,
.cv-usecases-modal .modal-content,
.sr-usecases-modal .modal-dialog,
.sr-usecases-modal .modal-content {
    position: relative;
    z-index: 12011;
    pointer-events: auto;
}
.modal-backdrop.show {
    z-index: 12000;
}

/* ===== FEEDBACK MODAL (CUSTOM OVERLAY) ===== */
#feedbackModal.modal-overlay,
#feedbackModal_return.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Scoped to feedback modals only (prevents shrinking Bootstrap .modal-content) */
#feedbackModal .modal-content,
#feedbackModal_return .modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

#feedbackModal_return .modal-content {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#feedbackModal .modal-content h2,
#feedbackModal_return .modal-content h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

#feedbackModal .modal-content textarea {
    width: 100%;
    resize: vertical;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

#feedbackModal .modal-actions,
#feedbackModal_return .modal-actions {
    display: flex;
    justify-content: space-between;
}

#feedbackModal .cancel-btn,
#feedbackModal .submit-btn,
#feedbackModal_return .cancel-btn,
#feedbackModal_return .submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

#feedbackModal .cancel-btn,
#feedbackModal_return .cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

#feedbackModal .submit-btn,
#feedbackModal_return .submit-btn {
    background-color: #4f46e5;
    color: white;
}

.wide-modal-xl .table-responsive {
    max-height: 75vh;
    overflow-x: hidden;
}

.wide-modal-xl table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
    background-color: #ffffff;
}

.wide-modal-xl thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.wide-modal-xl th,
.wide-modal-xl td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ===== MODAL STYLES (CENTRALIZED) ===== */
.tx-modal-trigger {
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    background-color: #242dff;
    color: #c9dffd;
    border: none;
}

.tx-modal-trigger--wide {
    padding: 10px 18px;
    min-width: 170px;
}

.tx-modal-close {
    border-radius: 10px;
}

.wide-modal-xl .modal-header {
    border-bottom: 1px solid #C4DCF5;
}

.wide-modal-xl .modal-footer {
    border-top: 1px solid #C4DCF5;
}

.tx-col-capability {
    width: 38%;
}

/* Keep current-countries header readable */
.current-countries-modal thead th {
    white-space: nowrap;
}

.current-countries-modal td:first-child {
    white-space: nowrap;
}

/* PDF contract modal sizing */
.pdf-contract-modal-dialog {
    width: 80vw !important;
    max-width: 80vw !important;
    height: calc(100vh - 160px) !important;
}

.pdf-contract-modal-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
}

/* Share modal sizing */
.share-modal-dialog {
    width: 650px !important;
    max-width: 650px !important;
}

.share-modal-content {
    width: 100% !important;
    max-width: none !important;
}
.custom-navbar {
    background-color: #D9E9FF;
    padding-top: 16px;
    padding-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 1050;
    /* Below modals (12000+) to allow modal interactions */
    }
    
    .logo-text {
    font-weight: 600;
    font-size: 20px;
    color: #2c55ff !important;
    text-decoration: none;
    }
    
    .navbar-nav .nav-link {
    color: #333;
    font-weight: 400;
    font-size: 15px;
    }
    
    .navbar-nav .nav-link:hover {
    color: #2c55ff;
    }
    
    .login-btn {
    background-color: #242DFF;
    color: white;
    font-weight: 400;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 12px;
    text-decoration: none;
    }
    
    .login-btn:hover {
    background-color: #5159ff;
    color: white;
    
    }
    
    .nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    }
    
    
    .hero-section {
      padding: 60px 0;
    }
    
    .hero-heading {
      font-size: 52px;
      font-weight: 400;
      line-height: 100%;
      letter-spacing: -0.04em;
      color: #000;
    }
    
    .hero-subheading {
      font-size: 19px;
      font-weight: 300;
      line-height: 32px;
      letter-spacing: 0;
      color: #444;
      margin-top: 20px;
    }
    
    .cta-button {
      background-color: #242DFF;
      color: white;
      border: none;
      padding: 12px 24px;
      font-weight: 500;
      font-size: 16px;
      border-radius: 12px;
      min-height: 60px;
    }
    .cta-button:hover {
    background-color: #5159ff;
    color: white;
    }
    .image-placeholder {
      background-color: #D9E9FF;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
      min-height: 300px;
      font-weight: 600;
      color: #444;
      border-radius: 8px;
    
    }
    
    .info-section h3 {
      font-size: 24px;
      font-weight: 500;
      color: #000;
    }
    
    .info-section p {
      font-size: 16px;
      color: #555;
      max-width: 700px;
      margin: auto;
    }
    
    .info-block {
        background-color: #D9E9FF !important;
    }
    .question-box {
      flex: 1 1 260px;
      background-color: #dfe9ff !important;
      border-radius: 16px;
      box-shadow: 0 0 8px rgba(0,0,0,0.05);
      min-height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .question-box p {
      font-size: 12px;
      color: #333;
      height: auto;
    }
    
    @media (max-width: 768px) {
      .question-box {
        height: auto !important;
        min-height: auto !important;
      }
    
      .question-box p {
        height: auto !important; /* ✅ THIS is the key */
      }
    }
    
      
    .fixed-footer {
      bottom: 0;
      left: 0;
      right: 0;
      height: 80px;
      background-color: transparent;
      z-index: 999;
    }
    
    .fixed-footer small {
      font-size: 13px;
      color: #4a5c77;
    }
    

    .footer-image {
        max-height: 80px;
        object-fit: contain;
        float: right;
      }
      
    .max-image-width {
    max-width:845px;
    }
    
    @media (max-width: 768px) {
    .max-image-width {
    width: 140vw;           /* Go beyond screen width */
    transform: translateX(15%);
    height: auto;
    max-width: unset !important;  /* override Bootstrap’s img-fluid max-width */
    display: block;
    }
    
    .image-placeholder {
    overflow: hidden;       /* Prevent horizontal scroll */
    }
    
    .hero-section {
    padding-top: 20px;
    padding-bottom: 40px;
    }
    
    .hero-heading {
    font-size: 32px;
    line-height: 1.2;
    }
    
    .hero-subheading {
    font-size: 16px;
    line-height: 1.5;
    }
    
    .cta-button {
    font-size: 14px;
    padding: 10px 20px;
    }
    
    /* Reset and container */
    .mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #eaf2ff;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 0;
    }
    
    /* Header layout */
    .mobile-menu-header {
    padding: 16px 24px;
    border-bottom: 1px solid #d0dff7;
    }
    
    .mobile-menu-header img {
    max-height: 30px;
    }
    
    .mobile-nav {
      list-style: none;
      margin: 0;
      padding: 0;
      width: 100%;
      background-color: #EBF3FF;
    }
    
    .mobile-nav li {
      width: 100%;
      margin: 0;
      padding: 0;
      border-bottom: 1px solid #d0dff7;
    }
    
    .mobile-nav .nav-link {
      display: block;
      width: 100%;
      padding: 16px 24px;
      color: #000;
      text-decoration: none;
    }
    
    
    /* Login button alignment */
    .login-container {
    padding: 16px 24px;
    }
    
    
    .cta-button-group {
    flex-direction: column !important;
    align-items: center;
    }
    
    .cta-button {
    width: 100%;
    text-align: center;
    max-height:20px;
    }
    
    .cta-button-group a {
    width: 100%;
    text-align: center;
    }
    
    .cta-button-group .btn-link {
    margin-top: 12px !important;
    }
    .mobile-login-btn {
      background-color: #242DFF !important;
      color: white;
      font-weight: 500;
      font-size: 16px;
      border-radius: 12px;
      padding: 12px 0;
      display: block;
      text-align: center;
      width: 100%;
      margin-top: 10px;
    }
    }
    @media (max-width: 768px) {
        .question-box {
            flex: 1 1 100%;
        }
        }

        .team-section {
        background-color: #D9E9FF;
        }
        .team-card-wrapper {
        overflow: hidden;
        border-radius: 0 0 16px 16px;
        background-color: #e6f0ff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        }

        .team-image-wrapper img.team-photo {
        display: block;
        width: 100%;
        height: auto;
        }

        .team-card {
        padding: 20px;
        }

        .mentor-card
        {
            background-color: #e6f0ff;
            border-radius: 16px 0 16px 0px;
            text-align: left;
            padding:0px;

        }
        .mentor-photo
        {
            max-width:200px;
        }    
      
      main {
        flex: 1;
      }

      /* Frontend pages - fix footer position by overriding column-reverse */
      body.frontend-page {
        flex-direction: column;
      }



