/* Main Content Area Styling */

/* Main heading styles */
.content-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: normal;
}

/* Card styling */
.card {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: normal;
}

.card-body {
    padding: 1.25rem;
}

/* Form element styling */
.form-label {
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

/* Button styling */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: normal;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Job listing card styles */
.job-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.job-item:hover {
    border-left-color: #0d6efd;
    background-color: #f8f9fa;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: bold;
    font-size: 1.25rem;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Job search form styling */
.job-search-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.job-search-form .form-group {
    margin-bottom: 1rem;
}

/* Search results formatting */
.search-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.search-result-count {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Skill pill styles */
.skill-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 50rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Budget and time details */
.job-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.job-detail-item i {
    width: 24px;
    margin-right: 0.5rem;
    color: #6c757d;
}

/* Responsive fixes for mobile and tablet */
@media (max-width: 767.98px) {
    .content-heading {
        font-size: 1.25rem;
    }
    
    .job-search-form {
        padding: 1rem;
    }
}

/* Fix for job search page specifically */
.find-jobs-container .form-control,
.find-jobs-container .form-select {
    width: 100%;
    margin-bottom: 15px;
}

.find-jobs-container .btn-primary {
    width: 100%;
}

/* Fix for budget range inputs */
.budget-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.budget-range .form-control {
    flex: 1;
}

/* Content area styles with sidebar margin - for non-search pages */
.ms-sidebar-width {
    margin-left: 280px; /* 250px sidebar width + 30px extra spacing */
}

/* Exception for search page */
.find-jobs-content {
    position: relative;
}

.find-jobs-content + .ms-sidebar-width {
    margin-left: 0;
}

/* Set sidebar back to fixed position for search page */
.find-jobs-content ~ .position-absolute {
    position: relative !important;
    float: left;
    margin-right: 20px;
    top: auto !important;
    left: auto !important;
    min-height: auto !important;
}

/* Responsive behavior for sidebar and content */
@media (max-width: 991.98px) {
    .ms-sidebar-width {
        margin-left: 0;
    }
    
    .vh-sidebar {
        position: relative;
        margin: 0 auto 20px;
        width: 100% !important;
        max-width: 250px;
    }
}

/* Fix for skills list */
.skills-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px;
}

.skills-list .form-check {
    margin-bottom: 5px;
}

/* Alert and notification styling */
.alert {
    border-radius: 8px;
    padding: 1rem;
}

/* Empty state message styling */
.empty-state {
    background-color: #e7f5ff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #0c63e4;
}

/* Add this to fix the specific layout in the screenshot */
.search-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.search-form-row > div {
    padding: 0 10px;
    margin-bottom: 15px;
}

.search-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

/* Fix for the currency symbol in budget inputs */
.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}
