@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #000;
}

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');


:root {
    /* Color Branding */
    --primary-color: #3B82F6;
    --secondary-color: #E5E6EA;
    --text-color: #747474;
    --accent-color: #23A00F;
    --alt-primary-color: #c7d4e5;
    --alt-primary-color-rgb: 52, 152, 219;
    /* Equivalent RGB */
    --white: #ffffff;
    --alt-white: #F8F9FA;
    --black: #000000;
    --alt-black: #222222;
    --transparent: transparent;
    --border-color: #CFCFCF;
    --blue-hover: #2563eb;
    --blue-active: #2f69b3;
    /* Font Family */
    --primary-font: 'Quicksand', sans-serif;
    --secondary-font: 'Quicksand', sans-serif;
    --accent-font: 'Quicksand', sans-serif;
    --text-font: 'Quicksand', sans-serif;
    --div-font: 'Quicksand', sans-serif;
    --span-font: 'Quicksand', sans-serif;

    /* Button and Text Link */
    
    --text-link-color: var(--accent-color);
    
    --primary-button-background: var(--primary-color);
    --primary-alt-button-background: var(--alt-primary-color);
    --secondary-button-background: var(--primary-color);
    --outline-button-background: var(--transparent);
    --text-link-color: var(--accent-color);
    --button-padding: 8px 16px;
    --primary-button-radius: 0.5rem;
    --button-radius: 100px;
    
    --button-border: 1px solid var(--accent-color);
    --button-font-family: var(--primary-font);
    --button-font-size: 14px;
    --button-text-color: var(--white);
    --button-weight: 500;
    --clocked-actions-padding: 12px 20px;
    --clocked-actions-font-size: 14px;
    /* Sidebar */
    --sidebar-background: var(--white);
    --sidebar-nav-hover: #ededed;
    --sidebar-nav-active: #353535;
    --sidebar-text-color: #5f5e5e;
    --sidebar-text-color-active: var(--white);
    --sidebar-text-color-hover: #5f5e5e;
    --sidebar-text-size: 13px;
    /* Mobile Navigation */
    --mobile-nav-background: var(--primary-color);
    --mobile-nav-hover: var(--blue-hover);
    --mobile-nav-active: var(--blue-active);
    --mobile-nav-text-color: var(--white);
    --mobile-nav-text-size: 15px;
    /* Default Container */
    --width: min(100% - 100px, 1240px);
    /* H1 page Headings */
    --page-heading-color: #222222;
    --page-heading-family: var(--primary-font);
    --page-heading-size: 32px;
    --page-heading-size-mobile: 24px;
    --page-heading-weight: 600;
    /* H2 Component Headings */
    --comp-heading-color: #3b3b3b;
    --comp-heading-family: var(--primary-font);
    --comp-heading-size: 22px;
    --comp-heading-size-mobile: 18px;
    --comp-heading-weight: 600;
    /* H3 Inner Headings */
    --inner-heading-color: #696969;
    --inner-heading-family: var(--primary-font);
    --inner-heading-size: 18px;
    --inner-heading-size-mobile: 14px;
    --inner-heading-weight: 600;
}


/* Set Custom Styles with Tailwind CSS */
@layer base {
    /* Background Colors */
    .bg-primary {
        background-color: var(--primary-color);
    }
    .bg-secondary {
        background-color: var(--secondary-color);
    }
    .bg-tertiary {
        background-color: var(--tertiary-color);
    }
    .bg-accent {
        background-color: var(--accent-color);
    }
    .bg-light {
        background-color: var(--light-color);
    }
    .bg-dark {
        background-color: var(--dark-color);
    }
    

    /* Text Colors */
    .text-primary {
        color: var(--primary-color);
    }
    .text-secondary {
        color: var(--secondary-color);
    }
    .text-tertiary {
        color: var(--tertiary-color);
    }
    .text-accent {
        color: var(--accent-color);
    }
    .text-success {
        color: var(--success-color);
    }
    .text-danger {
        color: var(--danger-color);
    }
    .text-warning {
        color: var(--warning-color);
    }
    .text-light {
        color: var(--light-color);
    }
    .text-dark {
        color: var(--dark-color);
    }
    
    /* Alert Colors */
    .bg-success {
        background-color: #15802e;
    }
    .bg-danger {
        background-color: #7a1d1d;
    }
    .bg-warning {
        background-color: #e4ad0a;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #95a5a6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

body {
    background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--primary-font);
}

p,
input,
select,
option,
textarea {
    font-family: var(--text-font);
    font-size: 15px;
}

div {
    font-family: var(--div-font);
}

span {
    font-family: var(--span-font);
}

a {
    font-weight: 500;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: var(--primary-font);
}

a,
button {
    transition: all 0.3s ease-in-out !important;
    cursor: pointer !important;
}

button {
    border: none;
}

/* === Start Reusable Styles === */
.blue {
    color: var(--primary-color);
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.justify-start {
    justify-content: start;
}

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

.justify-end {
    justify-content: end;
}

.justify-between {
    justify-content: space-between;
}

.items-start {
    align-items: start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: end;
}

.w-auto {
    width: auto;
}

.w-half {
    width: 50%;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.h-half {
    height: 50%;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.text-left {
    text-align: left;
}

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

.text-right {
    text-align: right;
}

.gap-5 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.gap-25 {
    gap: 25px;
}

.gap-30 {
    gap: 30px;
}

.gap-35 {
    gap: 35px;
}

.gap-40 {
    gap: 40px;
}

.p-0 {
    padding: 0 !important;
}

.p-5 {
    padding: 5px;
}

.p-10 {
    padding: 10px;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.p-25 {
    padding: 25px;
}

.p-30 {
    padding: 30px;
}

.p-40 {
    padding: 40px;
}

.quicksand {
    font-family: 'Quicksand', sans-serif;
}

.default-container {
    width: var(--width);
    margin-inline: auto;
}

.wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.bg-alt-primary {
    background-color: var(--alt-primary-color);
}

.bg-mesh-gradient {
    background-color: hsla(214, 66%, 36%, 1);
    background-image: radial-gradient(at 40% 20%, hsla(214, 66%, 36%, 1) 0px, transparent 50%), radial-gradient(at 80% 0%, hsla(214, 66%, 36%, 1) 0px, transparent 50%), radial-gradient(at 0% 50%, hsla(214, 66%, 36%, 1) 0px, transparent 50%), radial-gradient(at 77% 57%, hsla(214, 65%, 48%, 1) 0px, transparent 50%), radial-gradient(at 0% 100%, hsla(214, 60%, 41%, 1) 0px, transparent 50%), radial-gradient(at 80% 100%, hsla(214, 57%, 29%, 1) 0px, transparent 50%), radial-gradient(at 0% 0%, hsl(214deg 68.89% 29.46%) 0px, transparent 50%);
}

.primary-button,
.secondary-button,
.outline-button {
padding: var(--button-padding);
    font-family: var(--button-font-family);
    color: var(--button-text-color);
    border-radius: var(--button-radius);
    font-size: var(--button-font-size);
    font-weight: var(--button-weight);
    transition: all 0.3s ease-in-out;
    
}

.primary-button {
    background-color: var(--accent-color);
}


.secondary-button {
    background-color: var(--secondary-button-background);
    border-color: var(--primary-color);
}

.secondary-button:hover {
    background-color: #1f477b;
}

.outline-button {
    background-color: var(--outline-button-background);
    border: 1px solid #919191 !important;
    color: #919191;
}

.outline-button:hover {
    border: 1px solid #bbbbbb !important;
    color: #212121;
    background: #ededed;
}

.rounded-shadow-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 5px 30px -20px rgb(63 63 63 / 10%);
}

.page-title {
    font-family: var(--page-heading-family);
    font-size: var(--page-heading-size);
    color: var(--page-heading-color);
}

.page-heading {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
}

.page-heading h1 {
    font-family: var(--page-heading-family);
    font-size: var(--page-heading-size);
    font-weight: 700;
    color: var(--page-heading-color);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.page-heading p {
    font-family: var(--primary-font);
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    padding: 0;
    line-height: 1.5;
}

@media screen and (max-width: 530px) {
    .page-heading h1 {
        font-size: var(--page-heading-size-mobile);
    }
    
    .page-heading {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
}

.component-headings {
    font-family: var(--comp-heading-family);
    font-size: var(--comp-heading-size);
    font-weight: var(--comp-heading-weight);
    color: var(--comp-heading-color);
    padding-left: 20px;
}

.inner-titles {
    font-family: var(--inner-heading-family);
    font-size: var(--inner-heading-size);
    font-weight: var(--inner-heading-weight);
    color: var(--inner-heading-color);
}

.invert-white {
    filter: brightness(0) invert(1);
}

@media screen and (max-width: 530px) {
    .page-title {
        font-size: var(--page-heading-size-mobile);
    }

    .component-headings {
        font-size: var(--comp-heading-size-mobile);
    }

    .inner-titles {
        font-size: var(--inner-heading-size-mobile);
    }
}

/* Styling the loading text */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--light-color);
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    z-index: 9999;
}

/* Apply fade-out effect */
.fade-out {
    opacity: 0;
    pointer-events: none;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgb(233, 233, 233);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    animation: fadeIn 1.5s infinite alternate;
}

/* .loading-text {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--primary-font);
    color: var(--black);
    opacity: 0.5;
    animation: fadeBlink 1.5s infinite alternate;
} */

/* @keyframes fadeBlink {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.7;
    }

} */

.copyright {
    color: var(--alt-white);
    text-align: center;
    font-size: 14px;
}

/* === End Reusable Styles === */
/* === Start Other Components (Custom) */
.header {
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.header .greetings {
    padding-left: 20px;
    border-left: 1px solid var(--primary-color);
}

.accent-heading {
    font-size: 15px;
    font-weight: 700;
}

.menu-container {
    position: relative;
    display: inline-block;
}

.menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 170px;
    width: 200px;
    padding: 10px;
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid #e7e7e7;
}

.menu.active {
    display: flex;
}

.dropdownMenu {
    display: none;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 170px;
    width: 200px;
    padding: 10px;
    z-index: 10;
    margin-top: 10px;
    border: 1px solid #e7e7e7;
}

.dropdownMenu.active {
    display: flex;
}

.bento-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.bento-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu.show {
    display: flex;
}

.menu button,
.menu a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.menu button:hover,
.menu a:hover {
    background: #353535;
    color: #ffffff;
}

.kebab-menu {
    background-color: var(--primary-color);
    border-radius: var(--button-radius);
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-button {
    background-color: var(--alt-primary-color);
    border-radius: var(--button-radius);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.warning-banner-bar {
    display: none !important;
}

/* === End Other Components (Custom) */
/* === Start Landing Page / Login / Registration Page === */
.logo-wrapper img {
    width: 150px;
}

.logo-wrapper p {
    text-align: center;
    color: #f1f1f1;
}

.form-wrapper {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    width: 475px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 800;
}

.form-header>p {
    font-size: 17 px;
    font-weight: 400;
    color: #222222;
}

.form-input input {
    background-color: var(--alt-white);
    border: 1px solid var(--border-color);
    padding: 13px 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: var(--alt-black);
    border-radius: 10px;
}

.gotoregistration {
    text-align: center;
}

.gotoregistration a {
    color: var(--primary-color);
}

.gotoregistration a:hover {
    color: var(--accent-color);
}

/* Registration */
.country-option {
    display: flex;
    align-items: center;
}
.country-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    object-fit: cover;
}
.selected-country {
    display: flex;
    align-items: center;
}
.step {
    display: none;
}
.step.active {
  display: block;
}
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 20px;
  position: relative;
}
.step-indicator::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e4e4e7;
    z-index: 1;
}
.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e4e4e7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: #71717a;
    font-weight: bold;
}
.step-circle.active {
    background: #3B82F6;
    color: white;
}
.step-circle.completed {
    background: #10b981;
    color: white;
}

@media screen and (max-width: 600px) {
    .form-wrapper {
        width: 350px;
    }
}

/* === End Landing Page / Login / Registration Page === */
/* === Start Toast Notification === */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #323232;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* === End Toast Notification === */
/* === Start Sidebar === */
body {
    margin: 0;
    padding: 0;
    transition: margin-left 0.3s ease;
}

.sidebar-container {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    width: 250px;
    height: 100%;
    padding: 20px;
    background-color: var(--sidebar-background);
    padding-top: 20px;
    transition: width 0.3s ease;
    overflow: hidden;
    box-shadow: 2px 0 40px -20px rgb(63 63 63 / 10%);
}

.sidebar-mobile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar.collapsed {
    width: 70px;
    padding: 10px;
}

/* Center nav links when collapsed */
.sidebar.collapsed .nav-link {
    justify-content: center;
}

.sidebar.collapsed .toggle-btn {
    justify-content: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar.collapsed .poweredBy {
    display: none;
}

/* Collapsed bottom icon - Stafify favicon shown when sidebar is collapsed */
.collapsed-bottom-icon {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.collapsed-bottom-icon img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar.collapsed .collapsed-bottom-icon {
    display: flex;
}

/* Collapsed state - center profile icon when collapsed */
.sidebar.collapsed .card-profile {
    justify-content: center;
    padding: 5px;
}

#sidebarMenu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar ul li a,
.sidebar ul li button {
    display: flex;
    align-items: center;
    color: var(--sidebar-text-color);
    text-decoration: none;
    font-size: var(--sidebar-text-size);
    padding: 10px;
    font-weight: 600;
    border-radius: 5px;
}

.sidebar ul li button {
    background: transparent;
    width: 100%;
}

.sidebarMenuItem.has-dropdown:has(.dropdown.open)>a {
    background-color: var(--sidebar-nav-hover);
    color: var(--sidebar-text-color-hover);
}

.sidebar ul li a:hover,
.sidebar ul li button:hover {
    background-color: var(--sidebar-nav-hover);
    color: var(--sidebar-text-color-hover);
}

.sidebarMenuItem a.nav-link.active {
    background-color: var(--sidebar-nav-active);
    /* Change to your preferred color */
    color: var(--sidebar-text-color-active);
    /* Change to your preferred text color */
    border-radius: 5px;
}

.sidebar ul li a:active {
    background-color: var(--sidebar-nav-hover);
    color: var(--sidebar-text-color-hover);
}

.sidebarLogo {
    padding: 0;
}

.sidebarLogo img.site-logo {
    width: 110px;
}

.sidebar-mobile .menu-text {
    display: flex;
}

.sidebar-mobile .details-profile.menu-text {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.sidebarMenuItem.has-dropdown ul {
    display: flex;
    margin-top: 5px;
    gap: 5px;
    flex-direction: column;
    margin-left: 20px;
    padding-left: 10px;
    border-left: 1px solid #00000030;
    margin-bottom: -5px;
}

.sidebar.collapsed .sidebarMenuItem.has-dropdown ul {
    margin-left: 0;
    padding-left: 0;
    border: none;
    border-top: 1px solid #ffffff30;
    background-color: rgba(var(--alt-primary-color-rgb), 0.08);
}

.sidebar.collapsed .icon-tabler-chevron-down,
.sidebar.collapsed #dropdownIconDesktop {
    display: none;
}

/* Dropdown items in collapsed sidebar - center them */
.sidebar.collapsed #dropdownMenuDesktop {
    margin-left: 0;
}

.sidebar.collapsed #dropdownMenuDesktop .nav-link {
    justify-content: center;
}

li.sidebarMenuItem:first-child {
    margin-top: 5px;
}

li.sidebarMenuItem:last-child {
    margin-bottom: 5px;
}

.dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    padding-left: 20px;
}

.poweredBy {
    padding-top: 20px;
    border-top: 1px solid #22222224;
    align-items: start;
    gap: 10px;
}

.poweredBy p {
    font-size: 12px;
    color: #595959;
}

.poweredBy img {
    width: 100px;
}

.sidebarMenuItem .icon {
  width: 23px;
  height: 23px;
  margin-right: 10px;
}

.collapsed .icon {
    margin-right: 0;
    margin-left: 0;
}

.menu-text {
    text-wrap: nowrap;
}

.details-profile.menu-text {
    text-wrap: wrap;
}

.site-icon {
    display: none;
    width: 50px;
    border-radius: 10px;
    box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid #19447b;
}

.collapsed .menu-text {
    display: none;
}

.collapsed .site-icon {
    display: block;
}

.collapsed .sidebarLogo {
    padding: 0px;
}

.card-profile {
    background: var(--alt-white);
    border-radius: 10px;
    padding: 5px 10px 10px 9px;
    border: 1px solid #e9e9e9 !important;
    margin-bottom: 12px;
}

.image-profile {
    margin-bottom: -8px;
}

.card-profile .image-profile img {
    width: 30px;
    height: 30px;
    /* border: 2px solid ##173d6d;
     */
    border-radius: 100px;
}

.profile-name {
    font-size: 12px;
    font-weight: 600;
    color: #393939;
}

/* Tighter line height for all sidebar profile names */
#sidebar-profile-card .profile-name,
.sidebar .card-profile .profile-name {
    line-height: 1.3 !important;
    display: block;
    padding: 2px 0;
}

.profile-dept {
    font-size: 10px;
    font-weight: 400;
    color: #575757;
    margin-top: 2px;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px 30px;
    transition: margin-left 0.3s ease;
    height: 100%;
}

.sidebar.collapsed+.main-content {
    margin-left: 70px;
}

/* Dropdown container */
.dropdown {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: -5px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-bottom 0.3s ease-out;
}

/* Open state */
.dropdown.open {
    max-height: 500px;
    /* Adjust based on the dropdown height */
    opacity: 1;
    margin-bottom: 0;
}

/* Ensure touch-friendly clickable areas */
.nav-link {
    cursor: pointer;
    touch-action: manipulation;
}

/* === End Sidebar === */
/* === Start Mobile Nav === */
.sidebar-container-mobile {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.sidebar-container-mobile.active {
    transform: translateX(0);
}

.sidebar-mobile {
    width: 250px;
    height: 100%;
    padding: 20px;
    background-color: var(--sidebar-background);
    padding-top: 20px;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar-mobile ul li a,
.sidebar-mobile ul li button {
    display: flex;
    align-items: center;
    color: var(--sidebar-text-color);
    text-decoration: none;
    font-size: var(--sidebar-text-size);
    padding: 10px;
    font-weight: 600;
    border-radius: 5px;
}

.sidebar-mobile ul li button {
    background: transparent;
    width: 100%;
}

.sidebar-mobile ul li a:hover,
.sidebar-mobile ul li button:hover {
    background-color: var(--sidebar-nav-hover);
}

.sidebar-mobile a.nav-link {
    display: flex;
    gap: 10px;
}

.mobile-nav {
    display: none;
}

.mobile-nav .hamburger-menu svg {
    color: var(--black);
}

.hamburger-menu {
    background-color: transparent;
    padding: 0;
}

/* Close Button */
.sidebar-close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin-top: 20px;
    color: var(--black);
}

.sidebar-close-btn svg {
    color: var(--white);
}

/* Overlay */
.sidebar-overlay-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Overlay Active */
.sidebar-overlay-mobile.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    margin-bottom: 10px;
}

@media screen and (max-width: 530px) {
    .mobile-nav {
        display: flex;
    }

    .header .menu-container,
    .header .icon-button {
        display: none;
    }
}

/* === End Mobile Nav === */
/* === Start Time Tracking === */
.clock-in-out-btn {
    background-color: var(--primary-button-background);
    padding: var(--clocked-actions-padding);
    font-family: var(--button-font-family);
    color: var(--button-text-color);
    border-radius: var(--button-radius);
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

.time-track-wrapper .item {
    height: 100%;
}

.time-track-wrapper .item:nth-child(1) {
    background: #0044991a;
    width: 300px;
}

.time-track-wrapper .item:nth-child(2) {
    flex-grow: 1;
    background: #3cbd271a;
}

.time-track-wrapper .item:nth-child(3) {
    width: 300px;
    background: #0044991a;
}

.clocked-status #clockInTime,
.clocked-status #clockOutTime,
#totalHoursDisplay {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
}

div#clock {
    font-size: 38px;
    text-align: center;
    font-weight: 900;
}

.clocked-status,
.clock-status {
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
}

.clocked-status {
    width: 100%;
}

.clock-status {
    width: 100%;
}

.clocked-status p,
.clock-status p {
    font-size: 13px;
    color: #696969;
}

.tag {
    padding: 5px 9px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
}

.tag.greet {
    align-self: start;
    background-color: #3B82F63d;
    color: #3B82F6;
}

.tag.timezone {
    justify-self: self-start;
    background-color: #22a00e17;
    color: #22A00E;
}

.date-card .day {
    font-size: 26px;
    font-weight: 900;
}

.date-card #day {
    color: #3B82F6;
}

.date-card #date {
    font-size: 18px;
    font-weight: 500;
    color: #232323;
}

.attendance-logs-container {
    overflow-x: auto;
}

table.attendance-logs.table-container {
    width: 100%;
    min-width: 700px;
}

thead th.table-head {
    text-align: left;
    padding-bottom: 5px;
}

td.table-body {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

@media screen and (max-width: 1024px) {
    .worktime-insights {
        flex-direction: column;
    }

    .worktime-insights .logs {
        width: 100%;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* === End Time Tracking === */
/* === Start Leave Management === */
.approve-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
}

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

.delete-btn {
    background-color: #808080;
    color: white;
    border: none;
}
/* === End Leave Management === */

.taswal-image-popup {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    max-width: 90vw;
  }
  
  .taswal-image-title {
    font-size: 1.5rem;
    color: #3B82F6;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem 0;
    font-weight: 600;
  }
  
  .taswal-image-close {
    font-size: 1.8rem;
    color: #666;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  .taswal-image-close:hover {
    color: #333;
    background: rgba(255,255,255,0.9);
    transform: scale(1.1);
  }
  
  .taimage-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    max-height: 70vh;
    overflow: auto;
  }
  
  .ta-profile-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
  }
    .management-btn {
      padding: 10px 15px;
      background-color: #f0f0f0;
      border: 1px solid #ddd;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.3s ease;
    }
  
    .management-btn:hover {
      background-color: #e0e0e0;
    }
  
    .full-profile-image {
      max-width: 100%;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .image-container {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
    }

    
    .card-header img:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .tab-content {
      display: none;
    }
  
    input[name="category"]:checked + tabs + .tab-content {
      display: block;
    }
  
    .card-container {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
      align-items: stretch;
    }
  
  
    .staff-card {
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 100%;
      min-height: 100%; 
      padding: 15px;
      text-align: center;
      font-family: 'Quicksand', sans-serif;
      display: flex;
      flex-direction: column;
      justify-content: space-between; 
      transition: transform 0.2s ease-in-out;
    }
  
    .staff-card:hover {
      transform: scale(1.02);
    }
  
    .card-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0;
      position: relative;
      overflow: visible;
    }
  
    .card-header h2 {
      font-size: 18px;
      font-weight: bold;
      color: #3B82F6;
    }
  
  
    .card-header img {
      width: 260px;
      height: 245px;
      border-radius: 12px;
      object-fit: cover;
      /* border: 3px solid #aaaeb3; */
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s ease-in-out;
    }
  
    .staff-card .card-body {
      padding: 15px 10px;
    }
  
    .card-body p {
      margin: 8px 0;
      font-size: 14px;
      color: #333;
    }
  
    .card-body h2 {
      margin-top: 0;
    }
  
    .staff-name {
      text-align: center;
      margin-bottom: 15px;
      color: #3B82F6;
      font-size: 20px;
    }
  
    .info-container {
      display: flex;
      justify-content: flex-start;
    }
  
    .info-left {
      text-align: left;
      width: 100%;
    }
  
    .card-body strong {
      color: #3B82F6;
    }
  
    .card-footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 80px;
    }
  
    .card-footer table {
      width: 100%;
      margin-bottom: 10px;
    }
  
    .card-footer table td {
      text-align: center;
    }
  
    .styled-btn {
      background: #3B82F6;
      color: white;
      border: none;
      padding: 8px 16px;
      cursor: pointer;
      border-radius: 5px;
      font-size: 14px;
      transition: background 0.3s ease-in-out;
    }
  
    .styled-btn:hover {
      background: #2563eb;
    }
    .btn-border{
      border: none !important;
    }
    /* Links as Buttons */
    .card-footer a {
      display: inline-block;
      margin: 5px;
      padding: 5px 12px;
      background: #3B82F6;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-size: 14px;
      transition: background 0.3s ease-in-out;
    }
  
    .card-footer a:hover {
      background: #2563eb;
    }
  
    button, a {
      outline: none !important;
      border: none !important;
    }
  
    .btn-border {
      outline: none !important;
      border: none !important;
    }
  
  
    .filters-container {
      display: flex;
      justify-content: space-between; 
      align-items: center; 
      padding: 10px;
      gap: 10px;
    }
  
    /* General Dropdown Styling */
    select {
      width: 200px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background-color: #fff;
      font-size: 14px;
      color: #333;
      appearance: none; 
      -webkit-appearance: none; 
      -moz-appearance: none; 
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom arrow */
      background-repeat: no-repeat;
      background-position: right 10px center;
      background-size: 12px;
      cursor: pointer;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
  
    select:hover {
      border-color: #3B82F6;  
    }
  
    select:focus {
      border-color: #3B82F6;
      box-shadow: 0 0 5px rgba(31, 84, 151, 0.5); 
      outline: none;
    }
  
    /* Disabled State */
    select:disabled {
      background-color: #f5f5f5;
      color: #999;
      cursor: not-allowed;
    }
    
    .dropdowns-wrapper {
      display: flex;
      gap: 10px;  
      align-items: center;
    }
  
    #sodApplyingAsDropdown {
      width: auto;
      min-width: 100px; 
      max-width: 100%; 
      padding: 10px;
      white-space: nowrap; 
    }
  
    #smApplyingAsDropdown {
      width: auto;
      min-width: 100px; 
      max-width: 100%; 
      padding: 10px;
      white-space: nowrap; 
    }
  
    #applyingAsDropdown {
      width: auto;
      min-width: 100px; 
      max-width: 100%; 
      padding: 10px;
      white-space: nowrap; 
    }
  
    #sodStatusDropdown {
      width: 12vh;
      min-width: 100px; 
      max-width: 100%; 
      padding: 10px;
      white-space: nowrap; 
    }
  
    #smStatusDropdown {
      width: 12vh;
      min-width: 100px; 
      max-width: 100%; 
      padding: 10px;
      white-space: nowrap; 
    }
  
    #statusDropdown {
      width: 12vh;
      min-width: 100px; 
      max-width: 100%; 
      padding: 10px;
      white-space: nowrap; 
    }
  
    select[id*="category_"] {
      width: 200px; 
    }
  
    .search-bar-wrapper {
      display: flex;
      justify-content: flex-end; 
    }
  
    #searchBar, #applyingAsDropdown, #sheetDropdown, #sodSearchBar, #smSearchBar{
      padding: 8px;
      border-radius: 5px;
      border: 1px solid #ccc;
      background-color: white;
      font-size: 14px;
    }
  
    #searchBar {
      width: 200px;
    }
  
    #applyingAsDropdown, #sheetDropdown {
      width: 180px; 
    }
    
    .no-data {
      text-align:center;
    }
  
    .pagination-controls {
      display: flex;
      justify-content: flex-end; 
      align-items: center;
      gap: 10px;
      padding: 10px;
      border-radius: 5px;
      margin-top: 20px;
      box-shadow: none; 
    }
  
    .pagination-controls label {
      margin-right: 10px;
    }
  
    .pagination-controls select {
      padding: 5px;
      border-radius: 5px;
      border: 2px solid #ccc;
      background-color: white;
      font-size: 14px;
      width: 5vh;
    }
  
    .pagination-controls button {
      padding: 5px 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      background-color: #3B82F6;
      color: white;
    }
  
    .pagination-controls button:disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }
  
    .pagination-controls button:hover:not(:disabled) {
      background-color: #2563eb;
    }
  
    #popup {
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      border-radius: 10px;
      display: none;
    }
  
    #popup button {
      margin: 5px;
      padding: 8px 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
  
    #popup button:hover {
      background: #3B82F6;
      color: white;
    }
  
    .tab label {
      cursor: pointer;
    }
  
    .create-category-tab {
      background: #28a745;
      border-radius: 5px;
      height: 63px;
    }
  
    .create-category-tab:hover {
      background: #218838; 
    }
  
    .popup-container {
      display: flex;
      justify-content: center;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
    }
  
    .catpopup-container {
      display: flex;
      justify-content: center;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
    }
  
    .popup-content {
      background: white;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      width: 400px;
      max-width: 90%;
      position: relative;
    }
  .tapopup-container {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .tapopup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  
  
    .popup-buttons {
      display: flex;
      justify-content: center; 
      gap: 10px; 
      /* margin-top: 20px;  */
    }
    .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    }
  
    .close-btn:hover {
      color: #555;
    }
  
    .popup-content h3 {
      margin-top: 0;
      color: #3B82F6;
    }
  
    .popup-content input, .popup-content select {
      width: 100%;
      padding: 8px;
      margin: 5px 0 15px 0;
      border: 1px solid #ccc;
      border-radius: 5px;
    }
  
    .popup-content button {
      padding: 8px 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      /* margin-right: 10px; */
    }
  
    .catsave-btn {
      background: #28a745;
      color: white;
    }
  
    .catsave-btn:hover {
      background: #218838;
    }
  
    .catcancel-btn {
      background: #808080;
      color: white;
    }
  
    .catcancel-btn:hover {
      background: #c82333;
    }
  
    .pagination-controls {
      text-align: center;
      margin-top: 20px;
    }
  
    .styled-btn {
      background: #3B82F6;
      color: white;
      border: none;
      padding: 8px 16px;
      cursor: pointer;
      border-radius: 5px;
    }
  
    .styled-btn:hover {
      background: #164375;
    }
  
    .pdf-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
    }
  
    .pdf-viewer {
        width: 100%;
        height: 80vh;
        border: none;
    }
  
    .pdf-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        color: #333;
        background: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s;
    }
  
    .pdf-close-btn:hover {
        background: #f44336;
        color: white;
    }
  
    .swal2-title {
        width: 100%;
        color: #000000;
        font-size: 24px;
        text-align: center;
        margin: 0;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    h2#swal2-title {
      padding: 0;
    }
    button.swal2-cancel.swal2-styled {
      position: absolute !important;
      top: 0 !important;
      right: 0 !important;
      padding: 10px !important;
      background: transparent !important;
      color: #757575 !important;
    }

    button.swal2-cancel.swal2-styled svg {
      width: 28px;
      height: 28px;
    }

    button.swal2-deny.swal2-styled {
      background-color: #22A00E !important;
    }

    div:where(.swal2-container) select:where(.swal2-select) {
      margin: 0 !important;
    }

    .swal2-popup.swal2-modal.swal2-show {
      gap: 10px;
      padding: 20px;
    }

    .swal-imageview {
      font-size: 18px;
      text-align: center;
      margin: 0;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
    }

    div:where(.swal2-icon) {
      margin: 0 auto .6em !important;
    }

    div#payroll-container {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    div:where(.swal2-container) .swal2-select {
      min-width: 100% !important;
      margin: 10px 0 !important;
    }
  
    .spinner {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #3B82F6;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      margin: 20px auto;
    }
  
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
  
    .talent-grid {
      display: grid;
      /* grid-template-columns: repeat(3, 1fr); */
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      padding: 20px;
    }
  
    .talent-card {
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 20px;
      text-align: center;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
  
    .talent-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 10px;
      transition: transform 0.3s ease;
    }
  
    .talent-card h3 {
      margin: 15px 0 10px;
      font-size: 1.5em;
      color: #3B82F6;
    }
  
    .talent-card p {
      font-size: 14px;
      color: #666;
      margin-bottom: 20px;
    }
  
    .talent-btn {
      display: inline-block;
      padding: 10px 20px;
      background: linear-gradient(45deg, #2DD413, #3B82F6);
      color: white;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.3s ease;
    }
  
    .talent-btn:hover {
      background: linear-gradient(45deg, #3B82F6, #2DD413);
    }
  
    .talent-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
  
    .talent-card:hover img {
      transform: scale(1.1);
    }
  
    .tabbed {
      overflow-x: hidden; 
      padding-bottom: 10px;
    }
  
    .tabbed [type="radio"] {
      display: none;
    }
  
    .tabs {
      display: flex;
      align-items: stretch;
      list-style: none;
      max-width: 100%;
    }
  
    .tab {
      width: 100%; 
    }
  
    .tab > label {
      color: black;
      display: block;
      font-size: 20px; 
      font-weight: bold;
      line-height: 30px;
      padding: 10px 10px;
      text-align: center;
      cursor: pointer;	
      transition: all 0.3s;
      border-bottom: 3px solid black;
      margin-top: 10px;
      font-family: var(--primary-button-font-family)
    }
  
    .tab:hover label {
      color: var(--primary-color);
    }
  
    .tab-content {
      display: none;
      margin-top: 20px;
    }
  
    #Leasing:checked ~ #LeasingContent,
    #Demand:checked ~ #DemandContent,
    #Marketplace:checked ~ #MarketplaceContent,
    #Management:checked ~ #ManagementContent {
      display: block;
    }
  
    #Leasing:checked ~ .tabs .tab:nth-of-type(1) label,
    #Demand:checked ~ .tabs .tab:nth-of-type(2) label,
    #Marketplace:checked ~ .tabs .tab:nth-of-type(3) label,
    #Management:checked ~ .tabs .tab:nth-of-type(4) label {
      color: white;
      border-bottom: 3px solid #3B82F6;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      background-color: #3B82F6;
    }
  
    .category-navigation {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 5px;
    }
    
    .dropdown-container {
      display: flex;
      gap: 10px;
    }
    
    #categoryDropdown {
      padding: 8px 12px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 16px;
      min-width: 220px;
      background-color: #fff;
    }
    
    .create-category-btn {
      padding: 8px 12px;
      background-color: #3B82F6;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
    }
    
    .create-category-btn:hover {
      background-color: #154378;
    }
    
    .active-category {
      background-color: #3B82F6;
      color: white;
      padding: 10px 20px;
      border-radius: 15px; 
      font-weight: bold;
      font-size: 16px; 
      text-transform: uppercase; 
      display: inline-block; 
    }
  
    .status-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: #4CAF50; /* Default color */
      padding: 5px 10px;
      border-radius: 8px;
      color: white;
      font-size: 12px;
      font-weight: bold;
      z-index: 1;
    }
  
/* MODAL - shared across modules (PMS, AMS, etc.) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Generic modal content container (used by PMS, AMS, etc.) */
.modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 98vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin: 40px auto;
}

/* Close icon used in modal headers */
.close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
}

.close:hover {
  color: #374151;
}
  
  .ta-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: modalOpen 0.3s ease;
  }
  
  @keyframes modalOpen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
  }
  
  .ta-modal-header {
      padding: 16px 20px;
      background-color: #3B82F6;
      color: white;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-direction: row-reverse;
  }
  
  .ta-modal-header h2 {
    margin: 0;
    font-size: 20px;
  }
  
  .ta-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .ta-close-modal {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .ta-close-modal:hover {
    color: #f1f1f1;
  }
  
  .ta-management-btn {
    background-color: #3B82F6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
    padding: 12px;
  }
  
  .ta-management-btn:hover {
    background-color: #164276;
  }
  
  /* Update existing talent-grid for modal */
  .ta-modal .talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
  }
  
  /* MODAAAAAAAAAAAAAAAAAALLLL */

  
  /* Document Viewer Modal styles */
  .document-modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Higher than other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .document-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
  }
  
  .document-modal-header {
    padding: 12px 20px;
    background-color: #3B82F6;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    flex-direction: row-reverse;
  }
  
  .document-modal-header h2 {
    margin: 0;
    font-size: 18px;
    flex-grow: 1;
    text-align: center;
  }
  
  .document-modal-body {
    padding: 0;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
  }
  
  .document-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .close-doc-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
  }
  
  .close-doc-modal:hover {
    color: #f1f1f1;
  }
  
  .external-link-btn {
    background-color: white;
    color: #3B82F6;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
  }
  
  .external-link-btn:hover {
    background-color: #e6e6e6;
  }
  
  /* document modal */
  /* Document Viewer Modal styles */
  .document-modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Higher than other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .document-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
  }
  
  .document-modal-header {
    padding: 12px 20px;
    background-color: #3B82F6;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }
  
  .document-modal-header h2 {
    margin: 0;
    font-size: 18px;
    flex-grow: 1;
    text-align: center;
  }
  
  .document-modal-body {
    padding: 0;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
  }
  
  .document-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .close-doc-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
  }
  
  .close-doc-modal:hover {
    color: #f1f1f1;
  }
  
  .external-link-btn {
    background-color: white;
    color: #3B82F6;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
  }
  
  .external-link-btn:hover {
    background-color: #e6e6e6;
  }
  
  /* Fee Notice Modal Styles */
  .fee-notice-modal {
    display: none;
    position: fixed;
    z-index: 1002; /* Higher than other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  .fee-notice-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s;
  }
  
  @keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
  }
  
  .fee-notice-header {
    padding: 15px 20px;
    background-color: #3B82F6;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  .fee-notice-header h3 {
    margin: 0;
    font-size: 18px;
    text-align: center;
  }
  
  .fee-notice-body {
    padding: 20px;
    text-align: center;
  }
  
  .fee-notice-icon {
    margin-bottom: 20px;
  }
  
  .fee-notice-body p {
    margin: 10px 0;
    color: #333;
    line-height: 1.5;
  }
  
  .fee-notice-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
  }
  
  .fee-notice-btn {
    background-color: #3B82F6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .fee-notice-btn:hover {
    background-color: #164276;
  }

  div#taManagementModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999999;
    height: 100vh;
    align-items: center;
}

/* Quick Links Styles */
.quick-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .quick-link-btn {
    background-color: #f0f4f8;
    border: 1px solid #d1d8e0;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
  }
  
  .quick-link-btn:hover {
    background-color: #e1e8f0;
    border-color: #b8c4d1;
  }
  
  .quick-link-btn i {
    font-size: 12px;
    color: #4a6baf;
  }
  
  /* Toast Notification */
  .toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  
  .toast-notification.error {
    background-color: #f44336;
  }
  
  .toast-notification.fade-out {
    opacity: 0;
  }

    /* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0;
  border: 1px solid #888;
  width: 500px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 15px 20px;
  background-color: var(--primary-color);
  border-bottom: 1px solid #eaeaea;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.modal-body {
  padding: 20px;
}
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.form-actions.centered {
  justify-content: center;
}

.cat-cancel-btn {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.submit-btn {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cat-cancel-btn:hover {
  background-color: #e5e5e5;
}

.submit-btn:hover {
  background-color: #45a049;
}

/* Success Modal */
.success-icon {
  text-align: center;
  margin: 20px 0;
  font-size: 48px;
  color: #4CAF50;
}

.additional-notice {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 15px 0;
}

#categoryEmailNotice {
  font-style: italic;
  text-align: center;
  color: #666;
}
  
/* === End Talent Acquisition === */

/* === Start Payroll === */
.tabs-container:has(*) {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.selector-ctnr {
  min-width: 50%;
}

.category-select, .category-action-select {
  height: 100%;
}

.category-select {
  color: #2b2b2b;
  font-weight: 500;
  padding: 10px 20px;
  width: 300px;
  min-width: 200px;
  margin-right: 2px;
  border: 1px solid #e5e5e5 !important;
  border-radius: 10px;
}

.close-btn {
  display: none;
  cursor: pointer;
  background: none;
  color: white;
  font-weight: 800;
}

.close-btn:hover {
  color: red;    
  scale: 1.1;
  transition: .3s;
}

.add {
  background-color: var(--primary-button-background);
  color: white;
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.add:hover {
  transform: scaleY(1.1);
}

/* Container Proper */
.container {
  margin: 20px;
}

.top-container {
  display: flex;
  justify-content: flex-end;
}

.add-payroll {
  margin: 0px 10px;
}

.input-field {
  padding: 10px 5px;
  font-size: 13px;
}

.card-container:empty {
  display: none;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: flex-start;
  margin: auto;
}

#create-card {
  display: none;
}

.create {
  background-color: var(--primary-button-background);
  color: white;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.create:hover {
  scale: 1.1;
  transition: .2s;
}

.payroll-card-header-container {
  display: flex;
  justify-content: space-between;
  background-color: #2563eb;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  gap: 10px;
}

div:where(.swal2-container) input:where(.swal2-input) {
  margin: 0px !important;
}

.payroll-card-header-container, .card-content {
  padding: 20px;
}

.payroll-card-header {
  background: none;
  width: 100%;
  color: white;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payroll-wrapper {
  min-height: 600px;
}

.payroll-wrapper .card {
  border-radius: 15px;
  width: 100%;
  color: black;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  justify-content: flex-start;
  margin: auto;
  gap: 20px;
  width: 100%;
}

.edit-btn {
  background: none;
  color: white;
  margin-right: 10px;
  padding: 0px;
  cursor: pointer;
}

.edit-btn:hover {
  color: var(--primary-button-background);
  scale: 1.1;
  transition: .3s;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--alt-white);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  font-size: 15px;
}


.card-content .row .row-header {
  font-weight: 800;
}

.btn-row {
  display: flex;
  justify-content: space-around;
}

.btn-row button, .btn-row a {
  display: inline-block;
  text-align: center;
  width: 200px;
  margin: 10px;
  padding: 8px 16px;
  background-color: #3B82F6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: var(--primary-button-radius);
  font-family: var(--primary-button-font-family);
  font-weight: var(--primary-button-weight);
  font-size: 15px;
  color: white;
  cursor: pointer;
}

.btn-row .email-btn {
  background-color: var(--primary-color);
}

.btn-row .delete-btn {
  background-color: #7b241c;
}

.email-btn:disabled {
  background-color: #ccc;  /* Light gray background */
  color: #666;             /* Darker gray text */
  cursor: not-allowed;      /* Show "not allowed" cursor */
  opacity: 0.6;            /* Reduce opacity */
  pointer-events: none;    /* Disable clicks */
}

.btn-row button:hover, .btn-row a:hover {
  background-color: #2563eb;
  transition: .2s;
}

/* GLOBAL PAGINATOR */
.paginator-container {
  display: none;
  width: auto;
  right: 20px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  padding: 0 20px;
}

.paginator-label {
  text-align: center;
}

.paginator-container .btn-container {
  display: flex;
  gap: 10px;
}

.paginator-container .btn-container select {
  padding: 0px 6px;
  width: 80px;
  text-align: center;
}

div#payroll-paginator-container button {
  width: 50px;
  height: 50px;
  justify-content: center;
  display: flex;
  align-items: center;
  border-radius: 100px;
  background: #c3c3c333;
  border: 1px solid transparent !important;
  color: #7d7d7d;
}

div#payroll-paginator-container button:hover {
  background: #3bbd271f;
  color: var(--accent-color);
}

.btn-row {
  display: flex;
  gap: 10px;
}

.delete-btn {
  background-color: transparent;
  color: white;
  border: none;
}

/* --- FIX FOR PAYROLL CONTAINER --- */
div#payroll-container {
  display: grid !important; /* Force grid display */
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px; /* Add spacing between cards */
  width: 100%; /* Ensure full width */
}

/* Loader & Empty State Centering */
.loader-container, .empty-state-container {
    grid-column: 1 / -1 !important; /* Span full width of grid */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Force visual height for centering */
    width: 100%;
}

@media screen and (max-width: 1340px) {
  .card-container, div#payroll-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 1024px) {
  .card-container, div#payroll-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 768px) {
  .card-container, div#payroll-container {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

select.date-select {
  background-color: var(--alt-white);
  border: 1px solid var(--border-color);
  padding: 13px 20px;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  width: 100%;
  color: var(--alt-black);
  border-radius: 10px;
  appearance: none;
}
/* === End Payroll === */

 /* === Start 201 Files === */
select.pagination-select {
  padding: 5px 10px;
  width: 75px;
}

.loading {
  text-align: center;
  font-size: 14px;
  color: #7f8c8d;
  padding: 20px;
}

.loading i {
  animation: fa-spin 2s infinite linear;
  margin-right: 10px;
  color: var(--primary-color);
}

/* New user card styles */
.user-cards-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.user-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f1f1f1;
}

.user-card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  position: relative;
}

.user-card-avatar {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 24px;
  color: var(--primary-color);
}

.user-card-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
}

.user-card-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
}

.user-card-team {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 5px;
}

.user-detail-row {
  display: flex;
  gap: 5px;
  font-size: 14px;
}

.user-detail-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #7f8c8d;
}

.user-detail-value {
  flex: 1;
}

.user-card-actions {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-top: 1px solid var(--border-color);
  background-color: #f8f9fa;
}

.email-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.pdf-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.back-btn {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.email-btn i,
.pdf-btn i,
.back-btn i {
  margin-right: 5px;
}

.email-btn:hover {
  background-color: #2563eb;
}

.pdf-btn:hover {
  background-color: #c0392b;
}

.back-btn:hover {
  background-color: #2980b9;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--secondary-color);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* File Modal Styles */
#fileModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#fileModalOverlay.show {
  opacity: 1;
  visibility: visible;
}

.file-modal {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.file-modal.show {
  transform: scale(1);
  opacity: 1;
}

.file-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.file-modal-header h4 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.file-modal-header h4 i {
  margin-right: 10px;
  color: var(--primary-color);
}

.file-modal-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.file-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.file-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.file-modal-close:hover {
  color: #333;
}

.email-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.email-modal-content {
  background-color: white;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.email-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
}

.email-modal-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-close {
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.email-close:hover {
  transform: scale(1.1);
}

.email-modal-body {
  padding: 20px;
}

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

.email-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-form-group input,
.email-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border 0.3s;
}

.email-form-group input:focus,
.email-form-group textarea:focus {
  border-color: var(--primary, #3B82F6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.email-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.email-cancel-btn,
.email-send-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.email-cancel-btn {
  background-color: #f1f1f1;
  color: #333;
}

.email-cancel-btn:hover {
  background-color: #e0e0e0;
}

.email-send-btn {
  background-color: var(--primary, #3B82F6);
  color: white;
}

.email-send-btn:hover {
  background-color: var(--primary-dark, #3367d6);
}

.animate__fadeOut {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
  to {
      opacity: 0;
  }
}

@media screen and (max-width: 1440px) {
  .user-cards-container {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1024px) {
  .user-cards-container {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .email-modal-content {
      width: 95%;
  }

  .email-modal-footer {
      flex-direction: column;
  }

  .email-cancel-btn,
  .email-send-btn {
      width: 100%;
      justify-content: center;
  }
}

/* File card hover effect */
.file-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
  .user-cards-container {
      grid-template-columns: 1fr;
  }
}

/* === End 201 Files === */
/* === Start Email Notification === */
/* === End Email Notification === */
@media screen and (max-width: 1024px) {
  .sidebar {
      width: 68px;
      padding: 10px;
  }

  .icon {
      margin-right: 0;
      margin-left: 2px;
  }

  .sidebarMenuItem:last-child:has(button) {
      display: none;
  }

  .main-content {
      margin-left: 78px !important;
  }

  .menu-text,
  .sidebar .toggle-btn {
      display: none;
  }

  .time-track-wrapper {
      flex-direction: column;
  }

  .time-track-wrapper .item {
      width: 100% !important;
  }

  .emailNotificationWrapper {
      flex-direction: column;
  }

  .poweredBy {
      display: none;
  }

  .sidebarMenuItem.has-dropdown ul.desktop {
      margin-left: 0;
      padding-left: 0;
      border: none;
      border-top: 1px solid #ffffff30;
      background-color: rgba(var(--alt-primary-color-rgb), 0.08);
  }
}

@media screen and (max-width: 768px) {
  .clocked-status {
      width: 100%;
  }
}

@media screen and (max-width: 530px) {
  .sidebar-container {
      display: none;
  }

  .clocked-status-wrapper {
      flex-direction: column;
  }

  .main-content {
      margin-left: 0px !important;
      padding: 20px;
  }

  div#clock {
      font-size: 30px;
  }

  .poweredBy {
      display: flex;
  }
}

.sidebar-link-item.active {
    background-color: #353535;
    color: #ffffff !important;
}

.sidebar-link-item.active:hover {
    background-color: #EDEDED;
    color: #353535 !important;
}

.bg-mesh-gradient {
    background-color: hsla(214, 66%, 36%, 1);
    background-image: radial-gradient(at 40% 20%, hsla(214, 66%, 36%, 1) 0px, transparent 50%), radial-gradient(at 80% 0%, hsla(214, 66%, 36%, 1) 0px, transparent 50%), radial-gradient(at 0% 50%, hsla(214, 66%, 36%, 1) 0px, transparent 50%), radial-gradient(at 77% 57%, hsla(214, 65%, 48%, 1) 0px, transparent 50%), radial-gradient(at 0% 100%, hsla(214, 60%, 41%, 1) 0px, transparent 50%), radial-gradient(at 80% 100%, hsla(214, 57%, 29%, 1) 0px, transparent 50%), radial-gradient(at 0% 0%, hsl(214deg 68.89% 29.46%) 0px, transparent 50%);
}
.logo-wrapper img {
    filter: brightness(0) invert(1);
    width: 150px;
}
@media screen and (max-width: 1024px) {
    .wide-container {
        width: min(100% - 40px, 1340px) !important;
    }
}
@media screen and (max-width: 840px) {
    .bg-front {
        background-position: center right;
    }
    .default-container {
        width: var(--tablet-width);
    }
    .wide-container {
        width: var(--table-wide-width);
    }
}
@media screen and (max-width: 480px) {
    .default-container {
        width: var(--mobile-width);
    }
    
    .wide-container {
        width: var(--mobile-wide-width);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.popup-content p {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
}



.overview-cards .card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overview-cards .card {
  padding: 0 40px;
}

.overview-cards .card:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.overview-cards .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 100px;
  background-color: #1d2a622d;
  border: 1px solid #1d2a62;
}
:where(.card .card-content) h2, span {
  justify-self: start;
}
.card .card-content h2 {
  font-size: .8rem;
  font-weight: 400;
  color: #8a8a8a;
}
/* .card .card-content span {
  font-size: 2.3rem;
  font-weight: 900;
  color:#222222;
} */

.overview-table-header h2 {
  font-size: 1rem;
  font-weight: 500;
  color:#222222;
}
.total_users {
  display: flex;
  flex-direction: column;
  justify-content: right;
}
.total_users p {
  font-size: 14px;
  font-weight: 500;
}
.total_users span {
  font-size: 26px;
  font-weight: 600;
  text-align: right;
  color: var(--primary-color);
}

.table-container {
  overflow-x: auto;
}
.table-container table {
  min-width: 600px;
}
.table-head {
  text-align: left;
  color: #727272;
  font-size: 13px;
  font-weight: 700;
}
.table-container thead .table-head {
  padding-bottom: 10px;
}

td.table-data {
  text-align: left;
  font-size: 14px;
  color: #222222;
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
}


@media screen and (max-width: 639px) {
  .overview-cards .card {
      flex-direction: row;
  }
  .overview-cards {
      padding: 5px 10px !important;
  }
  .overview-cards .card:not(:last-child) {
      border-right: 0px solid #e0e0e0;
      border-bottom: 1px solid #e0e0e0;
  }
  .overview-cards .card {
      padding: 20px 10px 20px 10px;
  }
}

/* Workforce Override Modal Styles */
.kebab-menu-container {
  position: relative;
  z-index: 50;
  overflow: visible !important; /* Force overflow visible */
}

.kebab-dropdown {
  position: absolute;
  top: 30px;
  right: 0;
  width: 200px;
  z-index: 9999 !important; /* Much higher z-index */
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

/* Override any parent overflow hidden */
.staff-card,
.card {
  overflow: visible !important;
}

/* =========================================
   7. MODULE: TASK MANAGEMENT (Imported)
   ========================================= */
.task-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
}
.task-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: white; border-bottom: 1px solid #f3f4f6;
}
.task-section-title {
    display: flex; align-items: center; font-weight: 600; font-size: 16px; color: #111827;
}
.task-section-indicator {
    width: 4px; height: 100%; border-radius: 2px; margin-right: 12px;
    position: absolute; left: 0; top: 0; bottom: 0;
}
.task-section-indicator.frontend { background-color: #ef4444; }
.task-section-indicator.backend { background-color: #10b981; }

.task-table {
    width: 100%; border-collapse: collapse; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.task-table th {
    background-color: #f9fafb; font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px; color: #000000;
    padding: 12px 16px; text-align: center; border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}
.task-table td {
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6; vertical-align: middle;
    font-size: 14px; text-align: center;
}
.task-table td:nth-child(5), .task-table td:nth-child(6), .task-table td:nth-child(7) { padding: 0; }
.status-btn, .priority-btn {
    border: none; padding: 12px 16px; border-radius: 0; font-size: 12px;
    font-weight: 500; cursor: pointer; display: flex; align-items: center;
    justify-content: center; width: 100%; height: 100%; min-height: 48px;
}
.status-btn.done { background-color: #22c55e; color: white; }
.status-btn.working-on-it { background-color: #3b82f6; color: white; }
.status-btn.stuck { background-color: #ef4444; color: white; }
.priority-btn.high { background-color: #ef4444; color: white; }
.priority-btn.medium { background-color: #f59e0b; color: white; }

/* Filter Dropdowns */
.filter-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); min-width: 200px; z-index: 1000;
}
.filter-option {
    display: flex; align-items: center; padding: 8px 12px;
    border-radius: 6px; cursor: pointer; transition: background-color 0.2s;
}
.filter-option:hover { background-color: #f3f4f6; }

/* Branch Dropdown Styles */
.hqdropdown {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    font-family: "Quicksand", sans-serif;
    box-sizing: border-box;
    margin-bottom: 12px;
    margin-top: 0;
    background-color: white;
    cursor: pointer;
}

.hqdropdown:hover {
    border-color: var(--primary-color);
}

.hqdropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.sidebar.collapsed .hqdropdown {
    display: none;
}
