/* Jobs Header */
.jobs-header {
    background: #2563eb;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content p {
    font-size: 1.25rem;
    margin: 0 0 2rem;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-bar i {
    color: #718096;
    margin: 0 1rem;
    font-size: 1.125rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.75rem 0;
    color: #1a202c;
}

.search-bar input::placeholder {
    color: #a0aec0;
}

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Jobs Content */
.jobs-content {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: calc(100vh - 300px);
}

.jobs-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.filters-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
}

.clear-filters {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background: #f7fafc;
    color: #5a67d8;
}

/* Filter Groups */
.filter-group {
    padding: 1.5rem;
    border-bottom: 1px solid #f7fafc;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    margin: 0 0 1rem;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Filter Option Styles */
.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4a5568;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 2rem;
}

.filter-option:hover {
    color: #1a202c;
}

.filter-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark, .radiomark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.radiomark {
    border-radius: 50%;
}

.filter-option:hover input ~ .checkmark,
.filter-option:hover input ~ .radiomark {
    border-color: #cbd5e0;
}

.filter-option input:checked ~ .checkmark,
.filter-option input:checked ~ .radiomark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkmark:after, .radiomark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter-option input:checked ~ .checkmark:after {
    display: block;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-option input:checked ~ .radiomark:after {
    display: block;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.count {
    margin-left: auto;
    color: #a0aec0;
    font-size: 0.75rem;
}

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.375rem 0.75rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.skill-tag:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.skill-tag.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Jobs Main */
.jobs-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Jobs Toolbar */
.jobs-toolbar {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info {
    color: #718096;
    font-size: 0.875rem;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-size: 0.875rem;
    cursor: pointer;
}

.view-options {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: white;
    border: none;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #2563eb;
    color: white;
}

.view-btn:hover:not(.active) {
    background: #f7fafc;
    color: #4a5568;
}

/* Jobs Container */
.jobs-container {
    padding: 1.5rem;
    min-height: 400px;
}

.jobs-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.jobs-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Job Card */
.job-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.job-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.job-title {
    margin: 0;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.job-budget {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.job-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-skill {
    padding: 0.25rem 0.5rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #4a5568;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.job-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-posted {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-apply {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-save {
    background: none;
    border: 1px solid #e2e8f0;
    color: #718096;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-save:hover {
    border-color: #cbd5e0;
    color: #4a5568;
}

.btn-save.saved {
    border-color: #f59e0b;
    color: #f59e0b;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-state p {
    color: #718096;
    font-size: 1rem;
    margin: 0;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 1.5rem;
    color: #718096;
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.pagination-btn:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.pagination-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #718096;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.modal-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1a202c;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 0.75rem;
    color: #718096;
    font-weight: 500;
    z-index: 1;
}

.input-group input {
    padding-left: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jobs-layout {
        grid-template-columns: 250px 1fr;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .jobs-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        max-height: none;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 12px;
        padding: 1rem;
    }
    
    .search-bar input {
        margin-bottom: 1rem;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
    }
    
    .search-btn {
        border-radius: 6px;
        justify-content: center;
    }
    
    .jobs-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-actions {
        justify-content: space-between;
    }
    
    .jobs-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .jobs-header {
        padding: 2rem 0;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-title {
        font-size: 1.125rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}