/**************************************************************
 * GENERAL STYLES & RESPONSIVE
 **************************************************************/
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

#job-filter-form{
  width: 300px;
}

/**************************************************************
 * LISTING CARDS
 **************************************************************/
.artisan-job-listings {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.filter-header h2 {
    font-size: 24px;
    margin: 0 0 10px;
}

.job-filter-select {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* Divider */
.divider {
    border: none;
    border-bottom: 1px solid #e2e2e2;
    margin: 15px 0;
}

.jobs-section {
    padding: 10px 0;
}

.job-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.job-item {
    margin-bottom: 20px;
    cursor: pointer;
}

.job-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 20px;
    transition: background 0.3s, box-shadow 0.3s;
}

.job-card:hover {
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.job-info {
    margin-bottom: 15px;
}

.job-info .meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.job-info .job-title {
    margin: 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.job-info .excerpt {
    font-size: 15px;
    color: #555;
    margin: 10px 0;
}

.job-info .details span {
    display: inline-block;
    margin-right: 10px;
}

.client-name {
    font-weight: 400;
    color: #333;
}

.view-job-button {
    align-self: flex-end;
    padding: 10px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.view-job-button:hover {
    background: #005177;
}

/**************************************************************
 * OVERLAY / MODAL STYLES
 **************************************************************/
.overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.25);
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.overlay.visible {
    transform: translateX(0);
}

.overlay__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e2e2e2;
}

.overlay__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.close-overlay {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.overlay__tabs {
    display: flex;
    border-bottom: 1px solid #e2e2e2;
    background: #f9f9f9;
}

.overlay-tab {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background 0.2s;
    color: #666;
    position: relative;
}

.overlay-tab:hover {
    background: #efefef;
}

.overlay-tab.active {
    font-weight: 600;
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
}

.overlay__body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 15px; 
    line-height: 1.5;
}

/* Show active tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/**************************************************************
 * BRIEF TAB STYLES
 **************************************************************/
#brief-tab h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

#brief-tab .meta {
    color: #666;
    margin-bottom: 16px;
}

.brief-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    margin-bottom: 18px;
}

.brief-details .label {
    font-weight: 600;
    color: #444;
}

.brief-details .value {
    color: #333;
}

#brief-tab .description-section {
    margin-bottom: 20px;
}

#brief-tab .description-section h3 {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 600;
}

/**************************************************************
 * CLIENT INFO TAB STYLES
 **************************************************************/
#client-info-tab h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.client-profile {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.client-profile img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.client-profile .client-name {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.client-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.client-meta i {
    margin-right: 4px;
}

.client-info-list {
    margin-top: 15px;
    font-size: 14px;
}

.client-info-list .info-item {
    margin-bottom: 8px;
}

.client-info-list .info-item strong {
    font-weight: 600;
    margin-right: 6px;
}

#overlay-job-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#overlay-job-details th,
#overlay-job-details td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: left;
    font-size: 14px;
}

/**************************************************************
 * MEDIA QUERIES
 **************************************************************/
@media (min-width: 600px) {
    .job-card {
        flex-direction: row;
        align-items: center;
    }
    .job-info {
        flex: 1;
        margin-bottom: 0;
    }
}



.artisan-status-message {
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.artisan-status-pending {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.artisan-status-rejected {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
