/* Individual Photo Upload System Styles */

.upload-status {
    padding: 15px;
    border: 2px dashed #007bff;
    border-radius: 8px;
    text-align: center;
    background-color: #f8f9fa;
}

.upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-spinner {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.file-size {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.photo-uploaded {
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 10px;
    background-color: #f8fff9;
}

.photo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.photo-status {
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
}

.remove-photo-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.remove-photo-btn:hover {
    background: #c82333;
}

.photo-thumbnail {
    margin-bottom: 8px;
}

.photo-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.photo-info {
    font-size: 12px;
    color: #666;
}

.photo-name {
    font-weight: bold;
    margin-bottom: 2px;
    word-break: break-word;
}

.photo-size {
    color: #888;
}

.photo-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fff5f5;
}

.error-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
}

.photo-error button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}

.photo-error button:hover {
    background: #0056b3;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .photo-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .remove-photo-btn {
        align-self: flex-end;
    }
    
    .upload-progress span {
        font-size: 14px;
        text-align: center;
    }
    
    .photo-name {
        font-size: 11px;
    }
}

/* Integration with existing photo upload areas */
.photo-upload-area {
    position: relative;
}

.photo-upload-area .upload-status,
.photo-upload-area .photo-uploaded,
.photo-upload-area .photo-error {
    margin-top: 10px;
}

/* Ensure proper spacing in the form */
.step-content .photo-uploaded {
    margin-bottom: 15px;
}
