/* photoUploader.css - 通用照片上传组件样式 */
#uploadModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#uploadModal .modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

#uploadModal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

#uploadModal .close:hover {
    color: #333;
}

#uploadArea {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

#uploadArea:hover,
#uploadArea.active {
    border-color: #007bff;
    background-color: #f8f9fa;
}

#cropperContainerWrapper {
    display: none;
    margin: 20px 0;
}

#cropperContainer {
    max-width: 100%;
    height: 400px;
    overflow: hidden;
}

#fileInput {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #uploadModal .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    #uploadArea {
        padding: 30px 20px;
    }
    
    #cropperContainer {
        height: 300px;
    }
}

/* 按钮样式 */
#uploadModal .btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

#uploadModal .btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

#uploadModal .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}