/* Frappe Job Board Styles */

.frappe-job-board {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Filters */
.job-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input {
    flex: 2;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.search-btn {
    background: #f26522;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #d85a1c;
}

/* Job Cards */
.job-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s, border-color 0.3s;
    overflow: hidden;
}

.job-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #f26522;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    padding: 20px 25px;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.job-logo {
    flex-shrink: 0;
}

.company-icon {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.job-header-content {
    flex: 1;
}

.job-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.job-title a {
    color: #f26522;
    text-decoration: none;
}

.job-title a:hover {
    text-decoration: underline;
}

.job-meta-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.job-posted-date {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.job-card-body {
    padding: 20px 25px;
}

.job-company {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.job-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
}

.job-detail-item {
    font-size: 13px;
    color: #555;
}

.job-detail-item.job-skills {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: #333;
}

.job-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.job-card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 25px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-apply {
    background: white;
    color: #f26522;
    border: 2px solid #f26522;
}

.btn-apply:hover {
    background: #f26522;
    color: white;
}

.btn-read-more {
    background: white;
    color: #555;
    border: 2px solid #ddd;
}

.btn-read-more:hover {
    background: #f5f5f5;
}

.btn-apply-large {
    background: #f26522;
    color: white;
    padding: 14px 40px;
    font-size: 16px;
}

.btn-apply-large:hover {
    background: #d85a1c;
    color: white;
}

.btn-back {
    background: #f5f5f5;
    color: #555;
    padding: 14px 40px;
    font-size: 16px;
}

/* Pagination */
.job-pagination {
    margin-top: 30px;
}

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: #f26522;
    color: #f26522;
}

.pagination-btn.active {
    background: #f26522;
    color: white;
    border-color: #f26522;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #f26522;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-jobs,
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}

.error-message {
    color: #dc3545;
    background: #fff5f5;
}

/* Job Detail Page */
.job-detail-page {
    max-width: 900px;
    margin: 0 auto;
}

.job-detail-title {
    font-size: 28px;
    color: #f26522;
    margin: 0 0 20px 0;
}

.job-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.company-icon-large {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.job-detail-section {
    margin-bottom: 30px;
}

.job-detail-section h2 {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f26522;
    display: inline-block;
}

.job-info-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #333;
    width: 150px;
}

.info-value {
    color: #555;
}

.job-detail-actions {
    display: flex;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .job-card-header {
        flex-direction: column;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-input,
    .filter-select {
        width: 100%;
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
    }
    
    .job-detail-actions {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}