/* photo-verification-ui.css */
.photo-verification-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.photo-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
}

.photo-card .photo-info {
    padding: 10px;
    font-size: 0.9rem;
}

.photo-status {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.photo-status .badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.photo-status .badge.customer {
    background: #27ae60;
    color: white;
}

.photo-status .badge.mechanic {
    background: #3498db;
    color: white;
}

.upload-area {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s;
    margin: 20px 0;
}

.upload-area:hover {
    border-color: #2980b9;
    background: #e3f2fd;
}

.upload-area.dragover {
    border-color: #2ecc71;
    background: #f0fff4;
}

.selected-photos {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
}

.selected-photo-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.selected-photo-item:last-child {
    border-bottom: none;
}

.selected-photo-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.verification-status {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.verification-status .status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-left: 10px;
}

.verification-status .status-badge.pending {
    background: #f39c12;
    color: white;
}

.verification-status .status-badge.approved {
    background: #27ae60;
    color: white;
}

.verification-status .status-badge.rejected {
    background: #e74c3c;
    color: white;
}

.verification-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.verification-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.verification-actions button:hover {
    opacity: 0.9;
}

.verification-actions .approve-btn {
    background: #27ae60;
    color: white;
}

.verification-actions .reject-btn {
    background: #e74c3c;
    color: white;
}

.verification-actions .upload-btn {
    background: #3498db;
    color: white;
}

.side-by-side-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.side-by-side-comparison h3 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.comparison-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.comparison-section h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
}

.comparison-section.before {
    border-top: 4px solid #e74c3c;
}

.comparison-section.after {
    border-top: 4px solid #27ae60;
}

.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.photo-viewer-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.photo-viewer-modal .download-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.expiration-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.expiration-notice.warning {
    background: #ffeaa7;
    border-left-color: #fdcb6e;
}

.expiration-notice.expired {
    background: #ffebee;
    border-left-color: #ef5350;
}

.admin-controls {
    background: #8e44ad;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Loading animation */
.photo-loading {
    text-align: center;
    padding: 40px;
}

.photo-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .side-by-side-comparison {
        grid-template-columns: 1fr;
    }
    
    .verification-actions {
        flex-direction: column;
    }
    
    .verification-actions button {
        width: 100%;
    }
}