:root {
    --primary-color: #2c3e50;
    --background-color: #ecf0f1;
    --text-color: #0A363C;
    --job-color: #00BC85;
    --date-color: #7f8c8d;
    --button-color: #31493F;
    --button-hover-color: #62917D;
}

.korma-message {
    text-align: center;
    color: var(--primary-color);
    font-style: italic;
    padding: 10px;
    background-color: var(--background-color);
}

.korma-freelancer-container {
    max-width: 90vw !important;
    margin: 20px auto !important;
    font-family: Arial, sans-serif;
}

.korma-freelancer-content {
    display: flex !important;
    gap: 20px !important;
}

.korma-freelancer-jobs {
    /* box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); */
    flex: 3;
}




/* Style for the dropdown container */
.korma-dropdown {
    position: relative;
    width: 100%;
}

.korma-dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-top: -5px;
}

.dropdown-arrow.open {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.korma-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1111 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 10px;
}

.dropdown-item label {
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.korma-sidebar-button {
    width: 100%;
    padding: 10px;
    background-color: var(--button-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.korma-sidebar-button:hover {
    transition: background-color 0.3s ease;
    background-color: var(--button-hover-color);
}

.korma-freelancer-container h2 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 20px;
}

/* Update existing table styles */
.korma-freelancer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-top: -15px; /* Compensate for first row spacing */
}

.korma-job-item {
    background-color: white !important;
    transition: .2s;
    position: relative;
}

.korma-job-spoed {
    background-color: rgba(255, 0, 0, 0.178) !important;
}

.korma-job-item > td {
    padding: 20px 15px;
    vertical-align: middle;
}

.korma-job-item > td:first-child {
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-color);
}

.korma-job-item > td:last-child {
    border-radius: 0 8px 8px 0;
}

/* Add shadow on hover */
.korma-job-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Style for the tag-like buttons */
.korma-tag {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.korma-tag-location {
    background-color: #374A57;
    color: white;
}

.korma-tag-register {
    background-color: #3FBA76;
    color: white;
}

.korma-tag-date {
    background-color: #F5F5F5;
    color: #666;
}

.korma-tag-spoed {
    background-color: red;
    color: #fff;
}

.korma-tag-remarks {
    background-color: #F5F5F5;
    color: #666;
}

/* Update table cell content */
.korma-job-location,
.korma-job-applicants,
.korma-job-date {
    font-size: 14px;
    white-space: nowrap;
}

/* Icons using pseudo-elements */
.korma-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

.korma-icon-location {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23e67e22" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5S13.38 11.5 12 11.5z"/></svg>') no-repeat center;
}

.korma-icon-applicants {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%232c3e50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>') no-repeat center;
}

.korma-icon-date {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%237f8c8d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center;
}

.korma-pagination {
    margin-top: 20px;
    text-align: center;
}

.korma-pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: var(--button-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.korma-pagination a:hover {
    transition: background-color 0.3s ease;
    background-color: var(--button-hover-color);
}

/* modal */
.korma-job-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.korma-job-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.korma-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.korma-modal.active {
    display: block !important;
    opacity: 1;
}

.korma-modal-content {
    background-color: #fff;
    margin: 15% auto; /* Changed from 5% to 15% to position it lower */
    padding: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.korma-modal.active .korma-modal-content {
    transform: translateY(0);
}

.korma-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.korma-modal-close:hover {
    color: #333;
}

.korma-modal-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.korma-modal-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    background-color: var(--background-color);
    border: none;
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.korma-modal-option:hover {
    background-color: var(--button-color);
    color: white;
}

.korma-modal-option i {
    font-size: 24px;
    margin-bottom: 8px;
}

.korma-modal-option span {
    text-align: center;
    font-size: 14px;
}

#option-open-job {
    background-color: var(--button-color);
    color: white;
}

.modal-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--background-color);
}

.korma-sollicitation-button {
    padding: 15px;
    background-color: var(--button-color);
    color: white;
    border-radius: 25px;
    border: none;
    cursor: pointer;
}







/* Update sidebar filter styles */
.korma-sidebar-section {
    margin-bottom: 30px;
}

.korma-sidebar-section h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: normal;
}

.korma-sidebar-section input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

.korma-sidebar-section select {
    width: 50%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    margin-bottom: 15px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}
.korma-freelancer-sidebar {
    height: fit-content;
    z-index: 1000 !important;
    /* background-color: #f9f9f9; */
    /* padding: 20px; */
    /* border-radius: 8px; */
    /* box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); */
}

.korma-sidebar-section ul {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.korma-sidebar-section ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.korma-sidebar-section ul li input[type="checkbox"] {
    margin: 3px 8px 0 0;
}

.korma-sidebar-section ul li label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}