/* Connect2Labor Main Styles */

/* Search Form */
.c2l-search-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.c2l-search-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.c2l-form-row {
    margin-bottom: 20px;
}

.c2l-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

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

/* Custom checkbox list styling */
.c2l-checkbox-list {
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.c2l-checkbox-list:focus-within {
    border-color: #0073aa;
    outline: none;
}

.c2l-checkbox-category {
    margin-bottom: 10px;
}

.c2l-checkbox-category h4 {
    font-weight: bold;
    font-style: normal;
    background-color: #f5f5f5;
    color: #333;
    padding: 5px 8px;
    margin: 0 0 5px 0;
    border-bottom: 2px solid #ddd;
    font-size: 14px;
}

.c2l-checkbox-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
}

.c2l-checkbox-item:hover {
    background-color: #e3f2fd;
}

.c2l-checkbox-item.selected {
    background-color: #0073aa;
    color: white;
    font-weight: 600;
}

.c2l-checkbox-item input[type="checkbox"] {
    display: none;
}

.c2l-checkbox-item .c2l-checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.c2l-checkbox-item.selected .c2l-checkbox-box {
    background-color: white;
    border-color: white;
}

.c2l-checkbox-item .c2l-checkbox-box::after {
    content: '';
    display: none;
    width: 6px;
    height: 10px;
    border: solid #0073aa;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.c2l-checkbox-item.selected .c2l-checkbox-box::after {
    display: block;
}

/* Selected items counter */
.c2l-selected-count {
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
    color: #0073aa;
    font-size: 0.9em;
}

.c2l-form-row .required {
    color: #e74c3c;
}

/* Advanced Filters */
.c2l-advanced-filters {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.c2l-advanced-filters h3 {
    margin-bottom: 20px;
    color: #333;
}

.c2l-checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

.c2l-filter-category {
    margin-bottom: 15px;
}

.c2l-filter-category h4 {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
}

.c2l-checkbox-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
}

.c2l-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Form Actions */
.c2l-form-actions {
    margin-top: 30px;
    text-align: center;
}

.c2l-search-button,
.c2l-reset-button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.c2l-search-button {
    background: #2ecc71;
    color: #fff;
    margin-right: 10px;
}

.c2l-search-button:hover {
    background: #27ae60;
}

.c2l-search-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.c2l-reset-button {
    background: #ecf0f1;
    color: #333;
}

.c2l-reset-button:hover {
    background: #bdc3c7;
}

/* Search Results */
.c2l-search-results {
    margin-top: 40px;
}

.c2l-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

.c2l-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.c2l-no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

.c2l-results-header {
    margin-bottom: 30px;
}

.c2l-results-header h3 {
    margin-bottom: 10px;
    color: #333;
}

.c2l-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
}

/* Worker Cards */
.c2l-workers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.c2l-worker-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.c2l-worker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

.c2l-worker-header h4 {
    margin: 0;
    color: #333;
}

.c2l-distance {
    background: #3498db;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.c2l-worker-info {
    margin-bottom: 20px;
}

.c2l-worker-info p {
    margin: 5px 0;
    color: #555;
}

.c2l-skills,
.c2l-tools {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.c2l-skills strong,
.c2l-tools strong {
    color: #333;
}

/* Worker Actions */
.c2l-worker-actions {
    display: flex;
    gap: 10px;
}

.c2l-view-profile,
.c2l-contact-btn,
.c2l-upgrade-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.c2l-view-profile {
    background: #3498db;
    color: #fff;
}

.c2l-view-profile:hover {
    background: #2980b9;
}

.c2l-contact-btn {
    background: #2ecc71;
    color: #fff;
}

.c2l-contact-btn:hover {
    background: #27ae60;
}

.c2l-upgrade-btn {
    background: #f39c12;
    color: #fff;
}

.c2l-upgrade-btn:hover {
    background: #e67e22;
}

/* Contact Info */
.c2l-contact-info {
    padding: 10px;
    background: #ecf0f1;
    border-radius: 4px;
}

.c2l-contact-info p {
    margin: 5px 0;
    font-size: 14px;
}

.c2l-contact-info a {
    color: #3498db;
    text-decoration: none;
}

.c2l-contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .c2l-search-form {
        padding: 20px;
    }
    
    .c2l-workers-list {
        grid-template-columns: 1fr;
    }
    
    .c2l-worker-actions {
        flex-direction: column;
    }
}
