
    :root {
    --myturquoise:#17a2b8;
    --mypurple: #a78bfa;
    --buttonprimary: #0f172a;
    --hoveryelllo:#f7ba5b;
    --header-margin: 1rem;
    
}
body {
    margin: 0;
    /* font-family: 'Poppins', sans-serif; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
}

    /* css for list view  */
    .row-flex {
           display: flex;
    flex-wrap: nowrap; /* changed from wrap to nowrap */
    align-items: center;
    gap: 10px; /* for consistent spacing */
    }
    .row-flex p {
        margin: 6px 5px 6px 0;
        font-size: 0.75rem;
        color: #333;
        flex: 1 1 200px;
        white-space: nowrap;     /* Prevents text from wrapping */
        overflow: hidden;        /* Hides overflow text */
        text-overflow: ellipsis; /* Adds "..." to clipped text */
    }

    .candidate-list-container-list-view {
        width: 100%;
    }

    .candidate-list-item-list-view {
        position: relative;
        width: 100%;
        border: 1px solid #e0e0e0;
        padding: 15px;
        margin-bottom: 20px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        display: block; 
        padding-right: 50px;

    }
    .candidate-list-item-list-view h3 {
        margin: 0 0 15px;
        font-size: 1.2rem;
        color: black;
    }
    .candidate-list-item-list-view h3 a {
        text-decoration: none;
        color: black;
    }
    .candidate-list-item-list-view h3 a:hover {
        color: black;
    }

    

    .cv-link-button-list-view{
        position: absolute;
        top: 65px;
        right: 20px;
        font-size: 0.9rem;
        color: #28a745;
        background-color: #e8f5e9;
        border: 1px solid #cce5ff;
    }
    .cv-link-button-list-view:hover {
        background-color: #c8e6c9;
        color: #1e7e34;
        text-decoration: none;
    }

    .cv-link-button-list-view,
    .edit-link-button-list-view {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* smaller gap */
    text-decoration: none;
    font-weight: 500; /* slightly lighter */
    padding: 6px 12px; /* smaller padding */
    border-radius: 18px; /* smaller pill shape */
    font-size: 12px; /* smaller text */
    min-width: auto; /* remove fixed width */
    justify-content: center;
}
    .edit-link-button-list-view {
        position: absolute;
        top: 110px;
        right: 20px;
        font-size: 12px;
        color: #007bff;
        
        background-color: #e3f2fd;
        border: 1px solid #cce5ff;
    }
    .edit-link-button-list-view:hover{
        background-color: #bbdefb;
        color: #0056b3;
        text-decoration: none;
    }

    .skill-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    max-width: 100%;
    white-space: normal; /* allows wrapping */
}

.new-all-candidate-skill-badge-unique {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background-color: #00bcd4;
    border-radius: 12px;
    margin-bottom: 5px;
    line-height: 1.2;
}
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
    .badge-list-view {
        display: inline-block;
        padding: 4px 8px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #fff;
        background-color: #6c757d;
        border-radius: 12px;
        margin-right: 5px;
        margin-bottom: 3px;
    }

    .badge-list-view-info {
        background-color: var(--myturquoise);
    }

    .badge-list-view-secondary {
        background-color: #6c757d;
    }

    .no-skills, .no-languages {
        font-style: italic;
        color: #999;
    }

    /* css for Grid view  */
    .candidate-grid-grid-view {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive */
        gap: 20px; /* Space between cards */
        width: 100%;
    }

    .profile-card-grid-view {
            display: flex;
    flex-direction: column;
    justify-content: space-between; /* helps if card has height */
    height: 100%; /* ensures full height */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    position: relative;
        /* background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        justify-content: space-between; 
        height: 100%; Ensures full height usage */
    }

    .profile-card-grid-view:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .field-value-grid-view {
    font-size: 0.75rem; /* Matches .skill-badge */
    color: #333;
    font-size: bold;
}

    /* Candidate Name */
    .profile-card-grid-view h2 {
        font-size: 1.2rem;
        margin: 0 0 15px;
        color: black;
    }
    .profile-card-grid-view h2 a {
        text-decoration: none;
        color: black;
        transition: color 0.3s ease;
    }
    .profile-card-grid-view h2 a:hover {
        color: black;
    }
    .profile-card-grid-view p {
        margin: 8px 0;
        font-size: 0.75rem;
        color: #555;
        font-size: bold;
    }
    .profile-card-grid-view p strong {
        color: #333;
        font-weight: 600;
    }

    .icon-text-row-grid-view{
    display: flex;
    align-items: flex-start; /* changed from flex-start to center */
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    }
    .icon-text-row-grid-view strong {
        display: flex;
        align-items: center;
        min-width: max-content;  /* Prevents collapsing of icon + label */
    }

    .icon-wrapper-grid-view{
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-width: 24px;
        margin-top: 4px; /* Optional visual balance */
    }

    .skills-container-grid-view{
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        flex: 1;
    }

    .button-group-grid-view{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: auto; /* pushes buttons to the bottom */
    padding-top: 15px;
    flex-wrap: wrap;
    }

    /* Ensure all major UI elements inherit from <body> */
/* .skill-badge,
.badge-list-view,
.cv-link-button-list-view,
.edit-link-button-list-view,
.row-flex p,
.field-value-grid-view,
.candidate-list-item-list-view,
.profile-card-grid-view,
h2, h3, p, span, a {
    font-family: inherit !important;
} */
    /* css for Candidate_list_by_roles.html */
    .pagination-candidate_list_roles {
        text-align: center;
        margin-top: 30px;
    }

    .step-links-candidate_list_roles a {
        margin: 0 8px;
        text-decoration: none;
        color: #0d6efd;
        font-weight: 500;
    }

    .step-links-candidate_list_roles a:hover {
        text-decoration: underline;
    }

    .step-links-candidate_list_roles .current {
        margin: 0 10px;
        font-weight: 600;
        color: #333;
    }

        .btn-text-localpool,
        .btn-text-localpool:link,
        .btn-text-localpool:visited {
            display: inline-block;
            padding: 8px 16px;
            background-color: var(--buttonprimary) ;
            text-align: center;
            text-decoration: none;
            border-radius: 4px;
            transition: background-color 0.3s ease;
            box-sizing: border-box;
            font-size: 14px;  
            font-weight: 600;
            color: white;

            /* Add this line to show black border */
            border: 1px solid black;
        }
        .btn-text-localpool:hover {
            background-color: var(--buttonprimary) ;
            font-size: 14px;
            font-weight: 600;
            color: white;
            transform: scale(0.95);
        }
        .container_llistbyroles {                
            margin-left: 250px; /* Push content after sidebar */
            width: calc(100% - 250px);
        }
        .candidate-info {
            flex: 1 1 75%;
        }

        .page-padding-wrapper {
    padding-left: 30px;
    padding-right: 30px;
}

        h2 {
            text-align: center;
            margin-bottom: 30px;
            
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0 0 15px;
        } 
        .back-button-wrapper-candidate_list_roles {
            margin-top: 40px;
            display: flex;
            justify-content: center;
            text-decoration: none;
        }
            .button-group-candidate_list_roles {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

        button[type="submit"] {
        height: 40px;
        margin-top: 8px;
        background-color: var(--buttonprimary); /* Same purple as .btn-text-localpool */
        color: white;
        font-size: 14px;
        font-weight: 600;
        border: 1px solid black;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        }

        button[type="submit"]:hover {
        background-color: var(--buttonprimary); /* Red on hover */
        transform: scale(0.95);
        }

        .btn-cancel {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 40px;
            padding: 0 16px; /* Add horizontal padding */
            margin-top: 8px;
            background-color: var(--buttonprimary);
            color: white;
            font-size: 14px;
            font-weight: 600;
            border: 1px solid black;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-decoration: none;
        }
        .btn-cancel:hover {
            background-color: var(--buttonprimary) ;
            color: #fff !important;
            text-decoration: none;
        }
        
        .button-row-add-candidate {
            text-align: center;
            margin-top: 20px;
        }

        .form-container-add-candidate {
            max-width: 600px;
            margin: auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 8px;
            background-color: white;
        }
        .form-container-add-candidate h1 {
            text-align: center;
            margin-bottom: 20px;
        }

        .main-content-add-candidate{
            margin-left: 250px; 
            display: flex;
            justify-content: center;
            padding: 40px 20px; /* add some padding if needed */
            min-height: 100vh; /* optional, makes sure content takes full height */
            background-color: #f4f4f9;
            
         }

        .field-row-add-candidate {
            margin-bottom: 15px;
        }

        .blurred-add-candidate {
            filter: blur(5px);
            pointer-events: none;
        }

        .gender-checkboxes-add-candidate {
            display: flex;
            gap: 10px;
        }

        .login_btn {
            width: 100%;
            background: var(--buttonprimary) !important;
            color: white !important;
        }
        .login_btn:hover {
              transform: scale(0.95); /* Slightly zoom out */
        }
            
        .login_btn:focus {
            box-shadow: none !important;
            outline: 0 !important;
            transform: scale(0.95);
        }

        /* html template  ---------------------------------------------------------*/

        .main-content_localpool {
            margin-left: 280px; /* Push main content to the right by the sidebar's width */
            margin-right: 30px;
            padding: 0px; /* Internal spacing for main content */
            flex: 1;
        
        }

        .local-filter-section {
            margin: 0;
            padding: 0;
            width: calc((33.333%)*3);
            display: flex;
            gap: 15px;
            padding: 8px 15px;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
    align-items: flex-start; 
        }

        .view-toggle-wrapper-local-pool {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 2px;
        }

        .candidate-section {
            margin-left: 280px;
            margin-right: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

                .profile-card {
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 16px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            width: calc(33.333% - 20px); /* 3 cards per row */
            margin-bottom: 16px;
        }
        .profile-card h2 {
            margin-top: 0;
        }
        .profile-card p {
            margin: 4px 0;
        }

        
        .filter-field {
            flex: 1 1 30%;
            min-width: 10px;
            display: flex;
            flex-direction: column;
            gap: 2px; /* Reduce to control space between label and input */
            margin-bottom: 2px; /* Space between each form field */
            position: relative; /* Ensure positioning context */
        } 

        .filter-field label {
            font-weight: bold;
            margin-bottom: 0px;
            font-size: 0.85rem;
            display: inline-block;
            margin-top: 0;
            white-space: nowrap;
        }

        .filter-field select,
        .filter-field input[type="text"],
        .filter-field input[type="search"],
        .filter-field input[type="email"],
        .filter-field input[type="number"],
        .filter-field input[type="date"],
        .filter-field button {
            width: 100%;
            max-width: 150px;
            font-size: 12px;
            padding: 6px 8px;
            box-sizing: border-box;
            height: 36px;
            border: 1px solid #999;
            border-radius: 4px;
            background: white;
        }
        .filter-field input[type="checkbox"]{
            margin-left: 10px;
        }

        .filter-field {
            min-width: 90px; /* Prevents collapse on small screens */
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .skills-select,
        .languages-select,
        .roles-select {
            font-size: 12px !important;
        }

        #scrollTopBtn {
            position: fixed;
            bottom: 40px;
            right: 30px;
            z-index: 99;
            font-size: 24px;
            background-color: var(--buttonprimary);
            color: white;
            border: none;
            outline: none;
            padding: 12px 16px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            display: none; /* Hidden by default */
            transition: background-color 0.3s ease;
          }
          
        #scrollTopBtn:hover {
            background-color: var(--buttonprimary);
            transform: scale(0.95);
          }

                  /* Pagination Styling */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            margin-bottom: 30px;
        }
        
        .pagination .page-item {
            display: inline-block;
            margin: 0 4px;
        }
        
        .pagination .page-link {
            padding: 8px 12px;
            background: var(--buttonprimary);
            color: white;
            border-radius: 4px;
            text-decoration: none;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
        .pagination .page-item.active .page-link {
            background: var(--buttonprimary);
            font-weight: bold;
        }
        
        .pagination .page-link:hover {
            background: var(--buttonprimary);
        }
        
        .pagination .page-item.disabled .page-link {
            background: #cccccc;
            color: #666666;
            cursor: not-allowed;
        }

        .filter-form-container {
            margin: 0;
            padding: 0;
            width: 100%;
        }
        .filter-form-container form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* slightly smaller to prevent wrapping */
        }
                .filter-actions-container {
        width: 100%;
            display: flex;
            flex-direction: column;
            gap: 1px;
        font-size: 0.75rem;
        margin-top: 5px;
        margin-bottom: 5px;
        }

        .filter-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}


.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--buttonprimary);
    border-radius: 10px;
    padding: 3px 6px;
    font-size: 14px;
    color: white;
    cursor: default;
}

.filter-pill .remove-filter {
    background-color: transparent;
    border: none;
    color: #888;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
}

.filter-pill .remove-filter:hover {
    color: red;
}

/*code from localpool for network pool---------------------------------------------------*/

.relative {
    position: relative;
}
.p-2 {
    padding: 0.5rem; /* 8px */
}

.absolute {
    position: absolute;
}

.hidden {
    display: none;
}

.z-10 {
    z-index: 10;
}

.mt-1 {
    margin-top: 0.25rem; /* Tailwind-like utility */
}

.max-h-60 {
    max-height: 30rem; /* ~480px */
}

.overflow-y-auto {
    overflow-y: auto;
}

.border {
    border-width: 1px;
}

.rounded {
    border-radius: 0.375rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Ensure labels and checkboxes are aligned */
.flex.items-center.gap-2 {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and label */
}

.dropdown-button {
    padding: 6px 8px;
    width: 100%;
    max-width: 150px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease-in-out;
}

/* Reset default margin/padding on list items */
#skillsDropdown ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#skillsDropdown li {
    margin: 0;
    padding: 0;
    display: block;
}

/* Ensure label + checkbox alignment */
#skillsDropdown label {
    display: flex;
    align-items: center;
    gap: 8px; /* space between checkbox and label text */
    margin: 0;
    padding: 4px 0;
    font-size: 14px;
    cursor: pointer;
}

/* Optional: Add hover background */
#skillsDropdown li:hover label {
    background-color: #f7fafc;
    font-weight: 500;
}

/* Dropdown container */
.dropdown-panel {
    position: absolute;
    z-index: 10;
    width: 100%;
    margin-top: 0.25rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    max-height: 200px;
    overflow-y: auto;
    padding: 6px 0;
    font-size: 12px;
}

/* Reset list styles */
.dropdown-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each item in the list */
.dropdown-panel li {
    padding: 2px 0;
}

/* Label + checkbox row */
.dropdown-panel label {
    display: flex;
    align-items: left;
    gap: 4px; /* reduce gap */
    padding: 2px 4px; /* reduce padding */
    font-size: 12px; /* ensure small font */
    margin: 0; /* remove extra space */
    cursor: pointer;
}

/* Hover effect */
.dropdown-panel li:hover label {
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 500;
}

/* Smaller checkbox */
.dropdown-panel input[type="checkbox"] {
    transform: scale(1); /* or scale(0.9) if needed */
    margin: 0; /* removes unintended spacing */
    padding: 0;
}


.custom-header-kanbon{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 10px;
}

.custom-header-kanbon h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

        .candidate-section-network-pool{
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            
            margin-left: 0; /* default */
        }

    .filter-buttons {
        padding-left:1px;
        margin-top: 15px;

    }
    #skillSearchInput {
        padding: 6px;
        width: 100%;
        box-sizing: border-box;
        border: none;
        border-bottom: 1px solid #ccc;
        outline: none;
    }
