.pcjm-job-status-lookup {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pcjm-job-status-lookup h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-size: 24px;
}

.pcjm-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#pcjm_customer_phone {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-jobs {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.search-jobs:hover {
    background: #005177;
}

.pcjm-search-results {
    margin-top: 30px;
}

.pcjm-search-results h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.pcjm-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.pcjm-results-table th,
.pcjm-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pcjm-results-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.pcjm-results-table tr:hover {
    background-color: #f9f9f9;
}

.pcjm-results-table tr:last-child td {
    border-bottom: none;
}

/* Status styling */
.job-status-slot-confirmed td {
    background-color: #fff3cd;
}

.job-status-transit td {
    background-color: #d1ecf1;
}

.job-status-started td {
    background-color: #cce5ff;
}

.job-status-completed td {
    background-color: #d4edda;
}

.pcjm-no-results {
    padding: 20px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 4px;
    color: #666;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .pcjm-job-status-lookup {
        margin: 20px;
        padding: 15px;
    }

    .pcjm-search-form {
        flex-direction: column;
    }

    .search-jobs {
        width: 100%;
    }

    .pcjm-results-table {
        display: block;
        overflow-x: auto;
    }

    .pcjm-results-table th,
    .pcjm-results-table td {
        padding: 8px;
        font-size: 14px;
    }
}

/* Loading state */
.pcjm-loading {
    text-align: center;
    padding: 20px;
}

.pcjm-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.pcjm-error {
    padding: 12px;
    margin: 10px 0;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Success message */
.pcjm-success {
    padding: 12px;
    margin: 10px 0;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

/* Photo Grid Styles */
.job-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 5px;
    max-width: 200px;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.job-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.job-photo-thumb:hover {
    transform: scale(1.05);
}

.no-photos {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* Lightbox Styles */
.pcjm-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pcjm-lightbox-overlay.active {
    opacity: 1;
}

.pcjm-lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcjm-lightbox-image {
    max-width: 60%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pcjm-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.pcjm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation buttons */
.pcjm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 15px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.pcjm-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.pcjm-lightbox-prev {
    left: -60px;
}

.pcjm-lightbox-next {
    right: -60px;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .pcjm-job-status-lookup {
        margin: 20px;
        padding: 15px;
    }

    .pcjm-search-form {
        flex-direction: column;
    }

    .search-jobs {
        width: 100%;
    }

    .pcjm-results-table {
        display: block;
        overflow-x: auto;
    }

    .pcjm-results-table th,
    .pcjm-results-table td {
        padding: 8px;
        font-size: 14px;
    }

    .job-photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        max-width: 150px;
    }

    .pcjm-lightbox-content {
        max-width: 90%;
        max-height: 90%;
    }

    .pcjm-lightbox-close {
        top: -35px;
        right: 0;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    /* Mobile navigation buttons */
    .pcjm-lightbox-nav {
        font-size: 20px;
        padding: 12px 8px;
    }

    .pcjm-lightbox-prev {
        left: 10px;
    }

    .pcjm-lightbox-next {
        right: 10px;
    }
} 