/* Root Variables */
:root {
    --primary-color: #482963;
    --primary-color-light: #48296346;
    --secondary-color: #00B1A8;
    --success-color: #69BD28;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
    --purple-color: #482963;
    /* Main brand purple */
    --teal-color: #00B1A8;
    /* Main brand teal */
    --placeholder-color: #CDC1E4;
    --background-color: #F5F5F5;

    --Fileinput-border-color: #007AFF;

    --font-size-15: 15px;
    --font-size-18: 18px;
    --font-size-20: 20px;
    --font-size-25: 25px;

    /* OTP Page Specific Colors */
    --otp-input-border: #00B1A8;
    --otp-button-bg: #3B0F52;
    --otp-cancel-link: #3B0F52;
    --otp-timer-color: #dc3545;
    --otp-bg-top-shape: #00b1a833;
    /* Light teal for background shape */
}

/* Base Styles */
body {
    font-family: 'Rubik';
    margin: 0;
    padding: 0;

}

.text-ok {
    color: var(--success-color);
}

/* !loginpage  */



/*! --- OTP Verification Page Styles start--- */
/* .otp-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.top-v-shape {
    position: absolute;
    top: 0;
    left: 0;
    height: 300px;
    width: 100%;
    background-color: var(--otp-bg-top-shape);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
    z-index: 0;
}


.otp-card {
    margin-top: 150px;
    position: relative;
    border-radius: 12px;
    width: 100%;
    z-index: 1;
}

.laurus-logo {

    width: 160px;
    height: 100px;
    margin-top: -70px;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.otp-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.otp-message {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.otp-phone-number {
    font-weight: 500;
    color: var(--secondary-color);
}

.otp-input-group {
    gap: 12px;
}

.otp-input {
    width: 55px;
    height: 55px;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--otp-input-border);
    border-radius: 8px;
    color: var(--primary-color);
    outline: none;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 21, 95, 0.2);
}

.otp-input::-webkit-inner-spin-button,
.otp-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-verify-btn {
    background-color: var(--otp-button-bg);
    border-color: var(--otp-button-bg);
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
}

.otp-verify-btn:hover {
    background-color: #2d0f4c;
    border-color: #2d0f4c;
}

.otp-cancel-link {
    color: var(--otp-cancel-link);
    text-decoration: none;
    font-weight: 500;
}

.otp-cancel-link:hover {
    text-decoration: underline;
}

.otp-timer {
    font-size: 16px;
    font-weight: 600;
    color: var(--otp-timer-color);
} */

.otp-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    overflow: hidden;
}

.top-v-shape {
    position: absolute;
    top: 0;
    left: 0;
    height: 300px;
    width: 100%;
    background-color: var(--otp-bg-top-shape);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
    z-index: 0;
}

.otp-card {
    position: relative;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    width: 100%;
    max-width: 600px;
    z-index: 1;
    margin-top: 100px;
}

.laurus-logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 5px;
    margin-top: -100px;
    border-radius: 0.75rem;
    border: none;

}

.laurus-logo {
    width: 250px;
    height: 150px;
}

.otp-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.otp-message {
    text-align: center;
    font-size: var(--font-size-20);
    color: black;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.otp-phone-number {
    font-weight: 500;
    color: black;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.otp-input {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--otp-input-border);
    border-radius: 0.5rem;
    color: var(--primary-color);
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.otp-input::-webkit-inner-spin-button,
.otp-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-verify-btn {
    background-color: var(--otp-button-bg);
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.otp-verify-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.otp-verify-btn:active {
    transform: translateY(0);
}

.otp-cancel-link {
    color: var(--otp-cancel-link);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.otp-cancel-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.otp-timer {
    font-size: 1rem;
    font-weight: 600;
    color: var(--otp-timer-color);
}

.resend-link {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.resend-link.disabled {
    color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .otp-card {
        padding: 2rem 1rem;
        margin-top: -80px;
        z-index: 2;
    }

    .laurus-logo-card {
        width: 250px;

        margin-top: 40px;
    }

    .otp-input {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 800px) {
    .otp-card {
        padding: 2rem 1rem;
        margin-top: 80px;
        z-index: 2;
    }
}


@media (max-width: 400px) {



    .otp-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

@media (max-height :800px) {
    .top-v-shape {
        height: 100px;
        width: 100%;
    }

    .laurus-logo-card {
        padding: 2px;
        margin-top: -130px;
    }
}

/*! --- SuccessMessage Verification Page Styles start--- */


.confirm-card {
    margin-top: -150px;
    position: relative;
    border-radius: 12px;
    width: 100%;
    z-index: 1;

}

/*! --- SuccessMessage Verification Page Styles start--- */


/*! --- OTP Verification Page Styles end--- */


/* !--- General Pre-Onboarding Page Styles (basic,contact,role,finance,document,ack) --- */
/* Welcome Section */

.col-md-sticky-top {
    position: sticky;
    top: 0;
    /* Or whatever pixel value you want it to stick at */
    z-index: 1020;
    /* Ensure it stays above other content */
}

.bg-sticky-top-color {
    background-color: var(--background-color);

}

.welcome-section {
    background-color: var(--background-color);

}

.laurus-logo-preonboard {
    width: 180px;
    height: 120px;
    margin-top: -40px;
}


.pre-onboarding-title {

    font-size: var(--font-size-25);
    font-weight: 400;
    margin: 0;
}

.welcome-message .subtitle {
    color: var(--success-color);
    font-size: var(--font-size-18);
    margin-bottom: 15px;
}

.status-section {
    padding-top: 10px;
}

.status-badge-inline {
    background-color: #ffc107;
    color: #000;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.employee-name {
    color: var(--success-color);
    font-weight: 600;
}

.employee-details {
    padding: 10px 0px 10px 10px;
    background-color: white;
    font-size: 14px;

    border-radius: 6px;
}

.detail-item {
    display: inline-block;
    white-space: nowrap;

}

.detail-item .key {
    color: var(--primary-color);
}

.logged-info {
    color: var(--secondary-color);
    font-weight: 300;
}


/* Navigation Tabs */
.nav-tabs-section {
    background-color: #fff;
    border-radius: 6px;
    border-bottom: 1px solid rgb(196, 196, 196);
}

.custom-tabs {
    border-bottom: none;
    margin-bottom: 0;
    justify-content: space-between;
}

.custom-tabs .nav-link {
    color: #666;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-size: var(--font-size-15);
}

.custom-tabs .nav-link:hover {
    color: var(--teal-color);
    border-color: transparent;
}

.custom-tabs .nav-link.active {
    color: var(--teal-color);
    background-color: transparent;
    border-bottom-color: var(--teal-color);
    font-weight: 600;
}

.custom-tabs .nav-link i {
    font-size: 14px;
}

.nav-item-img {
    width: 20px;
    /* grey color
    filter: invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%) contrast(100%); */
    filter: invert(20%) sepia(80%) saturate(1200%) hue-rotate(270deg) brightness(60%) contrast(100%);
    transition: filter 0.3s ease;
    /* Smooth transition for color change */
}

/* Filter for SVG images when their parent nav-link is active */
.custom-tabs .nav-link.active .nav-item-img {
    filter: invert(40%) sepia(90%) saturate(1000%) hue-rotate(150deg) brightness(90%) contrast(100%);
}

/* Form Content */
.form-content {

    min-height: calc(100vh - 200px);
}



.section-title {
    color: var(--success-color);
    font-size: var(--font-size-18);
    font-weight: 600;
    position: relative;
}

.form-container {
    background-color: white;

    border-radius: 6px;
}



/* --- Custom Styles for Form Controls (New/Modified Rules) --- */

/* Global appearance reset for forms to remove browser defaults */
select.form-select,
input[type="date"],
input[type="number"] {
    -webkit-appearance: none;
    /* For Chrome, Safari, and newer Edge */
    -moz-appearance: none;
    /* For Firefox */
    appearance: none;
    /* Standard property */
}

/* For Bootstrap select dropdowns: Override Bootstrap's custom background SVG arrow */
.form-select {
    /* Keep this as .form-select to specifically target Bootstrap selects */
    background-image: none !important;
    /* Forces removal of Bootstrap's SVG arrow */
    padding-right: 0.75rem;
    /* Reset padding if Bootstrap added extra for its arrow */
}

/* For input type="date": Hide native calendar picker indicator */
/* input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

input[type="date"]::-moz-calendar-picker-indicator {
    display: none;
    -moz-appearance: none;
} */
input[type="date"]::-webkit-calendar-picker-indicator {
    display: block;
    /* Ensure it's rendered */
    position: absolute;
    /* Position it */
    top: 0;
    left: 0;
    width: 100%;
    /* Make it cover the whole input */
    height: 100%;
    opacity: 0;
    /* Make it completely invisible */
    cursor: pointer;
    /* Ensure pointer appears */
    z-index: 3;
    /* Place it above your custom icon, but it's invisible */
    -webkit-appearance: none;
    /* Still remove default styling if any */
}

/* For older IE/Edge: Hide the native dropdown arrow that can appear on selects/date inputs */
select::-ms-expand,
input[type="date"]::-ms-expand {
    display: none;
}

/* Hide spin buttons for number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    /* Firefox specific to remove native spinner */
}

/* Styles for your custom calendar icon INSIDE the date input */

/* Parent for positioning context - this class is already in your HTML for date inputs */
.position-relative {
    position: relative;
}

/* Styling for the custom calendar icon overlay */
.calendar-icon-overlay {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    width: 7%;
    background-color: var(--secondary-color);
    position: absolute;
    top: 50%;
    /* Center vertically */
    right: -0.5px;
    /* Position from the right */
    transform: translateY(-50%);
    /* Adjust for perfect vertical centering */
    pointer-events: none;
    /* Ensures clicks pass through to the input */
    z-index: 2;
    /* Ensures it's above the input field */
    display: flex;
    /* Use flex to align img inside */
    align-items: center;
    /* Center img vertically */
    justify-content: center;
    /* Center img horizontally */
    height: 100%;
    /* Make its height similar to input for better clickability */
}

/* NEW: Styling for custom dropdown icon overlay */
.dropdown-icon-overlay {
    /* Using a new class for dropdowns */
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    width: 7%;
    background-color: var(--secondary-color);
    position: absolute;
    top: 50%;
    /* Center vertically */
    right: 0px;
    /* Position from the right */
    transform: translateY(-50%);
    /* Adjust for perfect vertical centering */
    pointer-events: none;
    /* Ensures clicks pass through to the select */
    z-index: 2;
    /* Ensures it's above the select element */
    display: flex;
    /* Use flex to align img inside */
    align-items: center;
    /* Center img vertically */
    justify-content: center;
    /* Center img horizontally */
    height: 100%;
    /* Make its height similar to select for better clickability */
}


.calendar-icon-overlay img,
.dropdown-icon-overlay img {
    /* Apply to both icon types */
    width: 13px;
    height: 13px;
    display: block;
}

/* Add padding to the date input itself to prevent text from going under the icon */
input[type="date"].form-control {
    padding-right: 40px !important;
    /* Adjust this value based on icon size + desired spacing */
}

/* Add padding to the select input itself to prevent text from going under the icon */
select.form-select {
    padding-right: 40px !important;
    /* Adjust this value based on icon size + desired spacing */
}

select[disabled] {
    background-color: white;
}


.form-label {
    font-style: normal;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: var(--font-size-15);
}

.form-control,
.form-select {
    border: 0.5px solid var(--secondary-color);
    border-radius: 4px;
    padding: 12px 12px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal-color);
    border: 0.2px;
    outline: none;
}

.form-control::placeholder {
    color: var(--placeholder-color);
    font-size: 13px;
}

/* Placeholder styling for selects */
select.form-select:invalid {
    color: var(--placeholder-color);
}

select.form-select option {
    color: black !important;
    transition: background-color 0.2s ease !important;


}

select.form-select option:hover {
    background-color: #00B1A8 !important;
    /* Teal hover */
    color: white !important;
}



.input-group-text {
    background-color: var(--teal-color);
    border-color: var(--teal-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-group-text:hover {
    background-color: red;
    /* This seems like a test, keep it if intended */
}

.date-picker-btn {
    cursor: pointer;
}

/* Table Styles */
.education-table,
.dependents-table {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    /* Added border-radius for the table itself */
    overflow: hidden;
    /* Ensures content respects rounded corners */
    /* Add this if you want all tables to be fixed layout, but generally leave it unless necessary */
    /* table-layout: fixed; */
    width: 100%;
    /* Ensure table takes full width of its container */
}

/* Added specific overflow-x to the .table-responsive wrapping the tables */
.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 100%;
    display: block;

}



.edu-depen {
    border: 1px solid #e4e6e7;
}

.education-table th,
.dependents-table th {
    background-color: #f7f7f7;
    font-size: var(--font-size-15);
    color: var(--primary-color);
    padding: 12px 8px;
    font-weight: 400;
    text-align: start;
    vertical-align: middle;
    white-space: nowrap;
    /* Prevent headers from wrapping */
}

.education-table td,
.dependents-table td {
    padding: 15px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    border-top: 1px solid #f1f3f4;
    white-space: nowrap;
    /* Prevent cell content from wrapping */
}

.education-table .form-control,
.dependents-table .form-control,
.education-table .form-select,
.dependents-table .form-select {
    font-size: 13px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    min-width: 120px;
    /* Set a minimum width for inputs within tables */
}

/* Add More Button */
.btn-link {
    text-decoration: none;
    padding: 8px 0;
    border: none;
    background: none;
    display: inline-flex;
    /* Use flex to align icon and text */
    align-items: center;
    /* Center items vertically */
    color: var(--primary-color);
    /* Set default color */
}

.btn-link:hover {
    text-decoration: none;
    color: var(--success-color) !important;
}

.btn-add {
    background-color: var(--otp-button-bg);
    border-color: var(--otp-button-bg);
    color: white;
    padding-left: 10px;
    padding-right: 10px;


    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-add:hover {

    background-color: var(--secondary-color);
    color: white;
}

.btn-clr {
    background-color: transparent;
    border: 1px solid var(--otp-button-bg);
    color: var(--otp-button-bg);
    width: 100px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;

}

.btn-clr:hover {
    background-color: var(--otp-button-bg);
    border: 1px solid var(--otp-button-bg);
    color: white;

}

.btn-clr-add {
    width: 100px;

}

/*  model design */
.model_footer {
    border: none;
}

.model-footer-btn {
    width: 80px;
}


/* Confidential Notice */
.confidential-notice {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 4px;
    /* margin-top: 30px; */
    /* Removed, controlled by parent row/col */
    font-size: 14px;
    color: #495057;
    border-left: 4px solid var(--primary-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

}

.btn-save {
    background-color: transparent;
    border: 1px solid var(--otp-button-bg);
    color: var(--otp-button-bg);
    width: 100px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-save:hover {
    background-color: var(--otp-button-bg);
    color: white;
    border-color: var(--otp-button-bg);
}

.btn-next {
    background-color: var(--otp-button-bg);
    border-color: var(--otp-button-bg);
    color: white;
    width: 100px;

    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-next:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}


/* Remove Row Buttons */
.remove-education-row,
.remove-dependent-row {
    border: none;
    /* Remove border, as we're styling the background and icon */
    color: var(--danger-color);
    /* Text color, if any text is inside */
    background-color: #ff00001e;
    /* Light red background */
    padding: 6px 7px;
    border-radius: 100%;
    /* Makes it a circle */
    transition: all 0.3s ease;
    font-size: 12px;
    /* Font size for any text, though it's an icon */
    display: flex;
    /* Use flexbox to center the image */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    cursor: pointer;
    /* Indicate it's clickable */
}

.edit-dependent-row {
    border: none;
    /* Remove border, as we're styling the background and icon */

    background-color: #007bff10;
    /* Light red background */
    padding: 6px 7px;
    border-radius: 100%;
    /* Makes it a circle */
    transition: all 0.3s ease;
    font-size: 12px;
    /* Font size for any text, though it's an icon */
    display: flex;
    /* Use flexbox to center the image */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    cursor: pointer;
}

.remove-education-row img,
.remove-dependent-row img {

    width: 16px;
    /* Size of the delete icon */
    height: 16px;
    /* This filter tints the icon red */
    filter: invert(20%) sepia(80%) saturate(1200%) hue-rotate(330deg) brightness(60%) contrast(100%);
    transition: filter 0.3s ease;
    /* Smooth transition for icon color */
}

.remove-education-row:hover,
.remove-dependent-row:hover {
    background-color: #ff00001e;
    /* Slightly darker red on hover */
    /* color: white; */
    /* If text was present, it would turn white */
}

.save-next-card {
    background-color: var(--light-bg);
    direction: none;
    box-shadow: none;
    border: none;
}

#workHistoryTableHeader {
    border: 1px solid rgb(216, 213, 213);
}

.table-responsive {
    overflow-x: auto;
}

.file-upload-container {
    padding-left: 10%;
    padding-right: 10%;

}


/* Upload Button Style */
.file-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--Fileinput-border-color);
    border-radius: 6px;
    height: 54px;
    max-height: 54px;
    width: 100%;
    color: var(--Fileinput-border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: var(--font-size-15);
}

.file-upload-label:hover {
    background-color: #e0f7fa;
}

.file-upload-label svg {
    margin-right: 8px;
}

.file-input {
    display: none;
}

/* File Preview Card */
.file-preview {
    display: flex;
    align-items: center;
    background-color: #F6F2F3;
    justify-content: space-between;
    border-radius: 6px;
    padding: 15px;
    max-width: 100%;
    max-height: 54px;
}

.file-preview .icon {
    margin-right: 12px;
}

.file-info {
    flex-grow: 1;
    font-size: var(--font-size-15);
    max-width: 180px;
    /* Set a fixed width to control text overflow */
    overflow: hidden;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}


.vertical-divider {
    width: 1px;
    height: 24px;
    background-color: #ccc;
    margin: 0 10px;
}


.file-actions svg {
    margin-left: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.file-actions svg:hover {
    transform: scale(1.1);
}

.delete-icon {
    fill: red;
}

.preview-icon {


    fill: var(--Fileinput-border-color);
}

.file-size-text {
    font-size: 12px;
    font-style: italic;

}

.component-file-name {
    font-size: var(--font-size-15);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.component-file-size {
    display: block;
    font-size: 10px;
    color: #6c757d;
    margin-top: 4px;
}


/* Responsive Design */
@media (max-width: 992px) {
    .col-md-sticky-top {
        position: relative;
        top: 0;
        z-index: 1020;
        /* Ensure it stays above other content */
    }

    .welcome-section .col-md-6:first-child {
        text-align: center;
        margin-bottom: 5px;
    }

    .welcome-section .col-md-6:last-child {
        text-align: center !important;
    }

    .employee-details .detail-item {
        display: block;
        margin: 8px 0;
    }

    .logo-container {
        justify-content: center;
    }

    .status-section {
        text-align: center !important;
        padding-top: 0;
    }

    /* Stack confidential notice and buttons on smaller screens */
    .confidential-notice {
        margin-bottom: 15px;
        /* Add space below confidential notice when stacked */
    }

    .action-buttons {
        justify-content: center;
        /* Center buttons when stacked */
        margin-top: 15px;
        /* Add margin when stacked */
        padding-top: 15px;
        /* Add padding when stacked */
        border-top: 1px solid var(--border-color);
        /* Add border when stacked */
    }
}





@media (max-width: 768px) {
    .custom-tabs .nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }

    .custom-tabs .nav-link i {
        display: none;
    }

    /* Table font size adjustment */
    .education-table th,
    .education-table td,
    .dependents-table th,
    .dependents-table td {
        font-size: 12px;
    }

    .education-table .form-control,
    .dependents-table .form-control,
    .education-table .form-select,
    .dependents-table .form-select {
        font-size: 12px;
        padding: 6px 8px;
    }

    .action-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-content {
        padding: 20px 0 40px 0;
    }

    .file-upload-container {
        padding: 0;
    }
}

@media (max-width: 576px) {
    /* body {
        padding-left: 15px;
        padding-right: 15px;
    } */

    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .section-title {
        font-size: 16px;
    }

    .education-table th,
    .dependents-table th {
        font-size: 11px;
        padding: 8px 4px;
    }

    .education-table td,
    .dependents-table td {
        padding: 6px 4px;
    }

    .welcome-message .subtitle {
        /* Corrected from h5 to .subtitle */
        font-size: 16px;
    }

    /* These elements were not in your latest HTML, keeping for safety but may not apply */
    .company-name,
    .company-suffix {
        font-size: 18px;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .dropdown-icon-overlay,
    .calendar-icon-overlay {
        width: 15%;
    }

    .calendar-icon-overlay .calender-onboard {
        width: 80px;
    }


    /*! --- SuccessMessage Verification Page Styles start--- */


    .confirm-card {
        margin-top: 40px;
        position: relative;
        border-radius: 12px;
        width: 100%;
        z-index: 1;

    }

    /*! --- SuccessMessage Verification Page Styles end--- */
}

/* Print Styles */
@media print {

    .header-nav,
    .nav-tabs-section,
    .action-buttons {
        display: none;
    }

    .form-content {
        padding: 0;
    }

    .form-section {
        break-inside: avoid;
    }

    body {
        background-color: white;
    }
}

/* Focus Styles for Accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--teal-color);
    outline-offset: 2px;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger-color);
}

/* Success States */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--success-color);
}

/* Table hover effects */
.education-table tbody tr:hover,
.dependents-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Smooth transitions */
* {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}



/*! HR SECTION   */
.show-label {
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-18);
}

/* ! settings section  */
.btn-add-designation {
    border: none;
    background-color: var(--secondary-color);
}

.btn-add-designation:hover {
    border: none;
    background-color: var(--primary-color);
}

.designation-btn:hover {
    color: white !important;
    background-color: var(--primary-color);
}

.setting-img-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #F2F2F2;
}
.settings-card-link-hover:hover{
    box-shadow: 3px 5px 16px -2px rgba(0, 0, 0, 0.13);
}

/* Breadcrumb style  */
.breadcrumb {
    background: transparent;
    font-size: 25px;
    padding: 0;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    /* Your defined purple */
    text-decoration: none;
    font-size: 25px;

}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--success-color) !important;
    /* Your defined green */
    font-size: 25px;
}

/* toggle switch  */
.custom-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    /* Slider height */
}

.custom-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 25px;
    background-color: #ccc;
    border-radius: 34px;
    transition: background-color 0.3s;
    z-index: 1;
}

.slider::before {
    content: "";
    position: absolute;
    height: 30px;
    /* Toggle size */
    width: 30px;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4b2563;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 2;
}



.custom-toggle input:checked+.slider::before {
    transform: translate(35px, -50%);
}

.sticky-footer-setting {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1020;
}