@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ========================================================
    Global Resets and Defaults
   ======================================================== */

/* Normalize/reset styles or your own CSS reset */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ol,
ul,
figure,
hr {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font: inherit;
    text-decoration: none;
}

ul {
    padding-left: 0px !important;
    margin-bottom: 0px !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-bottom: 0 !important;
}

a {
    text-decoration: none !important;
}

/* Set box-sizing globally */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ========================================================
    Global Styles
   ======================================================== */

/* :root section for defining colors and other variables */

:root {
    --primary-color: #b12028; /* Primary color */
    --secondary-color: #7b7b7b; /* Secondary color */
    --text-color: #000000; /* Text color */
    --white-color: #ffffff;
    --light-red: #fef2f3;
    --hover-button: #7c2025;
    --correct: #1d935c;
    --light-grey: #cbf6e2;
    --medium-grey: #8a8a8a;
    --border-color: #dfdfdf;
    --main-border-radius-sm: 8px;
    --main-border-radius-md: 12px;
    --main-border-radius-lg: 16px;
}

/* Body and Typography */
body {
    font-family: "Poppins", serif;
    background-color: var(--white-color) !important;
}

.container-fix {
    margin: 0 auto;
    padding: 0 30px !important;
}

/* 
    =======================================================
    Headings Styles
   ======================================================== 
*/
.h1-semibold,
.h2-semibold,
.h3-semibold,
.h4-semibold,
.h5-semibold {
    font-weight: 600;
    line-height: normal;
}
.h1-semibold {
    font-size: 40px;
}
.h2-semibold {
    font-size: 24px;
}
.h3-semibold {
    font-size: 16px;
}
.h4-semibold {
    font-size: 14px;
}
.h5-semibold {
    font-size: 12px;
}
.h6-semibold {
    font-size: 10px;
}

.h3-ragular,
.h4-ragular,
.h5-ragular {
    font-weight: 400;
    line-height: normal;
}

.h2-ragular {
    font-size: 24px;
}

.h3-ragular {
    font-size: 16px;
}

.h4-ragular {
    font-size: 14px;
}

.h5-ragular {
    font-size: 12px;
}
.h6-ragular {
    font-size: 10px;
}

/* 
    =======================================================
    Sidebar Styles
   ======================================================== 
*/

.sidebar-relative {
    position: relative;
    top: 0;
}
.sidebar {
    position: fixed;
    left: 0;
    width: 268px;
    height: 100dvh;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    background-color: var(--primary-color);
    padding: 0 27px;
    border-radius: 0px 16px 16px 0px;
    transition-property: width;
    transition: all 0.3s;
    z-index: 50;
    box-shadow: 3px 3px 16px 0px rgba(0, 0, 0, 0.08);
}

.sidebar.active {
    width: 132px;
}

.sidebar-mid {
    padding-bottom: 32px;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sidebar-mid::-webkit-scrollbar {
    width: 4px; 
}
.sidebar-mid::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-mid::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.sidebar-mid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.sidebar .head {
    padding-top: 50px;
    padding-bottom: 55px;
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    z-index: 2;
    width: 100%;
}

.side-logo .logo-large {
    width: 180px;
}
.side-logo img {
    width: 100%;
    object-fit: cover;
}

/* Hide the small logo by default */
.side-logo .logo-small {
    display: none;
    width: 100%;
}

/* When the sidebar is active (closed) */
.sidebar.active .side-logo .logo-large {
    display: none;
}

.sidebar.active .side-logo .logo-small {
    display: block;
}

.sidebar.active .sidebar-profile {
    justify-content: center;
}
.sidebar.active .sidebar-profile .sidebar-profile-info {
    display: none;
}

.sidebar-menu{
    margin-right: 5px;
}

.sidebar-menu ul li {
    margin-bottom: 12px;
}

.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white-color);
    padding: 16px 20px;
    border-radius: var(--main-border-radius-lg);
    transition: all 0.3s;
}

.sidebar-menu ul li:hover a,
.sidebar-menu ul li.active > a {
    color: var(--primary-color);
    background-color: var(--white-color);
}

.sidebar-menu ul li a svg {
    color: var(--white-color);
    transition: all 0.3s;
}

.sidebar-menu ul li:hover svg,
.sidebar-menu ul li.active svg {
    color: var(--primary-color) !important;
}

.sidebar-menu:not(:last-child) {
    margin-bottom: 20px;
}
.sidebar-open-btn {
    position: absolute;
    right: -14px;
    top: 58px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: var(--white-color);
    z-index: 100;
}

.sidebar-open-btn svg {
    transition: all 0.3s;
}

.sidebar.active .sidebar-open-btn svg {
    transform: rotate(180deg);
    line-height: 30px;
}

.sidebar.active .sidebar-menu > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.active .sidebar-menu > ul > li > a .sidebar-menu-text {
    width: 140px;
    text-align: center;
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    border-radius: var(--main-border-radius);
    color: var(--primary-color);
    background-color: var(--white-color);
    display: none;
    transition: all 0.3s;
    box-shadow: 3px 3px 16px 0px rgba(0, 0, 0, 0.1);
}

.sidebar.active .sidebar-menu > ul > li > a .sidebar-menu-text::after {
    content: "";
    position: absolute;
    left: -5px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background-color: var(--white-color);
    transform: rotate(45deg);
    z-index: -1;
}

.sidebar.active .sidebar-menu > ul > li > a:hover .sidebar-menu-text {
    left: 70px;
    border-radius: var(--main-border-radius-md);
}

.sidebar .sidebar-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    margin-bottom: 0;
}

.sidebar .sidebar-profile img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar .sidebar-profile .sidebar-profile-info {
    color: var(--white-color);
}

.sidebar-bottom {
    width: 100%;
    position: sticky;
    bottom: 0;
    background-color: var(--primary-color);
    z-index: 2;
    padding-bottom: 20px;
}

/* 
    =======================================================
    Main Style
   ======================================================== 
*/

.main-content {
    margin-left: 268px;
    transition-property: margin-left;
    transition: all 0.3s;
}

/* When sidebar is collapsed */
.sidebar.active + .main-content {
    margin-left: 132px; /* Match the collapsed width of the sidebar */
}

.link-btn-comp,
.btn-comp {
    font-size: 12px;
    font-weight: 400;
    color: var(--white-color);
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: var(--main-border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
}

.link-btn-comp:hover,
.btn-comp:hover {
    background-color: var(--hover-button);
}

.bg-trans-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.bg-trans-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-nothing{
    background-color: transparent;
    padding: 0;
    border: none;
    color:var(--text-color)
}

.btn-nothing:hover{
    background-color: transparent;
}

.dashboard-content-items{

}

/* 
    =======================================================
    Navbar Style
   ======================================================== 
*/

.navbar-custome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-sea-not {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icons {
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: transparent;'
}

.nav-icons:hover{
    background-color: transparent;
}

.bell-notification {
    position: relative;
}

.bell-circle {
    content: "";
    width: 9px;
    height: 9px;
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.notification-item {
    width: 100%; /* Adjust width as needed */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upper-notification{
    display: flex;
    padding: 12px 0px;
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
align-items: center;
}

.mark-as-btn{
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 18px;
    margin-top: 12px;
}

.mark-as-btn:hover{
    background-color: transparent;
}

.dropdown-menu {
    min-width: 499px; /* Consistent width for notifications */
    padding: 0px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: var(--main-border-radius-md);
    transform: translate(0px, 60px) !important;
    padding: 24px 16px !important;
}

.dropdown-item {
    padding: 12px 0px !important;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--text-color) !important;
    background-color: var(--border-color) !important;
}

/* 
    =======================================================
    Footer Style
   ======================================================== 
*/

.main-footer {
    background-color: transparent;
    padding: 1.3em 0;
    color: var(--text-color);
    font-size: 1rem;
    background-color: var(--white-color);
    text-align: center;
}

.main-footer a {
    color: var(--secondary-color);
}

/* ========================================================
    Login Page Styles
   ======================================================== */
.auth-body {
    background-image: url("../images/backgrounds/auth-bg.png");
    /* Position the background */
    background-position: center;
    background-size: cover;
}

.auth-container {
    /* max-width: 1440px; */
    height: 100dvh;
    /* margin: 0 auto; */
}

.auth-flex{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 45px  20px;
}

.log-form-side {
    height: 100%;
    width: 60%;
}

.login-img {
 height: 100%;
width: 80%;
}

.login-img img{
    width: 100%;
    height: auto;
}

.login-form-con{
    padding-right: 10%;
}

.login-form-head {
}

.login-form-head h1 {
    color: var(--text-color);
}

.login-form-head h1 span {
    color: var(--primary-color);
}

.login-form-head p {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 400;
}

.log-form-side form {
    margin-top: 40px;
}

.login-logo{
    text-align: right;
   margin-bottom: -5em;
}
.login-logo img{
   width: 55%;
}

.form-infield {
    position: relative;
    margin-top: 20px;
    width: 100%;
}

/* Style the icon container */
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon .icon-input-user svg,
.input-icon .icon-input-lock svg {
    position: absolute;
    left: 21px;
    transform: translate(-50%, -50%);
}

.input-icon-eye {
    cursor: pointer;
}

.input-icon .input-icon-eye svg {
    position: absolute;
    right: 4px;
    transform: translate(-50%, -50%);
}

.input-icon .icon-input-line {
    width: 2px;
    height: 15px;
    position: absolute;
    left: 34px;
    background-color: var(--text-color);
}

.input-icon input {
    width: 100%;
    padding: 10px 45px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    outline: none;
    border-radius: var(--main-border-radius-md);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

.forget-pass a {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color) !important;
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.forget-pass a:hover {
    color: var(--hover-button);
}

.fixed-textarea {
    width: 100%; /* Set your desired fixed width */
    max-width: 100%; /* Ensure it doesn't exceed container width on smaller screens */
    height: 150px; /* Set a fixed height if needed */
    resize: none; /* Prevent users from resizing the textarea */
    overflow: auto; /* Enable scrollbars when content overflows */
}

.select-border {
    border: 1px solid var(--secondary-color);
}

.error-input-login {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    color: var(--primary-color);
}

.label-form-inner {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.input-form-inner,
.search-input,
.select-form-inner {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    outline: none;
    border-radius: var(--main-border-radius-sm);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-form-inner {
    appearance: none; /* Remove default browser appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="9" viewBox="0 0 14 9" fill="none"><path d="M1.00005 1.5C1.00005 1.5 5.41895 7.49999 7.00005 7.5C8.58115 7.50001 13 1.5 13 1.5" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding: 10px 14px;
    cursor: pointer;
}
.select2-container .select2-selection--single {
    width: 100%;
    height: auto;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    padding: 10px 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color);
    line-height: normal;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-container--default .select2-selection--single {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="9" viewBox="0 0 14 9" fill="none"><path d="M1.00005 1.5C1.00005 1.5 5.41895 7.49999 7.00005 7.5C8.58115 7.50001 13 1.5 13 1.5" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

/* Dropdown styling */
.select2-dropdown {
    border-color: var(--border-color);
    border-radius: var(--main-border-radius-sm);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
    color: white;
}

/* Placeholder color */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--medium-grey);
}

.input-form-inner {
    padding: 12px 16px;
}

.filters-container {
    width: 100%;
}

.filters-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

.input-form-inner:focus,
.search-input:focus,
.select-form-inner:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

.search-input-container {
    display: block;
    position: relative;
    width: 100%;
}

.search-input {
    padding: 9.5px 45px 9.5px 40px;
}

.search-icon {
    position: absolute;
    left: 15px; /* Space from the left edge */
    top: 50%; /* Vertically center */
    transform: translateY(-50%);
    pointer-events: none; /* Allows clicks to pass through to the input */
}

.button-login {
    font-size: 16px;
    font-weight: 400;
    color: var(--white-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--main-border-radius-md);
    padding: 16px 1em;
    box-shadow: 0px 4px 4px 0px rgba(255, 255, 255, 0.25) inset;
}

.button-login:hover {
    background-color: var(--hover-button);
}

/* 
    =======================================================
    Table Styles
   ======================================================== 
*/
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white-color);
    color: var(--medium-grey);
    border-radius: var(--main-border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden; /* Ensures border-radius is applied correctly */
    font-size: 12px;
    font-weight: 400;
    padding: 16px;
}

.custom-table thead {
    background-color: #f7f7f7;
    color: var(--text-color);
}

.custom-table thead th {
    padding: 12px 16px; /* Reduced padding for tighter layout */
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color); /* Add bottom border for header */
}

.custom-table tbody td {
    padding: 12px 16px; /* Reduced padding for consistency */
    text-align: left;
    border-bottom: 1px solid var(--border-color); /* Add bottom border for rows */
}

/* Narrower checkbox and ID columns */
.custom-table th:first-child,
.custom-table td:first-child {
    width: 5%; /* Very narrow for checkbox */
    padding-left: 8px; /* Adjusted padding for narrower column */
}

.custom-table th:nth-child(2),
.custom-table td:nth-child(2) {
    width: 5%; /* Narrower for ID column */
    padding-left: 8px; /* Adjusted padding for narrower column */
}

.custom-table input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    background-color: var(--white-color);
    margin: 0;
    padding: 0;
}

/* Style for checked state (with checkmark) */
.custom-table input[type="checkbox"]:checked {
    background-color: var(
        --primary-color
    ); /* Red background for checked state */
    border-color: var(--primary-color); /* Red border for consistency */
}

/* Add a checkmark using the ::after pseudo-element for the checked state */
.custom-table input[type="checkbox"]:checked::after {
    content: "✔"; /* Unicode checkmark or use a custom icon */
    color: var(
        --white-color
    ); /* White checkmark to stand out against red background */
    font-size: 12px; /* Adjust size of checkmark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the checkmark */
    line-height: 1; /* Ensure proper vertical alignment */
}

/* Ensure the checkbox fits within its cell */
.custom-table td,
.custom-table th {
    vertical-align: middle; /* Align checkbox vertically in the cell */
}

/* No results styling (if needed) */
.table-empty {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 20px 0 !important;
    text-align: center;
}

.table-info-showing {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
    padding-top: 20px;
}

/* Add status indicators or icons (if you want to replicate the green/red dots in the second image) */
.custom-table .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.custom-table .status-dot.attend {
    background-color: #4caf50; /* Green for "Attend" */
}

.custom-table .status-dot.absent {
    background-color: #f44336; /* Red for "Absent" */
}

.table-status {
    border-radius: var(--main-border-radius-lg);
    padding: 8px 6px;
    text-align: center;
}

.table-status-text.postponed{
color: #9b9b9b; 
}

.table-status-text.not_interested{
    color: #f9a8ac;
}

.table-status-text.risk,.table-status-text.cancelled{
    color: #b12028;
}

.table-status-text.pending,.table-status-text.didnt_reach{
    color: #db9e36;
}

.table-status-text.done{
    color: var(--correct);
}

.table-status-text.another_reason{
    color: #1889ce;
}
.table-status-text.another_follow_up{
    color: #ffbbbd;
}

{
    color: #b12028; 
    background-color: #ffbbbd;
}

.table-status.approved, .table-status.attended, .table-status.done, .table-status.active, .table-status.checked-in, .table-status.received {
    color: var(--correct); /* Green text */
    background-color: #ecfdf3; /* Light green background */
}

.table-status.no-show{
    color: #26c6da; 
    background-color: #eaffff;  
}

.table-status.early-clock-out{
    color: #dda200; 
    background-color: #ffedbc;  
}

.table-status.casual-leave{
    color: #1d935c; 
    background-color: #eaffff;  
}

.table-status.absent{
    color: #b12028; 
    background-color: #dfdfdf;  
}

.table-status.day_off{
    color: #7b7b7b; 
    background-color: #f7f7f7; 
}

.table-status.sick-leave{
    color: #b12028; 
    background-color: #f7f7f7; 
}

.table-status.didnt_reach,.table-status.another_reason,.table-status.postponed{
    color: #fff; 
    background-color: #adadad; 
}

.table-status.meeting,.table-status.another_follow_up,.table-status.not_interested,.table-status.cancelled{
    color: #b12028; 
    background-color: #fef2f3; 
}
.table-status.late{
    color: #fff; 
    background-color: #b12028; 
}

.table-status.not_attended{
    color: var(--medium-grey);
}

.table-status.declined,.table-status.rejected, .table-status.unreachable, .table-status.risk, .table-status.inactive{
    color: #b12028; /* Red text */
    background-color: #fef2f3; /* Light red background */
}

.table-status.pending, .table-status.escalated {
    color: #db9e36; /* Yellow/orange text */
    background-color: #ffeecf; /* Light yellow background */
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 25px;
}

.pagination-link {
    color: var(--border-color) !important;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.pagination-link-number {
    color: var(--border-color);
    background-color: transparent;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-link-number:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.pagination-link-number.active {
    color: var(--white-color);
    background-color: var(--primary-color);
}

/* ========================================================
    Loading Styles
   ======================================================== */

/* Loading Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
        255,
        255,
        255,
        0.8
    ); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's above all other elements in .main-content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================================
    Radio Styles
   ======================================================== */

/* Style the radio group container */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Style each radio wrapper */
.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Style the radio button itself */
.radio-form {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid var(--secondary-color);
    border-radius: 50%; /* Make it circular */
    background-color: var(--white-color);
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

/* Radio checked state */
.radio-form:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Add a dot effect for checked state */
.radio-form:checked::after {
    content: "";
    background-color: var(--white-color);
    border-radius: 50%; /* Dot inside circle */
    margin: auto;
}

/* Style the label */
.radio-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 3px;
}

/* Focus state for accessibility */
.radio-form:focus {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

/* ========================================================
    Check box Styles
   ======================================================== */

/* Style the checkbox group container */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Style each checkbox wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Style the checkbox itself */
.checkbox-form {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    background-color: var(--white-color);
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

/* Checkbox checked state */
.checkbox-form:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Add a checkmark effect */
.checkbox-form:checked::after {
    content: "";
    margin: auto;
    background-color: var(--white-color);
    border-radius: 2px;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}

/* Style the label */
.checkbox-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 3px;
}

/* Focus state for accessibility */
.checkbox-form:focus {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

/* ========================================================
    Dashboard Page Styles
   ======================================================== */
.dashboard-boxes {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dashboard-box-content {
    flex: 1;
    min-width: 180px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
}
.dashboard-box-icon {
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
    padding: 14px 16px;
    width: fit-content;
}
.dashboard-box-content h3 {
    color: var(--medium-grey);
    margin-top: 12px;
}
.dashboard-box-content h2 {
    color: var(--text-color);
    font-size: 24px;
}

.dashboard-left {
    width: 60%;
}
.dashboard-right {
    width: 40%;
}

.dashboard-attendance {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
}

.dashboard-lead {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
}

.dashboard-lead-head {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.dashboard-lead-upcoming {
    margin-top: 20px;
}

.dashboard-lead-upcoming h3 {
    color: var(--primary-color);
}

.dashboard-lead-upcoming-content {
    margin-top: 4px;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-lead-upcoming-content h5 {
    color: var(--medium-grey);
}
.dashboard-lead-upcoming-content img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========================================================
    Meeting Page Styles
   ======================================================== */
.meeting_left {
    width: 60%;
}
.meeting_rigth {
    width: 40%;
}

.add_meeting_sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px;
    background-color: #f7f7f7;
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
}

.add_meeting_sec h2 {
    width: 60%;
    color: var(--text-color);
}

.add_meeting_sec h2 span {
    width: 40%;
    color: var(--primary-color);
    font-weight: 400;
    font-style: italic;
}

.meeting_rigth {
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
    padding: 10px 16px;
}

.meeting-avatar img {
    width: 123px;
    height: 123px;
    border-radius: 50%;
    object-fit: cover;
}

.past_comments_card_container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    padding-bottom: 10px;
    }

    .past_comments_card,.past_comments_card-full {
    color: #9B9B9B;
    padding: 20px 24px;
    border-radius: var(--main-border-radius-sm);
    background-color: #f7f7f7;
    flex-shrink: 0; 
    }

    .past_comments_card {
        width: 40%;
    height: 136px;
    }
    .past_comments_card-full{
        width: 100%;
    height: 100%;
margin-bottom: 1em;
text-align: left;
    }

    /* For WebKit browsers (Chrome, Safari) */
    .past_comments_card_container::-webkit-scrollbar {
    height: 6px;
    }

    .past_comments_card_container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    }

    .past_comments_card_container::-webkit-scrollbar-track {
    background: transparent;
    }

.dashboard-team-container {
    overflow-y: auto;
    height: 75dvh;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.dashboard-team-container::-webkit-scrollbar {
    width: 4px; 
}
.dashboard-team-container::-webkit-scrollbar-track {
    background: transparent;
}
.dashboard-team-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}
.dashboard-team-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--border-color);
}

.dashboard-team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.dashboard-team-member img{
    width: 57px;
height: 57px;
border-radius: 50%;
object-fit: cover;
}

.dashboard-team-container a {
    color: var(--text-color);
}

.dashboard-team-member h4 {
    color: var(--medium-grey);
}

.upcoming_past_tabs {
    width: 100%;
    margin-top: 12px;
    padding: 24px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
}

.up-pas-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    margin-top: 12px;
}

.up-pas-content h3 {
    color: var(--primary-color);
}
.up-pas-content p {
    color: var(--medium-grey);
}

.up-pas-button {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.nav-pills {
    gap: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius-sm);
    padding: 12px 0;
}

.nav-fill .nav-item,
.nav-fill > .nav-link {
    margin: 0 14px;
}

.nav-fill .nav-item .nav-link,
.nav-justified .nav-item .nav-link {
    font-size: 14px;
    font-weight: 400;
    padding: 16px 0;
    color: var(--primary-color);
}

.nav-link.active,
.nav-pills .show > .nav-link {
    --bs-nav-pills-border-radius: var(--main-border-radius-sm);
    --bs-nav-pills-link-active-color: var(--white-color);
    --bs-nav-pills-link-active-bg: var(--primary-color);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: var(--white-color);
}

/* ========================================================
    Notifications Page Styles
   ======================================================== */
.notification-head {
    background-color: #f7f7f7;
    padding: 16px 34px;
}

.notification-head .nav-link{
background-color: transparent;
padding: 0;
font-size: 16px;
font-weight: 400;
line-height: normal;
color: var(--medium-grey);
}
.notification-head .nav-link.active{
background-color: transparent;
padding: 0;
font-size: 20px;
font-weight: 600;
line-height: normal;
color: var(--primary-color);
}

.notifications-list {
    padding: 0 16px;
}

.notifications-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.notifications-content-left {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.notifications-content-left h5 {
    color: var(--medium-grey);
}

.notifications-icon {
    width: 47px;
    height: 47px;
    background-color: var(--light-red);
    border-radius: 50%;
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================================
    Register Page Styles
   ======================================================== */
.add-new-employee {
    border-radius: var(--main-border-radius-sm);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.add-new-employee h3 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 11px;
}

.add-new-employee h2 {
    color: var(--primary-color);
    padding-bottom: 11px;
}

.monthly-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border-color);
}
.monthly-head h4{
    color: var(--primary-color);
}

.form-check-input:checked{
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-input{
    border: 1px solid var(--primary-color) !important;
}

/* ========================================================
    Modal Styles
   ======================================================== */

.btn-close {
    color: #adadad;
    font-size: 20px;
}

/* ========================================================
    Leave Request
   ======================================================== */
   .leave-requests-boxes {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leave-requests-content{
    width: 25%;
    border: 1px solid var(--border-color);
    padding: 16px 12px;
    border-radius: var(--main-border-radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.leave-requests-content h2{
    margin-top: -8px;
}

/* ========================================================
    Leads
   ======================================================== */
   .assignment-select{
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--main-border-radius-lg);
   }

/* ========================================================
    Select 2
   ======================================================== */
   /* Ensure Select2 dropdown appears above the Bootstrap modal */
.select2-container--open {
    z-index: 9999;
    /* Higher than Bootstrap modal z-index */
  }
  
  /* Adjustments for better appearance within the modal */
  .select2-container--default .select2-results>.select2-results__options {
    max-height: 250px;
  }
  
  .select2-container--default .select2-selection--multiple {
    border-color: #ced4da;
  }

  .select2-container--default .select2-selection--multiple{
    background-color: transparent;
    border: 0.01px solid var(--border-color);
    outline: none;
    border-radius: var(--main-border-radius-sm);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none; /* Remove default browser appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 14px;
    cursor: pointer;
  }

  .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
    }

.select2-container--open .select2-dropdown--below{
    border-radius: var(--main-border-radius-lg);
    margin-top: 15px;
    box-shadow: 3px 3px 16px 0px rgba(0, 0, 0, 0.08);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    border-radius: var(--main-border-radius-lg);
    background-color: var(--primary-color);
}

.select2-container--default .select2-results__option--selected{
    border-radius: var(--main-border-radius-lg);
    background-color: var(--white-color);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: transparent !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: var(--main-border-radius-sm) !important;
    box-sizing: border-box;
    display: inline-block;
    margin-top: 0px !important;
    color: var(--text-color);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    border-right: 1px solid var(--primary-color) !important;
    color:var(--primary-color);
}

/* ========================================================
    Profile
   ======================================================== */
   .profile-head{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
   }
   .profile-img-upload {
    position: relative;
    cursor: pointer;
   }
   .profile-img-upload img{
    width: 155px;
    height: 155px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.4px dashed var(--primary-color);
   }

   .profile-img-upload .profile-svg{
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    left: 91px;
    top: 117px;
    background: var(--Linear, linear-gradient(267deg, #B12028 3.58%, #7C2025 96.42%));
    box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25) ;
   }

/* ========================================================
    Achivement Styles
   ======================================================== */
.user-target-bar{
    border: 1px solid var(--border-color);
    padding: 16px 16px;
    margin-bottom: 12px;
    border-radius: var(--main-border-radius-sm);
}

.progress-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    margin-top: 30px;
}

.progress-labels {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.progress-label {
    position: absolute;
    top: -25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.progress-label.target {
    left: 100%;
}

.progress-label span {
    padding: 5px 10px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
}

.progress-label.current span {
    background-color: #DB9E36; /* Amber color for "Current" */
}

.progress-label.target span {
    background-color: #1D935C; /* Green color for "Target" */
}

.pointer {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #DB9E36; /* Triangle pointing down for "Current" */
}

.progress-label.target .pointer {
    border-top: 6px solid #1D935C; /* Triangle pointing down for "Target" */
}

.progress-bar-c {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 5px;
}

.progress-section {
    position: absolute;
    height: 100%;
}

.progress-section.red {
    width: 100%;
    background-color: #B12028; /* Red base layer */
    z-index: 1;
}

.progress-section.yellow {
    background-color: #DB9E36; /* Yellow progress layer */
    z-index: 2; /* Overlays red */
}

.progress-section.green {
    background-color: #1D935C; /* Green completed layer */
    z-index: 3; /* Overlays all */
}

.marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 5px solid white;
    z-index: 4;
}

.current-marker {
    background-color: #DB9E36;
}

.target-marker {
    left: 100%;
    background-color: #1D935C;
}

/* ========================================================
    Private Policie Styles
   ======================================================== */
   .accordion-item{
    border: 1px solid var(--border-color) !important;
    border-radius: var(--main-border-radius-lg) !important;
    box-shadow: none;
   }
   .accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{
    border: 0px solid var(--border-color) !important;
    border-radius: var(--main-border-radius-lg) !important;
   }
   .accordion-button{
    color: var(--primary-color);
   }

   .accordion-button:not(.collapsed){
    color: var(--primary-color);
    background-color: transparent;
    box-shadow:none !important;
}

.second-acc .accordion-item{
    border: 0px solid var(--border-color) !important;
   }
.second-acc  .accordion-button{
    color: var(--text-color) !important;
    background-color: transparent;
    box-shadow:none !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--main-border-radius-lg) !important;
   }

   .second-acc .accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{
    border: 1px solid var(--border-color) !important;
    border-radius: var(--main-border-radius-lg) !important;
   }
   .second-acc  .accordion-button:not(.collapsed){
    background-color: transparent;
    box-shadow:none !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--main-border-radius-lg) !important;
   }

/* ========================================================
    Media Queries and Responsive Styles
   ======================================================== */

/* Mobile-first styles */

@media only screen and (max-width: 1400px) {
    .login-logo img{
        width: 55%;
        height: auto;
    }

    .login-form-con{
        padding-right: 40%;
    }
    .sidebar {
        width: 230px;
        padding: 0 24px;
    }
    .main-content {
        margin-left: 230px;
    }

    .sidebar.active {
        width: 110px;
    }
    .sidebar.active + .main-content {
        margin-left: 110px; /* Match the collapsed width of the sidebar */
    }
    .sidebar-menu ul li a {
        padding: 12px 14px;
    }
    .sidebar .head {
        padding-bottom: 40px;
    }
    .sidebar-menu ul li a{
        font-size: 14px;
    }
    .sidebar-menu ul li a svg{
        font-size: 14px !important;
    }
}

@media only screen and (max-width: 1200px){
    .login-logo img{
        width: 50%;
        height: auto;
    }
}

@media only screen and (max-width: 992px) {
    .auth-container {
        gap: 40px;
    }
}

@media only screen and (max-width: 768px) {
    .auth-flex{
        display: block;
        justify-content: center;
        align-items: center;
    }
    .auth-container {
        justify-content: center;
        flex-direction: column;
        padding: 0 40px;
    }
       .login-logo img {
width: 80%;
height: auto;
    }

    .login-form-con{
        padding-right: 0px;
margin-top: 6em;
    }

    .log-form-side {
        flex: none;
        height: 100%;
width: 100%;
    }

    .login-img {
        flex: none;
        display: none;
    }

    .sidebar .sidebar-menu .sidebar-menu-profile {
        display: block;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table tbody tr {
        display: block;
        margin-bottom: 15px;
    }

    .custom-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .custom-table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--secondary-color);
    }

    .custom-table tbody td:last-child {
        border-bottom: none;
    }

    .sidebar.active {
        width: 90px;
    }

    .sidebar.active + .main-content {
        margin-left: 95px;
    }

    .search-icon {
        display: none;
    }

    .nav-sea-not input {
        display: none;
    }
}

@media only screen and (max-width: 576px) {
    .container-fix {
        padding: 0 1em !important;
    }

    .auth-container {
        padding: 0 30px;
    }

    .h1-semibold {
        font-size: 30px;
    }

    .sidebar {
        padding: 0 10px;
    }

    .main-footer {
        font-size: 0.9rem;
    }

    .link-btn-comp,
    .btn-comp {
        font-size: 1rem;
        padding: 0.4em 0.9em;
    }

    .mt-5 {
        margin-top: 1em !important;
    }
}
