/* Styles pour les missions de ménage */

.cdv-mission-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mission-header {
    animation: fadeIn 0.5s ease-in;
}

.mission-details {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mission-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-action {
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-action:active {
    transform: scale(0.98);
}

.complete-form {
    animation: slideIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .cdv-mission-page {
        padding: 10px;
        margin: 20px auto;
    }
    
    .btn-action {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
    
    .mission-header h1 {
        font-size: 24px;
    }
}

/* Loading spinner */
.cdv-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status badges */
.cdv-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.cdv-status-pending { background: #fff3cd; color: #856404; }
.cdv-status-accepted { background: #d4edda; color: #155724; }
.cdv-status-refused { background: #f8d7da; color: #721c24; }
.cdv-status-in_progress { background: #d1ecf1; color: #0c5460; }
.cdv-status-completed { background: #d4edda; color: #155724; }

/* Photo gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-gallery img:hover {
    transform: scale(1.05);
}
